Interface DescribeSnapshotAttributeResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeSnapshotAttributeResponse.Builder,,DescribeSnapshotAttributeResponse> Ec2Response.Builder,SdkBuilder<DescribeSnapshotAttributeResponse.Builder,,DescribeSnapshotAttributeResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
DescribeSnapshotAttributeResponse
@Mutable
@NotThreadSafe
public static interface DescribeSnapshotAttributeResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeSnapshotAttributeResponse.Builder,DescribeSnapshotAttributeResponse>
-
Method Summary
Modifier and TypeMethodDescriptioncreateVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions) The users and groups that have the permissions for creating volumes from the snapshot.createVolumePermissions(Consumer<CreateVolumePermission.Builder>... createVolumePermissions) The users and groups that have the permissions for creating volumes from the snapshot.createVolumePermissions(CreateVolumePermission... createVolumePermissions) The users and groups that have the permissions for creating volumes from the snapshot.productCodes(Collection<ProductCode> productCodes) The product codes.productCodes(Consumer<ProductCode.Builder>... productCodes) The product codes.productCodes(ProductCode... productCodes) The product codes.snapshotId(String snapshotId) The ID of the EBS snapshot.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
productCodes
The product codes.
- Parameters:
productCodes- The product codes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
The product codes.
- Parameters:
productCodes- The product codes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
productCodes
DescribeSnapshotAttributeResponse.Builder productCodes(Consumer<ProductCode.Builder>... productCodes) The product codes.
This is a convenience method that creates an instance of theProductCode.Builderavoiding the need to create one manually viaProductCode.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toproductCodes(List<ProductCode>).- Parameters:
productCodes- a consumer that will call methods onProductCode.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
snapshotId
The ID of the EBS snapshot.
- Parameters:
snapshotId- The ID of the EBS snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createVolumePermissions
DescribeSnapshotAttributeResponse.Builder createVolumePermissions(Collection<CreateVolumePermission> createVolumePermissions) The users and groups that have the permissions for creating volumes from the snapshot.
- Parameters:
createVolumePermissions- The users and groups that have the permissions for creating volumes from the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createVolumePermissions
DescribeSnapshotAttributeResponse.Builder createVolumePermissions(CreateVolumePermission... createVolumePermissions) The users and groups that have the permissions for creating volumes from the snapshot.
- Parameters:
createVolumePermissions- The users and groups that have the permissions for creating volumes from the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createVolumePermissions
DescribeSnapshotAttributeResponse.Builder createVolumePermissions(Consumer<CreateVolumePermission.Builder>... createVolumePermissions) The users and groups that have the permissions for creating volumes from the snapshot.
This is a convenience method that creates an instance of theCreateVolumePermission.Builderavoiding the need to create one manually viaCreateVolumePermission.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocreateVolumePermissions(List<CreateVolumePermission>).- Parameters:
createVolumePermissions- 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:
-