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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddaddressesItem
(V1EndpointAddress addressesItem) Add an item to the addresses property in a chainable fashion.addnotReadyAddressesItem
(V1EndpointAddress notReadyAddressesItem) Add an item to the notReadyAddresses property in a chainable fashion.addportsItem
(CoreV1EndpointPort portsItem) Add an item to the ports property in a chainable fashion.addresses
(List<@Valid V1EndpointAddress> addresses) Set addresses in a chainable fashion.boolean
List<@Valid V1EndpointAddress>
IP addresses which offer the related ports that are marked as ready.List<@Valid V1EndpointAddress>
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.List<@Valid CoreV1EndpointPort>
getPorts()
Port numbers available on the related IP addresses.int
hashCode()
notReadyAddresses
(List<@Valid V1EndpointAddress> notReadyAddresses) Set notReadyAddresses in a chainable fashion.ports
(List<@Valid CoreV1EndpointPort> ports) Set ports in a chainable fashion.void
setAddresses
(List<@Valid V1EndpointAddress> addresses) Set the addresses property valuevoid
setNotReadyAddresses
(List<@Valid V1EndpointAddress> notReadyAddresses) Set the notReadyAddresses property valuevoid
setPorts
(List<@Valid CoreV1EndpointPort> ports) Set the ports property valuetoString()
-
Field Details
-
JSON_PROPERTY_ADDRESSES
- See Also:
-
JSON_PROPERTY_NOT_READY_ADDRESSES
- See Also:
-
JSON_PROPERTY_PORTS
- See Also:
-
-
Constructor Details
-
V1EndpointSubset
public V1EndpointSubset()
-
-
Method Details
-
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
Set the addresses property value- Parameters:
addresses
- property value to set
-
addresses
Set addresses in a chainable fashion.- Returns:
- The same instance of V1EndpointSubset for chaining.
-
addaddressesItem
Add an item to the addresses property in a chainable fashion.- Returns:
- The same instance of V1EndpointSubset for chaining.
-
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
Set the notReadyAddresses property value- Parameters:
notReadyAddresses
- property value to set
-
notReadyAddresses
Set notReadyAddresses in a chainable fashion.- Returns:
- The same instance of V1EndpointSubset for chaining.
-
addnotReadyAddressesItem
Add an item to the notReadyAddresses property in a chainable fashion.- Returns:
- The same instance of V1EndpointSubset for chaining.
-
getPorts
Port numbers available on the related IP addresses.- Returns:
- the ports property value
-
setPorts
Set the ports property value- Parameters:
ports
- property value to set
-
ports
Set ports in a chainable fashion.- Returns:
- The same instance of V1EndpointSubset for chaining.
-
addportsItem
Add an item to the ports property in a chainable fashion.- Returns:
- The same instance of V1EndpointSubset for chaining.
-
equals
-
hashCode
public int hashCode() -
toString
-