Interface DescribeSnapshotAttributeResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeSnapshotAttributeResponse.Builder,DescribeSnapshotAttributeResponse>
,Ec2Response.Builder
,SdkBuilder<DescribeSnapshotAttributeResponse.Builder,DescribeSnapshotAttributeResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- DescribeSnapshotAttributeResponse
public static interface DescribeSnapshotAttributeResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<DescribeSnapshotAttributeResponse.Builder,DescribeSnapshotAttributeResponse>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
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.Builder
avoiding the need to create one manually viaCreateVolumePermission.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#createVolumePermissions(List
.) - 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:
#createVolumePermissions(java.util.Collection
)
-
productCodes
DescribeSnapshotAttributeResponse.Builder productCodes(Collection<ProductCode> 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(ProductCode... 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.Builder
avoiding the need to create one manually viaProductCode.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#productCodes(List
.) - 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:
#productCodes(java.util.Collection
)
-
snapshotId
DescribeSnapshotAttributeResponse.Builder snapshotId(String 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.
-
-