Interface Snapshot.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Snapshot.Builder,Snapshot>, SdkBuilder<Snapshot.Builder,Snapshot>, SdkPojo
Enclosing class:
Snapshot

@Mutable @NotThreadSafe public static interface Snapshot.Builder extends SdkPojo, CopyableBuilder<Snapshot.Builder,Snapshot>
  • Method Details

    • 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

      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:
    • 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:
    • 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 the LifecycleTransitionReason.Builder avoiding the need to create one manually via LifecycleTransitionReason.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to lifecycleTransitionReason(LifecycleTransitionReason).

      Parameters:
      lifecycleTransitionReason - a consumer that will call methods on LifecycleTransitionReason.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      Sets the value of the Tags property for this object. This is a convenience method that creates an instance of the Tag.Builder avoiding the need to create one manually via Tag.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 the AdministrativeAction.Builder avoiding the need to create one manually via AdministrativeAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to administrativeActions(List<AdministrativeAction>).

      Parameters:
      administrativeActions - a consumer that will call methods on AdministrativeAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: