Class InspectHostPort

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class InspectHostPort extends Object implements Serializable
InspectHostPort provides information on a port on the host that a container's port is bound to.
See Also:
  • Field Details

  • Constructor Details

    • InspectHostPort

      public InspectHostPort()
  • Method Details

    • hostIp

      public InspectHostPort hostIp(String hostIp)
    • getHostIp

      @Nullable public String getHostIp()
      IP on the host we are bound to. \"\" if not specified (binding to all IPs).
      Returns:
      hostIp
    • setHostIp

      public void setHostIp(String hostIp)
    • hostPort

      public InspectHostPort hostPort(String hostPort)
    • getHostPort

      @Nullable public String getHostPort()
      Port on the host we are bound to. No special formatting - just an integer stuffed into a string.
      Returns:
      hostPort
    • setHostPort

      public void setHostPort(String hostPort)
    • 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 InspectHostPort
    • fromJson

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

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