Class PublishStatus

java.lang.Object
io.github.alersrt.pod4j.openapi.model.PublishStatus
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class PublishStatus extends Object implements Serializable
PublishStatus represents the status of the volume as published to an individual node
See Also:
  • Field Details

  • Constructor Details

    • PublishStatus

      public PublishStatus()
  • Method Details

    • 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
    • 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 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
    • toJson

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