Interface CreateDiskSnapshotRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<CreateDiskSnapshotRequest.Builder,CreateDiskSnapshotRequest>, LightsailRequest.Builder, SdkBuilder<CreateDiskSnapshotRequest.Builder,CreateDiskSnapshotRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
CreateDiskSnapshotRequest

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

    • diskName

      The unique name of the source disk (Disk-Virginia-1).

      This parameter cannot be defined together with the instance name parameter. The disk name and instance name parameters are mutually exclusive.

      Parameters:
      diskName - The unique name of the source disk (Disk-Virginia-1).

      This parameter cannot be defined together with the instance name parameter. The disk name and instance name parameters are mutually exclusive.

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

      CreateDiskSnapshotRequest.Builder diskSnapshotName(String diskSnapshotName)

      The name of the destination disk snapshot (my-disk-snapshot) based on the source disk.

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

      CreateDiskSnapshotRequest.Builder instanceName(String instanceName)

      The unique name of the source instance (Amazon_Linux-512MB-Virginia-1). When this is defined, a snapshot of the instance's system volume is created.

      This parameter cannot be defined together with the disk name parameter. The instance name and disk name parameters are mutually exclusive.

      Parameters:
      instanceName - The unique name of the source instance (Amazon_Linux-512MB-Virginia-1). When this is defined, a snapshot of the instance's system volume is created.

      This parameter cannot be defined together with the disk name parameter. The instance name and disk name parameters are mutually exclusive.

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

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      Parameters:
      tags - The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

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

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

      Parameters:
      tags - The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

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

      The tag keys and optional values to add to the resource during create.

      Use the TagResource action to tag a resource after it's created.

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

      CreateDiskSnapshotRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.