Interface ModifySnapshotAttributeRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifySnapshotAttributeRequest.Builder,,ModifySnapshotAttributeRequest> Ec2Request.Builder,SdkBuilder<ModifySnapshotAttributeRequest.Builder,,ModifySnapshotAttributeRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
ModifySnapshotAttributeRequest
-
Method Summary
Modifier and TypeMethodDescriptionThe snapshot attribute to modify.attribute(SnapshotAttributeName attribute) The snapshot attribute to modify.createVolumePermission(Consumer<CreateVolumePermissionModifications.Builder> createVolumePermission) A JSON representation of the snapshot attribute modification.createVolumePermission(CreateVolumePermissionModifications createVolumePermission) A JSON representation of the snapshot attribute modification.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.groupNames(String... groupNames) The group to modify for the snapshot.groupNames(Collection<String> groupNames) The group to modify for the snapshot.operationType(String operationType) The type of operation to perform to the attribute.operationType(OperationType operationType) The type of operation to perform to the attribute.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.snapshotId(String snapshotId) The ID of the snapshot.The account ID to modify for the snapshot.userIds(Collection<String> userIds) The account ID to modify for the snapshot.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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:
-
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:
-
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.Builderavoiding the need to create one manually viaCreateVolumePermissionModifications.builder().When the
Consumercompletes,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:
-
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
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
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
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:
-
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
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
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
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) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
ModifySnapshotAttributeRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-