Class ClusterVolume
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ClusterVolume
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ClusterVolume
extends Object
implements Serializable
ClusterVolume contains options and information specific to, and only present on, Swarm CSI cluster volumes.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPublishStatusItem(PublishStatus publishStatusItem) createdAt(OffsetDateTime createdAt) booleanstatic ClusterVolumeCreate an instance of ClusterVolume given an JSON string@Valid OffsetDateTimeGet createdAtgetID()ID is the Swarm ID of the volume.@Valid InfogetInfo()Get info@Valid List<PublishStatus>PublishStatus contains the status of the volume as it pertains to its publishing on Nodes.@Valid ClusterVolumeSpecgetSpec()Get spec@Valid OffsetDateTimeGet updatedAt@Valid VersionGet versioninthashCode()publishStatus(List<PublishStatus> publishStatus) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetPublishStatus(List<PublishStatus> publishStatus) voidsetSpec(ClusterVolumeSpec spec) voidsetUpdatedAt(OffsetDateTime updatedAt) voidsetVersion(Version version) spec(ClusterVolumeSpec spec) toJson()Convert an instance of ClusterVolume to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_I_D
- See Also:
-
SERIALIZED_NAME_INFO
- See Also:
-
SERIALIZED_NAME_PUBLISH_STATUS
- See Also:
-
SERIALIZED_NAME_SPEC
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_VERSION
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ClusterVolume
public ClusterVolume()
-
-
Method Details
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
ID
-
getID
ID is the Swarm ID of the volume. Because cluster volumes are Swarm objects, they have an ID, unlike non-cluster volumes, which only have a Name. This ID can be used to refer to the cluster volume.- Returns:
- ID
-
setID
-
info
-
getInfo
Get info- Returns:
- info
-
setInfo
-
publishStatus
-
addPublishStatusItem
-
getPublishStatus
PublishStatus contains the status of the volume as it pertains to its publishing on Nodes.- Returns:
- publishStatus
-
setPublishStatus
-
spec
-
getSpec
Get spec- Returns:
- spec
-
setSpec
-
updatedAt
-
getUpdatedAt
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
-
version
-
getVersion
Get version- Returns:
- version
-
setVersion
-
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 ClusterVolume
-
fromJson
Create an instance of ClusterVolume given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ClusterVolume
- Throws:
IOException- if the JSON string is invalid with respect to ClusterVolume
-
toJson
Convert an instance of ClusterVolume to an JSON string- Returns:
- JSON string
-