@Stability(value=Experimental) @Internal public static final class ContainerOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ContainerOptions
ContainerOptionssoftware.amazon.jsii.JsiiObject.InitializationModeContainerOptions.Builder, ContainerOptions.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(ContainerOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by the
ContainerOptions.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
ContainerCredentials |
getCredentials()
(experimental) f the image's container registry requires authentication to pull the image, you can use credentials to set a map of the username and password.
|
Map<String,String> |
getEnv()
(experimental) Sets a map of environment variables in the container.
|
String |
getImage()
(experimental) The Docker image to use as the container to run the action.
|
List<String> |
getOptions()
(experimental) Additional Docker container resource options.
|
List<Number> |
getPorts()
(experimental) Sets an array of ports to expose on the container.
|
List<String> |
getVolumes()
(experimental) Sets an array of volumes for the container to use.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(ContainerOptions.Builder builder)
ContainerOptions.Builder.public final String getImage()
ContainerOptionsThe value can be the Docker Hub image name or a registry name.
getImage in interface ContainerOptionspublic final ContainerCredentials getCredentials()
ContainerOptionsThe credentials are the same values that you would provide to the docker login command.
getCredentials in interface ContainerOptionspublic final Map<String,String> getEnv()
ContainerOptionsgetEnv in interface ContainerOptionspublic final List<String> getOptions()
ContainerOptionsgetOptions in interface ContainerOptionshttps://docs.docker.com/engine/reference/commandline/create/#optionspublic final List<Number> getPorts()
ContainerOptionsgetPorts in interface ContainerOptionspublic final List<String> getVolumes()
ContainerOptionsYou can use volumes to share data between services or other steps in a job. You can specify named Docker volumes, anonymous Docker volumes, or bind mounts on the host.
To specify a volume, you specify the source and destination path:
<source>:<destinationPath>.
getVolumes in interface ContainerOptions@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.