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
Modifier and TypeMethodDescriptionAdds the specified Amazon Web Services account ID or group to the list.add
(Consumer<CreateVolumePermission.Builder>... add) Adds the specified Amazon Web Services account ID or group to the list.add
(CreateVolumePermission... add) Adds the specified Amazon Web Services account ID or group to the list.remove
(Collection<CreateVolumePermission> remove) Removes the specified Amazon Web Services account ID or group from the list.remove
(Consumer<CreateVolumePermission.Builder>... remove) Removes the specified Amazon Web Services account ID or group from the list.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 Details
-
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
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
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 toadd(List<CreateVolumePermission>)
.- 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:
-
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
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 toremove(List<CreateVolumePermission>)
.- 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:
-