Interface InstanceSnapshot.Builder

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

public static interface InstanceSnapshot.Builder extends SdkPojo, CopyableBuilder<InstanceSnapshot.Builder,InstanceSnapshot>
  • Method Details

    • 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.
    • arn

      The Amazon Resource Name (ARN) of the snapshot ( arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE).

      Parameters:
      arn - The Amazon Resource Name (ARN) of the snapshot ( arn:aws:lightsail:us-east-2:123456789101:InstanceSnapshot/d23b5706-3322-4d83-81e5-12345EXAMPLE ).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • supportCode

      InstanceSnapshot.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

      InstanceSnapshot.Builder createdAt(Instant createdAt)

      The timestamp when the snapshot was created (1479907467.024).

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

      The region name and Availability Zone where you created the snapshot.

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

      The region name and Availability Zone where you created the snapshot.

      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

      InstanceSnapshot.Builder resourceType(String resourceType)

      The type of resource (usually InstanceSnapshot).

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

      InstanceSnapshot.Builder resourceType(ResourceType resourceType)

      The type of resource (usually InstanceSnapshot).

      Parameters:
      resourceType - The type of resource (usually InstanceSnapshot).
      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

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

      The state the snapshot is in.

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

      The state the snapshot is in.

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

      InstanceSnapshot.Builder progress(String progress)

      The progress of the snapshot.

      This is populated only for disk snapshots, and is null for instance snapshots.

      Parameters:
      progress - The progress of the snapshot.

      This is populated only for disk snapshots, and is null for instance snapshots.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fromAttachedDisks

      InstanceSnapshot.Builder fromAttachedDisks(Collection<Disk> fromAttachedDisks)

      An array of disk objects containing information about all block storage disks.

      Parameters:
      fromAttachedDisks - An array of disk objects containing information about all block storage disks.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fromAttachedDisks

      InstanceSnapshot.Builder fromAttachedDisks(Disk... fromAttachedDisks)

      An array of disk objects containing information about all block storage disks.

      Parameters:
      fromAttachedDisks - An array of disk objects containing information about all block storage disks.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fromAttachedDisks

      InstanceSnapshot.Builder fromAttachedDisks(Consumer<Disk.Builder>... fromAttachedDisks)

      An array of disk objects containing information about all block storage disks.

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

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

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

      InstanceSnapshot.Builder fromInstanceName(String fromInstanceName)

      The instance from which the snapshot was created.

      Parameters:
      fromInstanceName - The instance from which the snapshot was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fromInstanceArn

      InstanceSnapshot.Builder fromInstanceArn(String fromInstanceArn)

      The Amazon Resource Name (ARN) of the instance from which the snapshot was created ( arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).

      Parameters:
      fromInstanceArn - The Amazon Resource Name (ARN) of the instance from which the snapshot was created ( arn:aws:lightsail:us-east-2:123456789101:Instance/64b8404c-ccb1-430b-8daf-12345EXAMPLE).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fromBlueprintId

      InstanceSnapshot.Builder fromBlueprintId(String fromBlueprintId)

      The blueprint ID from which you created the snapshot (os_debian_8_3). A blueprint is a virtual private server (or instance) image used to create instances quickly.

      Parameters:
      fromBlueprintId - The blueprint ID from which you created the snapshot (os_debian_8_3). A blueprint is a virtual private server (or instance) image used to create instances quickly.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fromBundleId

      InstanceSnapshot.Builder fromBundleId(String fromBundleId)

      The bundle ID from which you created the snapshot (micro_1_0).

      Parameters:
      fromBundleId - The bundle ID from which you created the snapshot (micro_1_0).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isFromAutoSnapshot

      InstanceSnapshot.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.
    • sizeInGb

      InstanceSnapshot.Builder sizeInGb(Integer sizeInGb)

      The size in GB of the SSD.

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