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

  • Constructor Details

    • PublishStatus

      public PublishStatus()
  • 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 PublishStatus
    • fromJson

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

      public PublishStatus nodeID(String nodeID)
    • getNodeID

      @Nullable public String getNodeID()
      NodeID is the ID of the swarm node this Volume is published to.
      Returns:
      nodeID
    • setNodeID

      public void setNodeID(String nodeID)
    • publishContext

      public PublishStatus publishContext(Map<String,String> publishContext)
    • putPublishContextItem

      public PublishStatus putPublishContextItem(String key, String publishContextItem)
    • getPublishContext

      @Nullable public Map<String,String> getPublishContext()
      PublishContext is the PublishContext returned by the CSI plugin when a volume is published.
      Returns:
      publishContext
    • setPublishContext

      public void setPublishContext(Map<String,String> publishContext)
    • state

      public PublishStatus state(String state)
    • getState

      @Nullable public String getState()
      PublishState represents the state of a Volume as it pertains to its use on a particular Node.
      Returns:
      state
    • setState

      public void setState(String state)
    • 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 PublishStatus to an JSON string
      Returns:
      JSON string