Class ContainerNode
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerNode
@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 ContainerNode
extends Object
Deprecated: ContainerNode was used for the classic Docker Swarm standalone API. It will be removed in the next release.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ContainerNodeCreate an instance of ContainerNode given an JSON stringgetAddr()Get addrgetCpus()Get cpusgetID()Get IDgetIP()Get IPGet labelsGet memorygetName()Get nameinthashCode()putLabelsItem(String key, String labelsItem) voidvoidvoidvoidvoidvoidvoidtoJson()Convert an instance of ContainerNode 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_ADDR
- See Also:
-
SERIALIZED_NAME_CPUS
- See Also:
-
SERIALIZED_NAME_I_D
- See Also:
-
SERIALIZED_NAME_I_P
- See Also:
-
SERIALIZED_NAME_LABELS
- See Also:
-
SERIALIZED_NAME_MEMORY
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ContainerNode
public ContainerNode()
-
-
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 ContainerNode
-
fromJson
Create an instance of ContainerNode given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ContainerNode
- Throws:
IOException- if the JSON string is invalid with respect to ContainerNode
-
addr
-
getAddr
Get addr- Returns:
- addr
-
setAddr
-
cpus
-
getCpus
Get cpus- Returns:
- cpus
-
setCpus
-
ID
-
getID
Get ID- Returns:
- ID
-
setID
-
IP
-
getIP
Get IP- Returns:
- IP
-
setIP
-
labels
-
putLabelsItem
-
getLabels
Get labels- Returns:
- labels
-
setLabels
-
memory
-
getMemory
Get memory- Returns:
- memory
-
setMemory
-
name
-
getName
Get name- Returns:
- name
-
setName
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of ContainerNode to an JSON string- Returns:
- JSON string
-