Interface AttachVolumeResponse.Builder

  • Method Details

    • deleteOnTermination

      AttachVolumeResponse.Builder deleteOnTermination(Boolean deleteOnTermination)

      Indicates whether the EBS volume is deleted on instance termination.

      Parameters:
      deleteOnTermination - Indicates whether the EBS volume is deleted on instance termination.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedResource

      AttachVolumeResponse.Builder associatedResource(String associatedResource)

      The ARN of the Amazon Web Services-managed resource to which the volume is attached.

      Parameters:
      associatedResource - The ARN of the Amazon Web Services-managed resource to which the volume is attached.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceOwningService

      AttachVolumeResponse.Builder instanceOwningService(String instanceOwningService)

      The service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached.

      This parameter is returned only for volumes that are attached to Amazon Web Services-managed resources.

      Parameters:
      instanceOwningService - The service principal of the Amazon Web Services service that owns the underlying resource to which the volume is attached.

      This parameter is returned only for volumes that are attached to Amazon Web Services-managed resources.

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

      AttachVolumeResponse.Builder ebsCardIndex(Integer ebsCardIndex)

      The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.

      Parameters:
      ebsCardIndex - The index of the EBS card. Some instance types support multiple EBS cards. The default EBS card index is 0.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZone

      AttachVolumeResponse.Builder availabilityZone(String availabilityZone)

      The name of the Availability Zone of the attachment. For a Multi-Availability Zone volume, compare this value with the volume's AvailabilityZone (the active Availability Zone) and the standby Availability Zone in its MultiAvailabilityZoneConfiguration to determine whether the instance is in the active or the standby Availability Zone.

      Parameters:
      availabilityZone - The name of the Availability Zone of the attachment. For a Multi-Availability Zone volume, compare this value with the volume's AvailabilityZone (the active Availability Zone) and the standby Availability Zone in its MultiAvailabilityZoneConfiguration to determine whether the instance is in the active or the standby Availability Zone.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilityZoneId

      AttachVolumeResponse.Builder availabilityZoneId(String availabilityZoneId)

      The ID of the Availability Zone of the attachment. For a Multi-Availability Zone volume, compare this value with the volume's AvailabilityZoneId (the active Availability Zone) and the standby Availability Zone ID in its MultiAvailabilityZoneConfiguration to determine whether the instance is in the active or the standby Availability Zone.

      Parameters:
      availabilityZoneId - The ID of the Availability Zone of the attachment. For a Multi-Availability Zone volume, compare this value with the volume's AvailabilityZoneId (the active Availability Zone) and the standby Availability Zone ID in its MultiAvailabilityZoneConfiguration to determine whether the instance is in the active or the standby Availability Zone.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • trimState

      AttachVolumeResponse.Builder trimState(String trimState)

      A read-only value that indicates whether the volume is reporting TRIM support to the operating system for this attachment. Amazon EBS sets this value from the volume's TrimOnAttach setting when the volume attaches, and the value doesn't change for the life of the attachment. You can't set TrimState directly. To change it, modify TrimOnAttach, then detach and reattach the volume. For volumes with Multi-Attach enabled, each attachment has its own TrimState. This value isn't returned for unattached volumes.

      Valid values:

      • enabled: The volume reports TRIM support to the operating system.

      • disabled: The volume does not report TRIM support to the operating system.

      Parameters:
      trimState - A read-only value that indicates whether the volume is reporting TRIM support to the operating system for this attachment. Amazon EBS sets this value from the volume's TrimOnAttach setting when the volume attaches, and the value doesn't change for the life of the attachment. You can't set TrimState directly. To change it, modify TrimOnAttach, then detach and reattach the volume. For volumes with Multi-Attach enabled, each attachment has its own TrimState. This value isn't returned for unattached volumes.

      Valid values:

      • enabled: The volume reports TRIM support to the operating system.

      • disabled: The volume does not report TRIM support to the operating system.

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

      A read-only value that indicates whether the volume is reporting TRIM support to the operating system for this attachment. Amazon EBS sets this value from the volume's TrimOnAttach setting when the volume attaches, and the value doesn't change for the life of the attachment. You can't set TrimState directly. To change it, modify TrimOnAttach, then detach and reattach the volume. For volumes with Multi-Attach enabled, each attachment has its own TrimState. This value isn't returned for unattached volumes.

      Valid values:

      • enabled: The volume reports TRIM support to the operating system.

      • disabled: The volume does not report TRIM support to the operating system.

      Parameters:
      trimState - A read-only value that indicates whether the volume is reporting TRIM support to the operating system for this attachment. Amazon EBS sets this value from the volume's TrimOnAttach setting when the volume attaches, and the value doesn't change for the life of the attachment. You can't set TrimState directly. To change it, modify TrimOnAttach, then detach and reattach the volume. For volumes with Multi-Attach enabled, each attachment has its own TrimState. This value isn't returned for unattached volumes.

      Valid values:

      • enabled: The volume reports TRIM support to the operating system.

      • disabled: The volume does not report TRIM support to the operating system.

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

      The ID of the volume.

      Parameters:
      volumeId - The ID of the volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceId

      AttachVolumeResponse.Builder instanceId(String instanceId)

      The ID of the instance.

      If the volume is attached to an Amazon Web Services-managed resource, this parameter returns null.

      Parameters:
      instanceId - The ID of the instance.

      If the volume is attached to an Amazon Web Services-managed resource, this parameter returns null.

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

      The device name.

      If the volume is attached to an Amazon Web Services-managed resource, this parameter returns null.

      Parameters:
      device - The device name.

      If the volume is attached to an Amazon Web Services-managed resource, this parameter returns null.

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

      The attachment state of the volume.

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

      The attachment state of the volume.

      Parameters:
      state - The attachment state of the volume.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • attachTime

      AttachVolumeResponse.Builder attachTime(Instant attachTime)

      The time stamp when the attachment initiated.

      Parameters:
      attachTime - The time stamp when the attachment initiated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.