Interface DiskSnapshot.Builder

  • Method Details

    • name

      The name of the disk snapshot (my-disk-snapshot).

      Parameters:
      name - The name of the disk snapshot (my-disk-snapshot).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The Amazon Resource Name (ARN) of the disk snapshot.

      Parameters:
      arn - The Amazon Resource Name (ARN) of the disk snapshot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportCode

      DiskSnapshot.Builder supportCode(String supportCode)

      The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.

      Parameters:
      supportCode - The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      DiskSnapshot.Builder createdAt(Instant createdAt)

      The date when the disk snapshot was created.

      Parameters:
      createdAt - The date when the disk snapshot was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • location

      The AWS Region and Availability Zone where the disk snapshot was created.

      Parameters:
      location - The AWS Region and Availability Zone where the disk snapshot was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • location

      The AWS Region and Availability Zone where the disk snapshot was created.

      This is a convenience method that creates an instance of the ResourceLocation.Builder avoiding the need to create one manually via ResourceLocation.builder().

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

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

      DiskSnapshot.Builder resourceType(String resourceType)

      The Lightsail resource type (DiskSnapshot).

      Parameters:
      resourceType - The Lightsail resource type (DiskSnapshot).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • resourceType

      DiskSnapshot.Builder resourceType(ResourceType resourceType)

      The Lightsail resource type (DiskSnapshot).

      Parameters:
      resourceType - The Lightsail resource type (DiskSnapshot).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tags

      The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

      Parameters:
      tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      DiskSnapshot.Builder tags(Tag... tags)

      The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

      Parameters:
      tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.

      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:
    • sizeInGb

      DiskSnapshot.Builder sizeInGb(Integer sizeInGb)

      The size of the disk in GB.

      Parameters:
      sizeInGb - The size of the disk in GB.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • state

      The status of the disk snapshot operation.

      Parameters:
      state - The status of the disk snapshot operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The status of the disk snapshot operation.

      Parameters:
      state - The status of the disk snapshot operation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • progress

      DiskSnapshot.Builder progress(String progress)

      The progress of the snapshot.

      Parameters:
      progress - The progress of the snapshot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fromDiskName

      DiskSnapshot.Builder fromDiskName(String fromDiskName)

      The unique name of the source disk from which the disk snapshot was created.

      Parameters:
      fromDiskName - The unique name of the source disk from which the disk snapshot was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fromDiskArn

      DiskSnapshot.Builder fromDiskArn(String fromDiskArn)

      The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.

      Parameters:
      fromDiskArn - The Amazon Resource Name (ARN) of the source disk from which the disk snapshot was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fromInstanceName

      DiskSnapshot.Builder fromInstanceName(String fromInstanceName)

      The unique name of the source instance from which the disk (system volume) snapshot was created.

      Parameters:
      fromInstanceName - The unique name of the source instance from which the disk (system volume) snapshot was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fromInstanceArn

      DiskSnapshot.Builder fromInstanceArn(String fromInstanceArn)

      The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.

      Parameters:
      fromInstanceArn - The Amazon Resource Name (ARN) of the source instance from which the disk (system volume) snapshot was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isFromAutoSnapshot

      DiskSnapshot.Builder isFromAutoSnapshot(Boolean isFromAutoSnapshot)

      A Boolean value indicating whether the snapshot was created from an automatic snapshot.

      Parameters:
      isFromAutoSnapshot - A Boolean value indicating whether the snapshot was created from an automatic snapshot.
      Returns:
      Returns a reference to this object so that method calls can be chained together.