Class V1LoadBalancerIngress

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1LoadBalancerIngress extends Object
LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.
  • Field Details

  • Constructor Details

    • V1LoadBalancerIngress

      public V1LoadBalancerIngress()
  • Method Details

    • hostname

      public V1LoadBalancerIngress hostname(String hostname)
    • getHostname

      @Nullable public String getHostname()
      Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)
      Returns:
      hostname
    • setHostname

      public void setHostname(String hostname)
    • ip

      public V1LoadBalancerIngress ip(String ip)
    • getIp

      @Nullable public String getIp()
      IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)
      Returns:
      ip
    • setIp

      public void setIp(String ip)
    • ports

      public V1LoadBalancerIngress ports(List<V1PortStatus> ports)
    • addPortsItem

      public V1LoadBalancerIngress addPortsItem(V1PortStatus portsItem)
    • getPorts

      @Nullable public List<V1PortStatus> getPorts()
      Ports is a list of records of service ports If used, every port defined in the service should have an entry in it
      Returns:
      ports
    • setPorts

      public void setPorts(List<V1PortStatus> ports)
    • 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 V1LoadBalancerIngress
    • fromJson

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

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