Package org.cdk8s.plus24.k8s
Class EndpointSubset.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.EndpointSubset.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EndpointSubset>
- Enclosing interface:
- EndpointSubset
@Stability(Stable) public static final class EndpointSubset.Builder extends Object implements software.amazon.jsii.Builder<EndpointSubset>
A builder forEndpointSubset
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointSubset.Builder
addresses(List<? extends EndpointAddress> addresses)
Sets the value ofEndpointSubset.getAddresses()
EndpointSubset
build()
Builds the configured instance.EndpointSubset.Builder
notReadyAddresses(List<? extends EndpointAddress> notReadyAddresses)
Sets the value ofEndpointSubset.getNotReadyAddresses()
EndpointSubset.Builder
ports(List<? extends EndpointPort> ports)
Sets the value ofEndpointSubset.getPorts()
-
-
-
Method Detail
-
addresses
@Stability(Stable) public EndpointSubset.Builder addresses(List<? extends EndpointAddress> addresses)
Sets the value ofEndpointSubset.getAddresses()
- Parameters:
addresses
- 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:
this
-
notReadyAddresses
@Stability(Stable) public EndpointSubset.Builder notReadyAddresses(List<? extends EndpointAddress> notReadyAddresses)
Sets the value ofEndpointSubset.getNotReadyAddresses()
- Parameters:
notReadyAddresses
- 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:
this
-
ports
@Stability(Stable) public EndpointSubset.Builder ports(List<? extends EndpointPort> ports)
Sets the value ofEndpointSubset.getPorts()
- Parameters:
ports
- Port numbers available on the related IP addresses.- Returns:
this
-
build
@Stability(Stable) public EndpointSubset build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EndpointSubset>
- Returns:
- a new instance of
EndpointSubset
- Throws:
NullPointerException
- if any required attribute was not provided
-
-