public static interface ModifySnapshotAttributeRequest.Builder extends EC2Request.Builder, CopyableBuilder<ModifySnapshotAttributeRequest.Builder,ModifySnapshotAttributeRequest>
build
requestOverrideConfig, requestOverrideConfig
copy
apply, build
ModifySnapshotAttributeRequest.Builder attribute(String attribute)
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
,
SnapshotAttributeName
ModifySnapshotAttributeRequest.Builder attribute(SnapshotAttributeName attribute)
The snapshot attribute to modify.
Only volume creation permissions may be modified at the customer level.
attribute
- The snapshot attribute to modify. Only volume creation permissions may be modified at the customer level.
SnapshotAttributeName
,
SnapshotAttributeName
ModifySnapshotAttributeRequest.Builder createVolumePermission(CreateVolumePermissionModifications createVolumePermission)
A JSON representation of the snapshot attribute modification.
createVolumePermission
- A JSON representation of the snapshot attribute modification.default ModifySnapshotAttributeRequest.Builder createVolumePermission(Consumer<CreateVolumePermissionModifications.Builder> createVolumePermission)
A JSON representation of the snapshot attribute modification.
This is a convenience that creates an instance of theCreateVolumePermissionModifications.Builder
avoiding the need to create one manually via CreateVolumePermissionModifications.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to createVolumePermission(CreateVolumePermissionModifications)
.createVolumePermission
- a consumer that will call methods on CreateVolumePermissionModifications.Builder
createVolumePermission(CreateVolumePermissionModifications)
ModifySnapshotAttributeRequest.Builder groupNames(Collection<String> groupNames)
The group to modify for the snapshot.
groupNames
- The group to modify for the snapshot.ModifySnapshotAttributeRequest.Builder groupNames(String... groupNames)
The group to modify for the snapshot.
groupNames
- The group to modify for the snapshot.ModifySnapshotAttributeRequest.Builder operationType(String operationType)
The type of operation to perform to the attribute.
operationType
- The type of operation to perform to the attribute.OperationType
,
OperationType
ModifySnapshotAttributeRequest.Builder operationType(OperationType operationType)
The type of operation to perform to the attribute.
operationType
- The type of operation to perform to the attribute.OperationType
,
OperationType
ModifySnapshotAttributeRequest.Builder snapshotId(String snapshotId)
The ID of the snapshot.
snapshotId
- The ID of the snapshot.ModifySnapshotAttributeRequest.Builder userIds(Collection<String> userIds)
The account ID to modify for the snapshot.
userIds
- The account ID to modify for the snapshot.ModifySnapshotAttributeRequest.Builder userIds(String... userIds)
The account ID to modify for the snapshot.
userIds
- The account ID to modify for the snapshot.ModifySnapshotAttributeRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.