Class V1EndpointSubset

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-02-02T17:56:12.287571Z[Etc/UTC]") public class V1EndpointSubset extends Object
EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ]
  • Field Details

  • Constructor Details

    • V1EndpointSubset

      public V1EndpointSubset()
  • Method Details

    • addresses

      public V1EndpointSubset addresses(List<V1EndpointAddress> addresses)
    • addAddressesItem

      public V1EndpointSubset addAddressesItem(V1EndpointAddress addressesItem)
    • getAddresses

      @Nullable public List<V1EndpointAddress> getAddresses()
      IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.
      Returns:
      addresses
    • setAddresses

      public void setAddresses(List<V1EndpointAddress> addresses)
    • notReadyAddresses

      public V1EndpointSubset notReadyAddresses(List<V1EndpointAddress> notReadyAddresses)
    • addNotReadyAddressesItem

      public V1EndpointSubset addNotReadyAddressesItem(V1EndpointAddress notReadyAddressesItem)
    • getNotReadyAddresses

      @Nullable public List<V1EndpointAddress> getNotReadyAddresses()
      IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.
      Returns:
      notReadyAddresses
    • setNotReadyAddresses

      public void setNotReadyAddresses(List<V1EndpointAddress> notReadyAddresses)
    • ports

      public V1EndpointSubset ports(List<CoreV1EndpointPort> ports)
    • addPortsItem

      public V1EndpointSubset addPortsItem(CoreV1EndpointPort portsItem)
    • getPorts

      @Nullable public List<CoreV1EndpointPort> getPorts()
      Port numbers available on the related IP addresses.
      Returns:
      ports
    • setPorts

      public void setPorts(List<CoreV1EndpointPort> 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 V1EndpointSubset
    • fromJson

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

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