Class PodCreateOptions
java.lang.Object
io.github.alersrt.pod4j.openapi.model.PodCreateOptions
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class PodCreateOptions
extends Object
The JSON tags below are made to match the respective field in ContainerCreateOptions for the purpose of mapping.
-
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 Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCreateCommandItem(String createCommandItem) addDeviceReadBpsItem(String deviceReadBpsItem) addDevicesItem(String devicesItem) addSecurityOptItem(String securityOptItem) addShareItem(String shareItem) addSysctlItem(String sysctlItem) addVolumeItem(String volumeItem) addVolumesFromItem(String volumesFromItem) cgroupParent(String cgroupParent) containerCommand(String containerCommand) containerConmonPidfile(String containerConmonPidfile) containerName(String containerName) cpusetCpus(String cpusetCpus) createCommand(List<String> createCommand) deviceReadBps(List<String> deviceReadBps) booleanexitPolicy(String exitPolicy) static PodCreateOptionsCreate an instance of PodCreateOptions given an JSON stringGet cgroupParentGet containerCommandGet containerConmonPidfileGet containerNamegetCpus()Get cpusGet cpusetCpusGet createCommandGet deviceReadBpsGet devicesGet exitPolicyGet hostnamegetInfra()Get infraGet infraImagegetIpc()Get ipcGet labelsgetName()Get name@Valid NetOptionsgetNet()Get netgetPid()Get pidGet restartGet securityOptgetShare()Get shareGet shareParentGet sysctlgetUts()Get utsGet volumeGet volumesFrominthashCode()infraImage(String infraImage) net(NetOptions net) putLabelsItem(String key, String labelsItem) securityOpt(List<String> securityOpt) voidsetCgroupParent(String cgroupParent) voidsetContainerCommand(String containerCommand) voidsetContainerConmonPidfile(String containerConmonPidfile) voidsetContainerName(String containerName) voidvoidsetCpusetCpus(String cpusetCpus) voidsetCreateCommand(List<String> createCommand) voidsetDeviceReadBps(List<String> deviceReadBps) voidsetDevices(List<String> devices) voidsetExitPolicy(String exitPolicy) voidsetHostname(String hostname) voidvoidsetInfraImage(String infraImage) voidvoidvoidvoidsetNet(NetOptions net) voidvoidsetRestart(String restart) voidsetSecurityOpt(List<String> securityOpt) voidvoidsetShareParent(Boolean shareParent) voidvoidvoidvoidsetVolumesFrom(List<String> volumesFrom) shareParent(Boolean shareParent) toJson()Convert an instance of PodCreateOptions to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundvolumesFrom(List<String> volumesFrom)
-
Field Details
-
SERIALIZED_NAME_CGROUP_PARENT
- See Also:
-
SERIALIZED_NAME_CONTAINER_COMMAND
- See Also:
-
SERIALIZED_NAME_CONTAINER_CONMON_PIDFILE
- See Also:
-
SERIALIZED_NAME_CONTAINER_NAME
- See Also:
-
SERIALIZED_NAME_CPUS
- See Also:
-
SERIALIZED_NAME_CPUSET_CPUS
- See Also:
-
SERIALIZED_NAME_CREATE_COMMAND
- See Also:
-
SERIALIZED_NAME_DEVICE_READ_BPS
- See Also:
-
SERIALIZED_NAME_DEVICES
- See Also:
-
SERIALIZED_NAME_EXIT_POLICY
- See Also:
-
SERIALIZED_NAME_HOSTNAME
- See Also:
-
SERIALIZED_NAME_INFRA
- See Also:
-
SERIALIZED_NAME_INFRA_IMAGE
- See Also:
-
SERIALIZED_NAME_IPC
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NET
- See Also:
-
SERIALIZED_NAME_PID
- See Also:
-
SERIALIZED_NAME_RESTART
- See Also:
-
SERIALIZED_NAME_SECURITY_OPT
- See Also:
-
SERIALIZED_NAME_SHARE
- See Also:
-
SERIALIZED_NAME_SHARE_PARENT
- See Also:
-
SERIALIZED_NAME_SYSCTL
- See Also:
-
SERIALIZED_NAME_UTS
- See Also:
-
SERIALIZED_NAME_VOLUME
- See Also:
-
SERIALIZED_NAME_VOLUMES_FROM
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PodCreateOptions
public PodCreateOptions()
-
-
Method Details
-
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 PodCreateOptions
-
fromJson
Create an instance of PodCreateOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PodCreateOptions
- Throws:
IOException- if the JSON string is invalid with respect to PodCreateOptions
-
cgroupParent
-
getCgroupParent
Get cgroupParent- Returns:
- cgroupParent
-
setCgroupParent
-
containerCommand
-
getContainerCommand
Get containerCommand- Returns:
- containerCommand
-
setContainerCommand
-
containerConmonPidfile
-
getContainerConmonPidfile
Get containerConmonPidfile- Returns:
- containerConmonPidfile
-
setContainerConmonPidfile
-
containerName
-
getContainerName
Get containerName- Returns:
- containerName
-
setContainerName
-
cpus
-
getCpus
Get cpus- Returns:
- cpus
-
setCpus
-
cpusetCpus
-
getCpusetCpus
Get cpusetCpus- Returns:
- cpusetCpus
-
setCpusetCpus
-
createCommand
-
addCreateCommandItem
-
getCreateCommand
Get createCommand- Returns:
- createCommand
-
setCreateCommand
-
deviceReadBps
-
addDeviceReadBpsItem
-
getDeviceReadBps
Get deviceReadBps- Returns:
- deviceReadBps
-
setDeviceReadBps
-
devices
-
addDevicesItem
-
getDevices
Get devices- Returns:
- devices
-
setDevices
-
exitPolicy
-
getExitPolicy
Get exitPolicy- Returns:
- exitPolicy
-
setExitPolicy
-
hostname
-
getHostname
Get hostname- Returns:
- hostname
-
setHostname
-
infra
-
getInfra
Get infra- Returns:
- infra
-
setInfra
-
infraImage
-
getInfraImage
Get infraImage- Returns:
- infraImage
-
setInfraImage
-
ipc
-
getIpc
Get ipc- Returns:
- ipc
-
setIpc
-
labels
-
putLabelsItem
-
getLabels
Get labels- Returns:
- labels
-
setLabels
-
name
-
getName
Get name- Returns:
- name
-
setName
-
net
-
getNet
Get net- Returns:
- net
-
setNet
-
pid
-
getPid
Get pid- Returns:
- pid
-
setPid
-
restart
-
getRestart
Get restart- Returns:
- restart
-
setRestart
-
securityOpt
-
addSecurityOptItem
-
getSecurityOpt
Get securityOpt- Returns:
- securityOpt
-
setSecurityOpt
-
sysctl
-
addSysctlItem
-
getSysctl
Get sysctl- Returns:
- sysctl
-
setSysctl
-
uts
-
getUts
Get uts- Returns:
- uts
-
setUts
-
volume
-
addVolumeItem
-
getVolume
Get volume- Returns:
- volume
-
setVolume
-
volumesFrom
-
addVolumesFromItem
-
getVolumesFrom
Get volumesFrom- Returns:
- volumesFrom
-
setVolumesFrom
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of PodCreateOptions to an JSON string- Returns:
- JSON string
-