Interface ModifySnapshotAttributeRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifySnapshotAttributeRequest.Builder,ModifySnapshotAttributeRequest>
,Ec2Request.Builder
,SdkBuilder<ModifySnapshotAttributeRequest.Builder,ModifySnapshotAttributeRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- ModifySnapshotAttributeRequest
public static interface ModifySnapshotAttributeRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifySnapshotAttributeRequest.Builder,ModifySnapshotAttributeRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
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
-
attribute
ModifySnapshotAttributeRequest.Builder attribute(String attribute)
The snapshot attribute to modify. Only volume creation permissions can be modified.
- Parameters:
attribute
- The snapshot attribute to modify. Only volume creation permissions can be modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotAttributeName
,SnapshotAttributeName
-
attribute
ModifySnapshotAttributeRequest.Builder attribute(SnapshotAttributeName attribute)
The snapshot attribute to modify. Only volume creation permissions can be modified.
- Parameters:
attribute
- The snapshot attribute to modify. Only volume creation permissions can be modified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotAttributeName
,SnapshotAttributeName
-
createVolumePermission
ModifySnapshotAttributeRequest.Builder createVolumePermission(CreateVolumePermissionModifications createVolumePermission)
A JSON representation of the snapshot attribute modification.
- Parameters:
createVolumePermission
- A JSON representation of the snapshot attribute modification.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createVolumePermission
default ModifySnapshotAttributeRequest.Builder createVolumePermission(Consumer<CreateVolumePermissionModifications.Builder> createVolumePermission)
A JSON representation of the snapshot attribute modification.
This is a convenience method that creates an instance of theCreateVolumePermissionModifications.Builder
avoiding the need to create one manually viaCreateVolumePermissionModifications.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocreateVolumePermission(CreateVolumePermissionModifications)
.- Parameters:
createVolumePermission
- a consumer that will call methods onCreateVolumePermissionModifications.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
createVolumePermission(CreateVolumePermissionModifications)
-
groupNames
ModifySnapshotAttributeRequest.Builder groupNames(Collection<String> groupNames)
The group to modify for the snapshot.
- Parameters:
groupNames
- The group to modify for the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
groupNames
ModifySnapshotAttributeRequest.Builder groupNames(String... groupNames)
The group to modify for the snapshot.
- Parameters:
groupNames
- The group to modify for the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
operationType
ModifySnapshotAttributeRequest.Builder operationType(String operationType)
The type of operation to perform to the attribute.
- Parameters:
operationType
- The type of operation to perform to the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OperationType
,OperationType
-
operationType
ModifySnapshotAttributeRequest.Builder operationType(OperationType operationType)
The type of operation to perform to the attribute.
- Parameters:
operationType
- The type of operation to perform to the attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
OperationType
,OperationType
-
snapshotId
ModifySnapshotAttributeRequest.Builder snapshotId(String snapshotId)
The ID of the snapshot.
- Parameters:
snapshotId
- The ID of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userIds
ModifySnapshotAttributeRequest.Builder userIds(Collection<String> userIds)
The account ID to modify for the snapshot.
- Parameters:
userIds
- The account ID to modify for the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userIds
ModifySnapshotAttributeRequest.Builder userIds(String... userIds)
The account ID to modify for the snapshot.
- Parameters:
userIds
- The account ID to modify for the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
ModifySnapshotAttributeRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ModifySnapshotAttributeRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
ModifySnapshotAttributeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-