Class V1ServiceBackendPort

java.lang.Object
io.kubernetes.client.openapi.models.V1ServiceBackendPort

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1ServiceBackendPort extends Object
ServiceBackendPort is the service port being referenced.
  • Field Details

  • Constructor Details

    • V1ServiceBackendPort

      public V1ServiceBackendPort()
  • Method Details

    • name

      public V1ServiceBackendPort name(String name)
    • getName

      @Nullable public String getName()
      name is the name of the port on the Service. This is a mutually exclusive setting with \"Number\".
      Returns:
      name
    • setName

      public void setName(String name)
    • number

      public V1ServiceBackendPort number(Integer number)
    • getNumber

      @Nullable public Integer getNumber()
      number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with \"Name\".
      Returns:
      number
    • setNumber

      public void setNumber(Integer number)
    • 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 V1ServiceBackendPort
    • fromJson

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

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