Package org.cdk8s.plus23.k8s
Class KubeEndpoints.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.KubeEndpoints.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeEndpoints>
- Enclosing class:
- KubeEndpoints
@Stability(Stable) public static final class KubeEndpoints.Builder extends Object implements software.amazon.jsii.Builder<KubeEndpoints>
A fluent builder forKubeEndpoints
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeEndpoints
build()
static KubeEndpoints.Builder
create(software.constructs.Construct scope, String id)
KubeEndpoints.Builder
metadata(ObjectMeta metadata)
Standard object's metadata.KubeEndpoints.Builder
subsets(List<? extends EndpointSubset> subsets)
The set of all endpoints is the union of all subsets.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeEndpoints.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope
- the scope in which to define this object. This parameter is required.id
- a scope-local name for the object. This parameter is required.- Returns:
- a new instance of
KubeEndpoints.Builder
.
-
metadata
@Stability(Stable) public KubeEndpoints.Builder metadata(ObjectMeta metadata)
Standard object's metadata.More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
- Parameters:
metadata
- Standard object's metadata. This parameter is required.- Returns:
this
-
subsets
@Stability(Stable) public KubeEndpoints.Builder subsets(List<? extends EndpointSubset> 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.
- Parameters:
subsets
- The set of all endpoints is the union of all subsets. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeEndpoints build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeEndpoints>
-
-