Class BlockDevice.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.BlockDevice.Jsii$Proxy
All Implemented Interfaces:
BlockDevice, software.amazon.jsii.JsiiSerializable
Enclosing interface:
BlockDevice

@Stability(Stable) @Internal public static final class BlockDevice.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BlockDevice
An implementation for BlockDevice
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode

    Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.BlockDevice

    BlockDevice.Builder, BlockDevice.Jsii$Proxy
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor that initializes the object based on literal property values passed by the BlockDevice.Builder.
    protected
    Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
    Constructor that initializes the object based on values retrieved from the JsiiObject.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    final String
    The device name exposed to the EC2 instance.
    final Boolean
    If false, the device mapping will be suppressed.
    Defines the block device volume, to be either an Amazon EBS volume or an ephemeral instance store volume.
    final int
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(BlockDevice.Builder builder)
      Constructor that initializes the object based on literal property values passed by the BlockDevice.Builder.
  • Method Details

    • getDeviceName

      public final String getDeviceName()
      Description copied from interface: BlockDevice
      The device name exposed to the EC2 instance.

      For example, a value like /dev/sdh, xvdh.

      Specified by:
      getDeviceName in interface BlockDevice
      See Also:
    • getVolume

      public final BlockDeviceVolume getVolume()
      Description copied from interface: BlockDevice
      Defines the block device volume, to be either an Amazon EBS volume or an ephemeral instance store volume.

      For example, a value like BlockDeviceVolume.ebs(15), BlockDeviceVolume.ephemeral(0).

      Specified by:
      getVolume in interface BlockDevice
    • getMappingEnabled

      public final Boolean getMappingEnabled()
      Description copied from interface: BlockDevice
      If false, the device mapping will be suppressed.

      If set to false for the root device, the instance might fail the Amazon EC2 health check. Amazon EC2 Auto Scaling launches a replacement instance if the instance fails the health check.

      Default: true - device mapping is left untouched

      Specified by:
      getMappingEnabled in interface BlockDevice
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

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

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