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

  • Constructor Details

    • ClusterVolume

      public ClusterVolume()
  • Method Details

    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      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
    • 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<@Valid PublishStatus> publishStatus)
    • addPublishStatusItem

      public ClusterVolume addPublishStatusItem(PublishStatus publishStatusItem)
    • getPublishStatus

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

      public void setPublishStatus(List<@Valid 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
    • toJson

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