Interface CreateVolumePermissionModifications.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<CreateVolumePermissionModifications.Builder,CreateVolumePermissionModifications>
,SdkBuilder<CreateVolumePermissionModifications.Builder,CreateVolumePermissionModifications>
,SdkPojo
- Enclosing class:
- CreateVolumePermissionModifications
public static interface CreateVolumePermissionModifications.Builder extends SdkPojo, CopyableBuilder<CreateVolumePermissionModifications.Builder,CreateVolumePermissionModifications>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateVolumePermissionModifications.Builder
add(Collection<CreateVolumePermission> add)
Adds the specified Amazon Web Services account ID or group to the list.CreateVolumePermissionModifications.Builder
add(Consumer<CreateVolumePermission.Builder>... add)
Adds the specified Amazon Web Services account ID or group to the list.CreateVolumePermissionModifications.Builder
add(CreateVolumePermission... add)
Adds the specified Amazon Web Services account ID or group to the list.CreateVolumePermissionModifications.Builder
remove(Collection<CreateVolumePermission> remove)
Removes the specified Amazon Web Services account ID or group from the list.CreateVolumePermissionModifications.Builder
remove(Consumer<CreateVolumePermission.Builder>... remove)
Removes the specified Amazon Web Services account ID or group from the list.CreateVolumePermissionModifications.Builder
remove(CreateVolumePermission... remove)
Removes the specified Amazon Web Services account ID or group from the list.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
add
CreateVolumePermissionModifications.Builder add(Collection<CreateVolumePermission> add)
Adds the specified Amazon Web Services account ID or group to the list.
- Parameters:
add
- Adds the specified Amazon Web Services account ID or group to the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
add
CreateVolumePermissionModifications.Builder add(CreateVolumePermission... add)
Adds the specified Amazon Web Services account ID or group to the list.
- Parameters:
add
- Adds the specified Amazon Web Services account ID or group to the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
add
CreateVolumePermissionModifications.Builder add(Consumer<CreateVolumePermission.Builder>... add)
Adds the specified Amazon Web Services account ID or group to the list.
This is a convenience method that creates an instance of theCreateVolumePermission.Builder
avoiding the need to create one manually viaCreateVolumePermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#add(List
.) - Parameters:
add
- a consumer that will call methods onCreateVolumePermission.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#add(java.util.Collection
)
-
remove
CreateVolumePermissionModifications.Builder remove(Collection<CreateVolumePermission> remove)
Removes the specified Amazon Web Services account ID or group from the list.
- Parameters:
remove
- Removes the specified Amazon Web Services account ID or group from the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remove
CreateVolumePermissionModifications.Builder remove(CreateVolumePermission... remove)
Removes the specified Amazon Web Services account ID or group from the list.
- Parameters:
remove
- Removes the specified Amazon Web Services account ID or group from the list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
remove
CreateVolumePermissionModifications.Builder remove(Consumer<CreateVolumePermission.Builder>... remove)
Removes the specified Amazon Web Services account ID or group from the list.
This is a convenience method that creates an instance of theCreateVolumePermission.Builder
avoiding the need to create one manually viaCreateVolumePermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#remove(List
.) - Parameters:
remove
- a consumer that will call methods onCreateVolumePermission.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#remove(java.util.Collection
)
-
-