Interface Attachment.Builder

    • Method Detail

      • id

        Attachment.Builder id​(String id)

        The unique identifier for the attachment.

        Parameters:
        id - The unique identifier for the attachment.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • type

        Attachment.Builder type​(String type)

        The type of the attachment, such as ElasticNetworkInterface, Service Connect, and AmazonElasticBlockStorage.

        Parameters:
        type - The type of the attachment, such as ElasticNetworkInterface, Service Connect , and AmazonElasticBlockStorage.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • status

        Attachment.Builder status​(String status)

        The status of the attachment. Valid values are PRECREATED, CREATED, ATTACHING, ATTACHED, DETACHING, DETACHED, DELETED, and FAILED.

        Parameters:
        status - The status of the attachment. Valid values are PRECREATED, CREATED, ATTACHING, ATTACHED, DETACHING, DETACHED, DELETED, and FAILED.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • details

        Attachment.Builder details​(Collection<KeyValuePair> details)

        Details of the attachment.

        For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.

        For Service Connect services, this includes portName, clientAliases, discoveryName, and ingressPortOverride.

        For elastic block storage, this includes roleArn, encrypted, filesystemType, iops, kmsKeyId, sizeInGiB, snapshotId, tagSpecifications, throughput, and volumeType .

        Parameters:
        details - Details of the attachment.

        For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.

        For Service Connect services, this includes portName, clientAliases, discoveryName, and ingressPortOverride.

        For elastic block storage, this includes roleArn, encrypted, filesystemType, iops, kmsKeyId, sizeInGiB, snapshotId, tagSpecifications, throughput, and volumeType.

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

        Attachment.Builder details​(KeyValuePair... details)

        Details of the attachment.

        For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.

        For Service Connect services, this includes portName, clientAliases, discoveryName, and ingressPortOverride.

        For elastic block storage, this includes roleArn, encrypted, filesystemType, iops, kmsKeyId, sizeInGiB, snapshotId, tagSpecifications, throughput, and volumeType .

        Parameters:
        details - Details of the attachment.

        For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.

        For Service Connect services, this includes portName, clientAliases, discoveryName, and ingressPortOverride.

        For elastic block storage, this includes roleArn, encrypted, filesystemType, iops, kmsKeyId, sizeInGiB, snapshotId, tagSpecifications, throughput, and volumeType.

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

        Attachment.Builder details​(Consumer<KeyValuePair.Builder>... details)

        Details of the attachment.

        For elastic network interfaces, this includes the network interface ID, the MAC address, the subnet ID, and the private IPv4 address.

        For Service Connect services, this includes portName, clientAliases, discoveryName, and ingressPortOverride.

        For elastic block storage, this includes roleArn, encrypted, filesystemType, iops, kmsKeyId, sizeInGiB, snapshotId, tagSpecifications, throughput, and volumeType .

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #details(List).

        Parameters:
        details - a consumer that will call methods on KeyValuePair.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #details(java.util.Collection)