Class ClusterVolume
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ClusterVolume
@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 ClusterVolume
extends Object
ClusterVolume contains options and information specific to, and only present on, Swarm CSI cluster volumes.
-
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<@Valid 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<@Valid PublishStatus> publishStatus) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidsetPublishStatus(List<@Valid 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 voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
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 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
-
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
-
toJson
Convert an instance of ClusterVolume to an JSON string- Returns:
- JSON string
-