Class DisconnectOptions

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class DisconnectOptions extends Object implements Serializable
DisconnectOptions represents the data to be used to disconnect a container from the network.
See Also:
  • Field Details

  • Constructor Details

    • DisconnectOptions

      public DisconnectOptions()
  • Method Details

    • container

      public DisconnectOptions container(String container)
    • getContainer

      @Nullable public String getContainer()
      Get container
      Returns:
      container
    • setContainer

      public void setContainer(String container)
    • force

      public DisconnectOptions force(Boolean force)
    • getForce

      @Nullable public Boolean getForce()
      Get force
      Returns:
      force
    • setForce

      public void setForce(Boolean force)
    • 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 DisconnectOptions
    • fromJson

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

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