Class VolumeCreate

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

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

  • Constructor Details

    • VolumeCreate

      public VolumeCreate()
  • Method Details

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

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