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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Volume extends Object implements Serializable
Volume volume
See Also:
  • Field Details

  • Constructor Details

    • Volume

      public Volume()
  • Method Details

    • driver

      public Volume driver(String driver)
    • getDriver

      @Nonnull @NotNull public @NotNull String getDriver()
      Name of the volume driver used by the volume.
      Returns:
      driver
    • setDriver

      public void setDriver(String driver)
    • labels

      public Volume labels(Map<String,String> labels)
    • putLabelsItem

      public Volume putLabelsItem(String key, String labelsItem)
    • getLabels

      @Nonnull @NotNull public @NotNull Map<String,String> getLabels()
      User-defined key/value metadata.
      Returns:
      labels
    • setLabels

      public void setLabels(Map<String,String> labels)
    • mountpoint

      public Volume mountpoint(String mountpoint)
    • getMountpoint

      @Nonnull @NotNull public @NotNull String getMountpoint()
      Mount path of the volume on the host.
      Returns:
      mountpoint
    • setMountpoint

      public void setMountpoint(String mountpoint)
    • name

      public Volume name(String name)
    • getName

      @Nonnull @NotNull public @NotNull String getName()
      Name of the volume.
      Returns:
      name
    • setName

      public void setName(String name)
    • options

      public Volume options(Map<String,String> options)
    • putOptionsItem

      public Volume putOptionsItem(String key, String optionsItem)
    • getOptions

      @Nonnull @NotNull public @NotNull Map<String,String> getOptions()
      The driver specific options used when creating the volume.
      Returns:
      options
    • setOptions

      public void setOptions(Map<String,String> options)
    • scope

      public Volume scope(String scope)
    • getScope

      @Nonnull @NotNull public @NotNull String getScope()
      The level at which the volume exists. Either `global` for cluster-wide, or `local` for machine level.
      Returns:
      scope
    • setScope

      public void setScope(String scope)
    • clusterVolume

      public Volume clusterVolume(ClusterVolume clusterVolume)
    • getClusterVolume

      @Nullable @Valid public @Valid ClusterVolume getClusterVolume()
      Get clusterVolume
      Returns:
      clusterVolume
    • setClusterVolume

      public void setClusterVolume(ClusterVolume clusterVolume)
    • createdAt

      public Volume createdAt(String createdAt)
    • getCreatedAt

      @Nullable public String getCreatedAt()
      Date/Time the volume was created.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(String createdAt)
    • status

      public Volume status(Map<String,Object> status)
    • putStatusItem

      public Volume putStatusItem(String key, Object statusItem)
    • getStatus

      @Nullable public Map<String,Object> getStatus()
      Low-level details about the volume, provided by the volume driver. Details are returned as a map with key/value pairs: `{\"key\":\"value\",\"key2\":\"value2\"}`. The `Status` field is optional, and is omitted if the volume driver does not support this feature.
      Returns:
      status
    • setStatus

      public void setStatus(Map<String,Object> status)
    • usageData

      public Volume usageData(UsageData usageData)
    • getUsageData

      @Nullable @Valid public @Valid UsageData getUsageData()
      Get usageData
      Returns:
      usageData
    • setUsageData

      public void setUsageData(UsageData usageData)
    • 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 Volume
    • fromJson

      public static Volume fromJson(String jsonString) throws IOException
      Create an instance of Volume given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of Volume
      Throws:
      IOException - if the JSON string is invalid with respect to Volume
    • toJson

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