Class VolumeAttachment

    • Method Detail

      • attachTime

        public final Instant attachTime()

        The time stamp when the attachment initiated.

        Returns:
        The time stamp when the attachment initiated.
      • device

        public final String device()

        The device name.

        If the volume is attached to a Fargate task, this parameter returns null.

        Returns:
        The device name.

        If the volume is attached to a Fargate task, this parameter returns null.

      • instanceId

        public final String instanceId()

        The ID of the instance.

        If the volume is attached to a Fargate task, this parameter returns null.

        Returns:
        The ID of the instance.

        If the volume is attached to a Fargate task, this parameter returns null.

      • volumeId

        public final String volumeId()

        The ID of the volume.

        Returns:
        The ID of the volume.
      • deleteOnTermination

        public final Boolean deleteOnTermination()

        Indicates whether the EBS volume is deleted on instance termination.

        Returns:
        Indicates whether the EBS volume is deleted on instance termination.
      • associatedResource

        public final String associatedResource()

        The ARN of the Amazon ECS or Fargate task to which the volume is attached.

        Returns:
        The ARN of the Amazon ECS or Fargate task to which the volume is attached.
      • instanceOwningService

        public final String instanceOwningService()

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

        This parameter is returned only for volumes that are attached to Fargate tasks.

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

        This parameter is returned only for volumes that are attached to Fargate tasks.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)