Class VolumeCreate

java.lang.Object
io.github.alersrt.pod4j.openapi.model.VolumeCreate

@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 VolumeCreate extends Object
Details for creating a volume
  • Field Details

  • Constructor Details

    • VolumeCreate

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

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

      public VolumeCreate driver(String driver)
    • getDriver

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

      public void setDriver(String driver)
    • driverOpts

      public VolumeCreate driverOpts(Map<String,String> driverOpts)
    • putDriverOptsItem

      public VolumeCreate putDriverOptsItem(String key, String driverOptsItem)
    • getDriverOpts

      @Nonnull @NotNull public @NotNull Map<String,String> getDriverOpts()
      A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
      Returns:
      driverOpts
    • setDriverOpts

      public void setDriverOpts(Map<String,String> driverOpts)
    • labels

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

      public VolumeCreate 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)
    • name

      public VolumeCreate name(String name)
    • getName

      @Nonnull @NotNull public @NotNull String getName()
      The new volume's name. If not specified, Docker generates a name.
      Returns:
      name
    • setName

      public void setName(String name)
    • 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 VolumeCreate to an JSON string
      Returns:
      JSON string