Class CfnContainer.ContainerProperty.Jsii$Proxy

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

@Stability(Stable) @Internal public static final class CfnContainer.ContainerProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnContainer.ContainerProperty
An implementation for CfnContainer.ContainerProperty
  • 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(CfnContainer.ContainerProperty.Builder builder)
      Constructor that initializes the object based on literal property values passed by the CfnContainer.ContainerProperty.Builder.
  • Method Details

    • getCommand

      public final List<String> getCommand()
      Description copied from interface: CfnContainer.ContainerProperty
      The launch command for the container.
      Specified by:
      getCommand in interface CfnContainer.ContainerProperty
    • getContainerName

      public final String getContainerName()
      Description copied from interface: CfnContainer.ContainerProperty
      The name of the container.
      Specified by:
      getContainerName in interface CfnContainer.ContainerProperty
    • getEnvironment

      public final Object getEnvironment()
      Description copied from interface: CfnContainer.ContainerProperty
      The environment variables of the container.
      Specified by:
      getEnvironment in interface CfnContainer.ContainerProperty
    • getImage

      public final String getImage()
      Description copied from interface: CfnContainer.ContainerProperty
      The name of the image used for the container.

      Container images that are sourced from (registered and stored on) your container service start with a colon ( : ). For example, if your container service name is container-service-1 , the container image label is mystaticsite , and you want to use the third version ( 3 ) of the registered container image, then you should specify :container-service-1.mystaticsite.3 . To use the latest version of a container image, specify latest instead of a version number (for example, :container-service-1.mystaticsite.latest ). Your container service will automatically use the highest numbered version of the registered container image.

      Container images that are sourced from a public registry like Docker Hub don’t start with a colon. For example, nginx:latest or nginx .

      Specified by:
      getImage in interface CfnContainer.ContainerProperty
    • getPorts

      public final Object getPorts()
      Description copied from interface: CfnContainer.ContainerProperty
      An object that describes the open firewall ports and protocols of the container.
      Specified by:
      getPorts in interface CfnContainer.ContainerProperty
    • $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