Class ContainerOptions.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.github.workflows.ContainerOptions.Jsii$Proxy
-
- All Implemented Interfaces:
ContainerOptions,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- ContainerOptions
@Stability(Experimental) @Internal public static final class ContainerOptions.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ContainerOptions
An implementation forContainerOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.github.workflows.ContainerOptions
ContainerOptions.Builder, ContainerOptions.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(ContainerOptions.Builder builder)Constructor that initializes the object based on literal property values passed by theContainerOptions.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)ContainerCredentialsgetCredentials()(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.StringgetImage()(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.inthashCode()
-
-
-
Constructor Detail
-
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(ContainerOptions.Builder builder)
Constructor that initializes the object based on literal property values passed by theContainerOptions.Builder.
-
-
Method Detail
-
getImage
public final String getImage()
Description copied from interface:ContainerOptions(experimental) The Docker image to use as the container to run the action.The value can be the Docker Hub image name or a registry name.
- Specified by:
getImagein interfaceContainerOptions
-
getCredentials
public final ContainerCredentials getCredentials()
Description copied from interface:ContainerOptions(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.The credentials are the same values that you would provide to the docker login command.
- Specified by:
getCredentialsin interfaceContainerOptions
-
getEnv
public final Map<String,String> getEnv()
Description copied from interface:ContainerOptions(experimental) Sets a map of environment variables in the container.- Specified by:
getEnvin interfaceContainerOptions
-
getOptions
public final List<String> getOptions()
Description copied from interface:ContainerOptions(experimental) Additional Docker container resource options.- Specified by:
getOptionsin interfaceContainerOptions- See Also:
- https://docs.docker.com/engine/reference/commandline/create/#options
-
getPorts
public final List<Number> getPorts()
Description copied from interface:ContainerOptions(experimental) Sets an array of ports to expose on the container.- Specified by:
getPortsin interfaceContainerOptions
-
getVolumes
public final List<String> getVolumes()
Description copied from interface:ContainerOptions(experimental) Sets an array of volumes for the container to use.You 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>.- Specified by:
getVolumesin interfaceContainerOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-