Class InspectHostPort

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class InspectHostPort extends Object
InspectHostPort provides information on a port on the host that a container's port is bound to.
  • 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
    • 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 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