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:
  • Field Details

  • Constructor Details

    • ClusterVolume

      public ClusterVolume()
  • Method Details

    • createdAt

      public ClusterVolume createdAt(OffsetDateTime createdAt)
    • getCreatedAt

      @Nullable @Valid public @Valid OffsetDateTime getCreatedAt()
      Get createdAt
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(OffsetDateTime createdAt)
    • ID

      public ClusterVolume ID(String ID)
    • getID

      @Nullable public String 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

      public void setID(String ID)
    • info

      public ClusterVolume info(Info info)
    • getInfo

      @Nullable @Valid public @Valid Info getInfo()
      Get info
      Returns:
      info
    • setInfo

      public void setInfo(Info info)
    • publishStatus

      public ClusterVolume publishStatus(List<PublishStatus> publishStatus)
    • addPublishStatusItem

      public ClusterVolume addPublishStatusItem(PublishStatus publishStatusItem)
    • getPublishStatus

      @Nullable @Valid public @Valid List<PublishStatus> getPublishStatus()
      PublishStatus contains the status of the volume as it pertains to its publishing on Nodes.
      Returns:
      publishStatus
    • setPublishStatus

      public void setPublishStatus(List<PublishStatus> publishStatus)
    • spec

      public ClusterVolume spec(ClusterVolumeSpec spec)
    • getSpec

      @Nullable @Valid public @Valid ClusterVolumeSpec getSpec()
      Get spec
      Returns:
      spec
    • setSpec

      public void setSpec(ClusterVolumeSpec spec)
    • updatedAt

      public ClusterVolume updatedAt(OffsetDateTime updatedAt)
    • getUpdatedAt

      @Nullable @Valid public @Valid OffsetDateTime getUpdatedAt()
      Get updatedAt
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(OffsetDateTime updatedAt)
    • version

      public ClusterVolume version(Version version)
    • getVersion

      @Nullable @Valid public @Valid Version getVersion()
      Get version
      Returns:
      version
    • setVersion

      public void setVersion(Version version)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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

      public static ClusterVolume fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of ClusterVolume to an JSON string
      Returns:
      JSON string