Class PublishStatus
java.lang.Object
io.github.alersrt.pod4j.openapi.model.PublishStatus
@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 PublishStatus
extends Object
PublishStatus represents the status of the volume as published to an individual node
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PublishStatusCreate an instance of PublishStatus given an JSON stringNodeID is the ID of the swarm node this Volume is published to.PublishContext is the PublishContext returned by the CSI plugin when a volume is published.getState()PublishState represents the state of a Volume as it pertains to its use on a particular Node.inthashCode()publishContext(Map<String, String> publishContext) putPublishContextItem(String key, String publishContextItem) voidvoidsetPublishContext(Map<String, String> publishContext) voidtoJson()Convert an instance of PublishStatus 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_NODE_I_D
- See Also:
-
SERIALIZED_NAME_PUBLISH_CONTEXT
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
PublishStatus
public PublishStatus()
-
-
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 PublishStatus
-
fromJson
Create an instance of PublishStatus given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PublishStatus
- Throws:
IOException- if the JSON string is invalid with respect to PublishStatus
-
nodeID
-
getNodeID
NodeID is the ID of the swarm node this Volume is published to.- Returns:
- nodeID
-
setNodeID
-
publishContext
-
putPublishContextItem
-
getPublishContext
PublishContext is the PublishContext returned by the CSI plugin when a volume is published.- Returns:
- publishContext
-
setPublishContext
-
state
-
getState
PublishState represents the state of a Volume as it pertains to its use on a particular Node.- Returns:
- state
-
setState
-
equals
-
hashCode
public int hashCode() -
toString
-
toJson
Convert an instance of PublishStatus to an JSON string- Returns:
- JSON string
-