Package org.cdk8s.plus24.k8s
Class KubeEndpointsProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeEndpointsProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeEndpointsProps>
- Enclosing interface:
- KubeEndpointsProps
@Stability(Stable) public static final class KubeEndpointsProps.Builder extends Object implements software.amazon.jsii.Builder<KubeEndpointsProps>
A builder forKubeEndpointsProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeEndpointsProps
build()
Builds the configured instance.KubeEndpointsProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeEndpointsProps.getMetadata()
KubeEndpointsProps.Builder
subsets(List<? extends EndpointSubset> subsets)
Sets the value ofKubeEndpointsProps.getSubsets()
-
-
-
Method Detail
-
metadata
@Stability(Stable) public KubeEndpointsProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeEndpointsProps.getMetadata()
- Parameters:
metadata
- Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata- Returns:
this
-
subsets
@Stability(Stable) public KubeEndpointsProps.Builder subsets(List<? extends EndpointSubset> subsets)
Sets the value ofKubeEndpointsProps.getSubsets()
- Parameters:
subsets
- The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.- Returns:
this
-
build
@Stability(Stable) public KubeEndpointsProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeEndpointsProps>
- Returns:
- a new instance of
KubeEndpointsProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-