Class Config
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Config
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class Config
extends Object
It should hold only portable information about the container. Here, \"portable\" means
\"independent from the host we are running on\". Non-portable information *should*
appear in HostConfig. All fields added to this struct must be marked `omitempty` to
keep getting predictable hashes from the old `v1Compatibility` configuration.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCmdItem(String cmdItem) addEntrypointItem(String entrypointItem) addEnvItem(String envItem) addOnBuildItem(String onBuildItem) addShellItem(String shellItem) argsEscaped(Boolean argsEscaped) attachStderr(Boolean attachStderr) attachStdin(Boolean attachStdin) attachStdout(Boolean attachStdout) domainname(String domainname) entrypoint(List<String> entrypoint) booleanexposedPorts(Map<String, Object> exposedPorts) static ConfigCreate an instance of Config given an JSON stringGet argsEscapedGet attachStderrGet attachStdinGet attachStdoutgetCmd()We need to override the json decoder to accept both options.Get domainnameWe need to override the json decoder to accept both options.getEnv()Get envPortSet is a collection of structs indexed by PortGet healthcheckGet hostnamegetImage()Get imageGet labelsMac Address of the container.Get networkDisabledGet onBuildGet openStdingetShell()We need to override the json decoder to accept both options.Get stdinOnceGet stopSignalGet stopTimeoutgetTty()Get ttygetUser()Get userGet volumesGet workingDirinthashCode()healthcheck(HealthcheckConfig healthcheck) macAddress(String macAddress) networkDisabled(Boolean networkDisabled) putExposedPortsItem(String key, Object exposedPortsItem) putLabelsItem(String key, String labelsItem) putVolumesItem(String key, Object volumesItem) voidsetArgsEscaped(Boolean argsEscaped) voidsetAttachStderr(Boolean attachStderr) voidsetAttachStdin(Boolean attachStdin) voidsetAttachStdout(Boolean attachStdout) voidvoidsetDomainname(String domainname) voidsetEntrypoint(List<String> entrypoint) voidvoidsetExposedPorts(Map<String, Object> exposedPorts) voidsetHealthcheck(HealthcheckConfig healthcheck) voidsetHostname(String hostname) voidvoidvoidsetMacAddress(String macAddress) voidsetNetworkDisabled(Boolean networkDisabled) voidsetOnBuild(List<String> onBuild) voidsetOpenStdin(Boolean openStdin) voidvoidsetStdinOnce(Boolean stdinOnce) voidsetStopSignal(String stopSignal) voidsetStopTimeout(Long stopTimeout) voidvoidvoidsetVolumes(Map<String, Object> volumes) voidsetWorkingDir(String workingDir) stopSignal(String stopSignal) stopTimeout(Long stopTimeout) toJson()Convert an instance of Config to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundworkingDir(String workingDir)
-
Field Details
-
SERIALIZED_NAME_ARGS_ESCAPED
- See Also:
-
SERIALIZED_NAME_ATTACH_STDERR
- See Also:
-
SERIALIZED_NAME_ATTACH_STDIN
- See Also:
-
SERIALIZED_NAME_ATTACH_STDOUT
- See Also:
-
SERIALIZED_NAME_CMD
- See Also:
-
SERIALIZED_NAME_DOMAINNAME
- See Also:
-
SERIALIZED_NAME_ENTRYPOINT
- See Also:
-
SERIALIZED_NAME_ENV
- See Also:
-
SERIALIZED_NAME_EXPOSED_PORTS
- See Also:
-
SERIALIZED_NAME_HEALTHCHECK
- See Also:
-
SERIALIZED_NAME_HOSTNAME
- See Also:
-
SERIALIZED_NAME_IMAGE
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_MAC_ADDRESS
- See Also:
-
SERIALIZED_NAME_NETWORK_DISABLED
- See Also:
-
SERIALIZED_NAME_ON_BUILD
- See Also:
-
SERIALIZED_NAME_OPEN_STDIN
- See Also:
-
SERIALIZED_NAME_SHELL
- See Also:
-
SERIALIZED_NAME_STDIN_ONCE
- See Also:
-
SERIALIZED_NAME_STOP_SIGNAL
- See Also:
-
SERIALIZED_NAME_STOP_TIMEOUT
- See Also:
-
SERIALIZED_NAME_TTY
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
SERIALIZED_NAME_VOLUMES
- See Also:
-
SERIALIZED_NAME_WORKING_DIR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
argsEscaped
-
getArgsEscaped
Get argsEscaped- Returns:
- argsEscaped
-
setArgsEscaped
-
attachStderr
-
getAttachStderr
Get attachStderr- Returns:
- attachStderr
-
setAttachStderr
-
attachStdin
-
getAttachStdin
Get attachStdin- Returns:
- attachStdin
-
setAttachStdin
-
attachStdout
-
getAttachStdout
Get attachStdout- Returns:
- attachStdout
-
setAttachStdout
-
cmd
-
addCmdItem
-
getCmd
We need to override the json decoder to accept both options.- Returns:
- cmd
-
setCmd
-
domainname
-
getDomainname
Get domainname- Returns:
- domainname
-
setDomainname
-
entrypoint
-
addEntrypointItem
-
getEntrypoint
We need to override the json decoder to accept both options.- Returns:
- entrypoint
-
setEntrypoint
-
env
-
addEnvItem
-
getEnv
Get env- Returns:
- env
-
setEnv
-
exposedPorts
-
putExposedPortsItem
-
getExposedPorts
PortSet is a collection of structs indexed by Port- Returns:
- exposedPorts
-
setExposedPorts
-
healthcheck
-
getHealthcheck
Get healthcheck- Returns:
- healthcheck
-
setHealthcheck
-
hostname
-
getHostname
Get hostname- Returns:
- hostname
-
setHostname
-
image
-
getImage
Get image- Returns:
- image
-
setImage
-
labels
-
putLabelsItem
-
getLabels
Get labels- Returns:
- labels
-
setLabels
-
macAddress
-
getMacAddress
Mac Address of the container. Deprecated: this field is deprecated since API v1.44. Use EndpointSettings.MacAddress instead.- Returns:
- macAddress
-
setMacAddress
-
networkDisabled
-
getNetworkDisabled
Get networkDisabled- Returns:
- networkDisabled
-
setNetworkDisabled
-
onBuild
-
addOnBuildItem
-
getOnBuild
Get onBuild- Returns:
- onBuild
-
setOnBuild
-
openStdin
-
getOpenStdin
Get openStdin- Returns:
- openStdin
-
setOpenStdin
-
shell
-
addShellItem
-
getShell
We need to override the json decoder to accept both options.- Returns:
- shell
-
setShell
-
stdinOnce
-
getStdinOnce
Get stdinOnce- Returns:
- stdinOnce
-
setStdinOnce
-
stopSignal
-
getStopSignal
Get stopSignal- Returns:
- stopSignal
-
setStopSignal
-
stopTimeout
-
getStopTimeout
Get stopTimeout- Returns:
- stopTimeout
-
setStopTimeout
-
tty
-
getTty
Get tty- Returns:
- tty
-
setTty
-
user
-
getUser
Get user- Returns:
- user
-
setUser
-
volumes
-
putVolumesItem
-
getVolumes
Get volumes- Returns:
- volumes
-
setVolumes
-
workingDir
-
getWorkingDir
Get workingDir- Returns:
- workingDir
-
setWorkingDir
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Config
-
fromJson
Create an instance of Config given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Config
- Throws:
IOException- if the JSON string is invalid with respect to Config
-
toJson
Convert an instance of Config to an JSON string- Returns:
- JSON string
-