Class BlockDeviceMapping

    • Constructor Detail

      • BlockDeviceMapping

        public BlockDeviceMapping()
    • Method Detail

      • setDeviceName

        public void setDeviceName​(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 will provide the correct device name.

        Parameters:
        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 will provide the correct device name.
      • getDeviceName

        public String getDeviceName()

        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 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 will provide the correct device name.
      • withDeviceName

        public BlockDeviceMapping withDeviceName​(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 will provide the correct device name.

        Parameters:
        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 will provide the correct device name.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setNoDevice

        public void setNoDevice​(String noDevice)

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

        Parameters:
        noDevice - Suppresses the specified device included in the AMI's block device mapping.
      • getNoDevice

        public String getNoDevice()

        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.
      • withNoDevice

        public BlockDeviceMapping withNoDevice​(String noDevice)

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

        Parameters:
        noDevice - Suppresses the specified device included in the AMI's block device mapping.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setVirtualName

        public void setVirtualName​(String virtualName)

        The virtual device name. For more information, see BlockDeviceMapping.

        Parameters:
        virtualName - The virtual device name. For more information, see BlockDeviceMapping.
      • withVirtualName

        public BlockDeviceMapping withVirtualName​(String virtualName)

        The virtual device name. For more information, see BlockDeviceMapping.

        Parameters:
        virtualName - The virtual device name. For more information, see BlockDeviceMapping.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setEbs

        public void setEbs​(EbsBlockDevice ebs)

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

        Parameters:
        ebs - An EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is launched.
      • getEbs

        public EbsBlockDevice getEbs()

        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.
      • withEbs

        public BlockDeviceMapping withEbs​(EbsBlockDevice ebs)

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

        Parameters:
        ebs - An EBSBlockDevice that defines how to configure an Amazon EBS volume when the instance is launched.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object