Class V1EndpointSubset

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1EndpointSubset

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") 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

    • getAddresses

      public List<@Valid 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:
      the addresses property value
    • setAddresses

      public void setAddresses(List<@Valid V1EndpointAddress> addresses)
      Set the addresses property value
    • addresses

      public V1EndpointSubset addresses(List<@Valid V1EndpointAddress> addresses)
      Set addresses in a chainable fashion.
      Returns:
      The same instance of V1EndpointSubset for chaining.
    • addaddressesItem

      public V1EndpointSubset addaddressesItem(V1EndpointAddress addressesItem)
      Add an item to the addresses property in a chainable fashion.
      Returns:
      The same instance of V1EndpointSubset for chaining.
    • getNotReadyAddresses

      public List<@Valid 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:
      the notReadyAddresses property value
    • setNotReadyAddresses

      public void setNotReadyAddresses(List<@Valid V1EndpointAddress> notReadyAddresses)
      Set the notReadyAddresses property value
    • notReadyAddresses

      public V1EndpointSubset notReadyAddresses(List<@Valid V1EndpointAddress> notReadyAddresses)
      Set notReadyAddresses in a chainable fashion.
      Returns:
      The same instance of V1EndpointSubset for chaining.
    • addnotReadyAddressesItem

      public V1EndpointSubset addnotReadyAddressesItem(V1EndpointAddress notReadyAddressesItem)
      Add an item to the notReadyAddresses property in a chainable fashion.
      Returns:
      The same instance of V1EndpointSubset for chaining.
    • getPorts

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

      public void setPorts(List<@Valid CoreV1EndpointPort> ports)
      Set the ports property value
    • ports

      public V1EndpointSubset ports(List<@Valid CoreV1EndpointPort> ports)
      Set ports in a chainable fashion.
      Returns:
      The same instance of V1EndpointSubset for chaining.
    • addportsItem

      public V1EndpointSubset addportsItem(CoreV1EndpointPort portsItem)
      Add an item to the ports property in a chainable fashion.
      Returns:
      The same instance of V1EndpointSubset for chaining.
    • 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