Interface Snapshot.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Snapshot.Builder,Snapshot>,SdkBuilder<Snapshot.Builder,Snapshot>,SdkPojo
- Enclosing class:
- Snapshot
public static interface Snapshot.Builder extends SdkPojo, CopyableBuilder<Snapshot.Builder,Snapshot>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Snapshot.BuilderadministrativeActions(Collection<AdministrativeAction> administrativeActions)A list of administrative actions for the file system that are in process or waiting to be processed.Snapshot.BuilderadministrativeActions(Consumer<AdministrativeAction.Builder>... administrativeActions)A list of administrative actions for the file system that are in process or waiting to be processed.Snapshot.BuilderadministrativeActions(AdministrativeAction... administrativeActions)A list of administrative actions for the file system that are in process or waiting to be processed.Snapshot.BuildercreationTime(Instant creationTime)Sets the value of the CreationTime property for this object.Snapshot.Builderlifecycle(String lifecycle)The lifecycle status of the snapshot.Snapshot.Builderlifecycle(SnapshotLifecycle lifecycle)The lifecycle status of the snapshot.default Snapshot.BuilderlifecycleTransitionReason(Consumer<LifecycleTransitionReason.Builder> lifecycleTransitionReason)Sets the value of the LifecycleTransitionReason property for this object.Snapshot.BuilderlifecycleTransitionReason(LifecycleTransitionReason lifecycleTransitionReason)Sets the value of the LifecycleTransitionReason property for this object.Snapshot.Buildername(String name)The name of the snapshot.Snapshot.BuilderresourceARN(String resourceARN)Sets the value of the ResourceARN property for this object.Snapshot.BuildersnapshotId(String snapshotId)The ID of the snapshot.Snapshot.Buildertags(Collection<Tag> tags)Sets the value of the Tags property for this object.Snapshot.Buildertags(Consumer<Tag.Builder>... tags)Sets the value of the Tags property for this object.Snapshot.Buildertags(Tag... tags)Sets the value of the Tags property for this object.Snapshot.BuildervolumeId(String volumeId)The ID of the volume that the snapshot is of.-
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
-
resourceARN
Snapshot.Builder resourceARN(String resourceARN)
Sets the value of the ResourceARN property for this object.- Parameters:
resourceARN- The new value for the ResourceARN property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotId
Snapshot.Builder snapshotId(String 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.
-
name
Snapshot.Builder name(String name)
The name of the snapshot.
- Parameters:
name- The name of the snapshot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
volumeId
Snapshot.Builder volumeId(String volumeId)
The ID of the volume that the snapshot is of.
- Parameters:
volumeId- The ID of the volume that the snapshot is of.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
Snapshot.Builder creationTime(Instant creationTime)
Sets the value of the CreationTime property for this object.- Parameters:
creationTime- The new value for the CreationTime property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycle
Snapshot.Builder lifecycle(String lifecycle)
The lifecycle status of the snapshot.
-
PENDING- Amazon FSx hasn't started creating the snapshot. -
CREATING- Amazon FSx is creating the snapshot. -
DELETING- Amazon FSx is deleting the snapshot. -
AVAILABLE- The snapshot is fully available.
- Parameters:
lifecycle- The lifecycle status of the snapshot.-
PENDING- Amazon FSx hasn't started creating the snapshot. -
CREATING- Amazon FSx is creating the snapshot. -
DELETING- Amazon FSx is deleting the snapshot. -
AVAILABLE- The snapshot is fully available.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotLifecycle,SnapshotLifecycle
-
-
lifecycle
Snapshot.Builder lifecycle(SnapshotLifecycle lifecycle)
The lifecycle status of the snapshot.
-
PENDING- Amazon FSx hasn't started creating the snapshot. -
CREATING- Amazon FSx is creating the snapshot. -
DELETING- Amazon FSx is deleting the snapshot. -
AVAILABLE- The snapshot is fully available.
- Parameters:
lifecycle- The lifecycle status of the snapshot.-
PENDING- Amazon FSx hasn't started creating the snapshot. -
CREATING- Amazon FSx is creating the snapshot. -
DELETING- Amazon FSx is deleting the snapshot. -
AVAILABLE- The snapshot is fully available.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotLifecycle,SnapshotLifecycle
-
-
lifecycleTransitionReason
Snapshot.Builder lifecycleTransitionReason(LifecycleTransitionReason lifecycleTransitionReason)
Sets the value of the LifecycleTransitionReason property for this object.- Parameters:
lifecycleTransitionReason- The new value for the LifecycleTransitionReason property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycleTransitionReason
default Snapshot.Builder lifecycleTransitionReason(Consumer<LifecycleTransitionReason.Builder> lifecycleTransitionReason)
Sets the value of the LifecycleTransitionReason property for this object. This is a convenience method that creates an instance of theLifecycleTransitionReason.Builderavoiding the need to create one manually viaLifecycleTransitionReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolifecycleTransitionReason(LifecycleTransitionReason).- Parameters:
lifecycleTransitionReason- a consumer that will call methods onLifecycleTransitionReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
lifecycleTransitionReason(LifecycleTransitionReason)
-
tags
Snapshot.Builder tags(Collection<Tag> tags)
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Snapshot.Builder tags(Tag... tags)
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Snapshot.Builder tags(Consumer<Tag.Builder>... tags)
Sets the value of the Tags property for this object. 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)
-
administrativeActions
Snapshot.Builder administrativeActions(Collection<AdministrativeAction> administrativeActions)
A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system.
- Parameters:
administrativeActions- A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
administrativeActions
Snapshot.Builder administrativeActions(AdministrativeAction... administrativeActions)
A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system.
- Parameters:
administrativeActions- A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
administrativeActions
Snapshot.Builder administrativeActions(Consumer<AdministrativeAction.Builder>... administrativeActions)
A list of administrative actions for the file system that are in process or waiting to be processed. Administrative actions describe changes to the Amazon FSx system.
This is a convenience method that creates an instance of theAdministrativeAction.Builderavoiding the need to create one manually viaAdministrativeAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#administrativeActions(List.) - Parameters:
administrativeActions- a consumer that will call methods onAdministrativeAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#administrativeActions(java.util.Collection)
-
-