Interface DiskSnapshot.Builder

    • Method Detail

      • name

        DiskSnapshot.Builder name​(String 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

        DiskSnapshot.Builder arn​(String 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

        DiskSnapshot.Builder location​(ResourceLocation 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.
      • 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, ResourceType
      • 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:
        ResourceType, ResourceType
      • 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.
      • 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.
      • 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.