Interface CreateDiskSnapshotRequest.Builder

    • Method Detail

      • diskName

        CreateDiskSnapshotRequest.Builder diskName​(String 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

        CreateDiskSnapshotRequest.Builder tags​(Collection<Tag> 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

        CreateDiskSnapshotRequest.Builder tags​(Tag... 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

        CreateDiskSnapshotRequest.Builder tags​(Consumer<Tag.Builder>... 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).

        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:
        #tags(java.util.Collection)