Class PlayKubePod
java.lang.Object
io.github.alersrt.pod4j.openapi.model.PlayKubePod
@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 PlayKubePod
extends Object
PlayKubePod
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContainerErrorsItem(String containerErrorsItem) addContainersItem(String containersItem) addInitContainersItem(String initContainersItem) addLogsItem(String logsItem) containerErrors(List<String> containerErrors) containers(List<String> containers) booleanstatic PlayKubePodCreate an instance of PlayKubePod given an JSON stringContainerErrors - any errors that occurred while starting containers in the pod.Containers - the IDs of the containers running in the created pod.getID()ID - ID of the pod created as a result of play kube.InitContainers - the IDs of the init containers to be run in the created pod.getLogs()Logs - non-fatal errors and log messages while processing.inthashCode()initContainers(List<String> initContainers) voidsetContainerErrors(List<String> containerErrors) voidsetContainers(List<String> containers) voidvoidsetInitContainers(List<String> initContainers) voidtoJson()Convert an instance of PlayKubePod to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONTAINER_ERRORS
- See Also:
-
SERIALIZED_NAME_CONTAINERS
- See Also:
-
SERIALIZED_NAME_I_D
- See Also:
-
SERIALIZED_NAME_INIT_CONTAINERS
- See Also:
-
SERIALIZED_NAME_LOGS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PlayKubePod
public PlayKubePod()
-
-
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 PlayKubePod
-
fromJson
Create an instance of PlayKubePod given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PlayKubePod
- Throws:
IOException- if the JSON string is invalid with respect to PlayKubePod
-
containerErrors
-
addContainerErrorsItem
-
getContainerErrors
ContainerErrors - any errors that occurred while starting containers in the pod.- Returns:
- containerErrors
-
setContainerErrors
-
containers
-
addContainersItem
-
getContainers
Containers - the IDs of the containers running in the created pod.- Returns:
- containers
-
setContainers
-
ID
-
getID
ID - ID of the pod created as a result of play kube.- Returns:
- ID
-
setID
-
initContainers
-
addInitContainersItem
-
getInitContainers
InitContainers - the IDs of the init containers to be run in the created pod.- Returns:
- initContainers
-
setInitContainers
-
logs
-
addLogsItem
-
getLogs
Logs - non-fatal errors and log messages while processing.- Returns:
- logs
-
setLogs
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of PlayKubePod to an JSON string- Returns:
- JSON string
-