Class ContainerNode
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerNode
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ContainerNode
extends Object
implements Serializable
Deprecated: ContainerNode was used for the classic Docker Swarm standalone API. It will be removed in the next release.
- See Also:
-
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 voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object 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
-
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
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object 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
-
toJson
Convert an instance of ContainerNode to an JSON string- Returns:
- JSON string
-