Interface SnapshotInfo.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SnapshotInfo.Builder,SnapshotInfo>,SdkBuilder<SnapshotInfo.Builder,SnapshotInfo>,SdkPojo
- Enclosing class:
- SnapshotInfo
public static interface SnapshotInfo.Builder extends SdkPojo, CopyableBuilder<SnapshotInfo.Builder,SnapshotInfo>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SnapshotInfo.BuilderavailabilityZone(String availabilityZone)The Availability Zone or Local Zone of the snapshots.SnapshotInfo.Builderdescription(String description)Description specified by the CreateSnapshotRequest that has been applied to all snapshots.SnapshotInfo.Builderencrypted(Boolean encrypted)Indicates whether the snapshot is encrypted.SnapshotInfo.BuilderoutpostArn(String outpostArn)The ARN of the Outpost on which the snapshot is stored.SnapshotInfo.BuilderownerId(String ownerId)Account id used when creating this snapshot.SnapshotInfo.Builderprogress(String progress)Progress this snapshot has made towards completing.SnapshotInfo.BuildersnapshotId(String snapshotId)Snapshot id that can be used to describe this snapshot.SnapshotInfo.BuildersseType(String sseType)Reserved for future use.SnapshotInfo.BuildersseType(SSEType sseType)Reserved for future use.SnapshotInfo.BuilderstartTime(Instant startTime)Time this snapshot was started.SnapshotInfo.Builderstate(String state)Current state of the snapshot.SnapshotInfo.Builderstate(SnapshotState state)Current state of the snapshot.SnapshotInfo.Buildertags(Collection<Tag> tags)Tags associated with this snapshot.SnapshotInfo.Buildertags(Consumer<Tag.Builder>... tags)Tags associated with this snapshot.SnapshotInfo.Buildertags(Tag... tags)Tags associated with this snapshot.SnapshotInfo.BuildervolumeId(String volumeId)Source volume from which this snapshot was created.SnapshotInfo.BuildervolumeSize(Integer volumeSize)Size of the volume from which this snapshot was created.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
description
SnapshotInfo.Builder description(String description)
Description specified by the CreateSnapshotRequest that has been applied to all snapshots.
- Parameters:
description- Description specified by the CreateSnapshotRequest that has been applied to all snapshots.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SnapshotInfo.Builder tags(Collection<Tag> tags)
Tags associated with this snapshot.
- Parameters:
tags- Tags associated with this snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SnapshotInfo.Builder tags(Tag... tags)
Tags associated with this snapshot.
- Parameters:
tags- Tags associated with this snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
SnapshotInfo.Builder tags(Consumer<Tag.Builder>... tags)
Tags associated with this snapshot.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
encrypted
SnapshotInfo.Builder encrypted(Boolean encrypted)
Indicates whether the snapshot is encrypted.
- Parameters:
encrypted- Indicates whether the snapshot is encrypted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeId
SnapshotInfo.Builder volumeId(String volumeId)
Source volume from which this snapshot was created.
- Parameters:
volumeId- Source volume from which this snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
SnapshotInfo.Builder state(String state)
Current state of the snapshot.
- Parameters:
state- Current state of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotState,SnapshotState
-
state
SnapshotInfo.Builder state(SnapshotState state)
Current state of the snapshot.
- Parameters:
state- Current state of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotState,SnapshotState
-
volumeSize
SnapshotInfo.Builder volumeSize(Integer volumeSize)
Size of the volume from which this snapshot was created.
- Parameters:
volumeSize- Size of the volume from which this snapshot was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
SnapshotInfo.Builder startTime(Instant startTime)
Time this snapshot was started. This is the same for all snapshots initiated by the same request.
- Parameters:
startTime- Time this snapshot was started. This is the same for all snapshots initiated by the same request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
progress
SnapshotInfo.Builder progress(String progress)
Progress this snapshot has made towards completing.
- Parameters:
progress- Progress this snapshot has made towards completing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
SnapshotInfo.Builder ownerId(String ownerId)
Account id used when creating this snapshot.
- Parameters:
ownerId- Account id used when creating this snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotId
SnapshotInfo.Builder snapshotId(String snapshotId)
Snapshot id that can be used to describe this snapshot.
- Parameters:
snapshotId- Snapshot id that can be used to describe this snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outpostArn
SnapshotInfo.Builder outpostArn(String outpostArn)
The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon EBS User Guide.
- Parameters:
outpostArn- The ARN of the Outpost on which the snapshot is stored. For more information, see Amazon EBS local snapshots on Outposts in the Amazon EBS User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sseType
SnapshotInfo.Builder sseType(String sseType)
Reserved for future use.
-
sseType
SnapshotInfo.Builder sseType(SSEType sseType)
Reserved for future use.
-
availabilityZone
SnapshotInfo.Builder availabilityZone(String availabilityZone)
The Availability Zone or Local Zone of the snapshots. For example,
us-west-1a(Availability Zone) orus-west-2-lax-1a(Local Zone).- Parameters:
availabilityZone- The Availability Zone or Local Zone of the snapshots. For example,us-west-1a(Availability Zone) orus-west-2-lax-1a(Local Zone).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-