Class BlockDeviceMapping

    • Method Detail

      • deviceName

        public final String deviceName()

        The device name that is exposed to the instance, such as /dev/sdh. For the root device, you can use the explicit device name or you can set this parameter to ROOT_DEVICE and AWS OpsWorks Stacks will provide the correct device name.

        Returns:
        The device name that is exposed to the instance, such as /dev/sdh. For the root device, you can use the explicit device name or you can set this parameter to ROOT_DEVICE and AWS OpsWorks Stacks will provide the correct device name.
      • noDevice

        public final String noDevice()

        Suppresses the specified device included in the AMI's block device mapping.

        Returns:
        Suppresses the specified device included in the AMI's block device mapping.
      • ebs

        public final EbsBlockDevice ebs()

        An EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is launched.

        Returns:
        An EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is launched.
      • 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)