Package org.cdk8s.plus24.k8s
Class KubeEndpointSliceV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeEndpointSliceV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeEndpointSliceV1Beta1>
- Enclosing class:
- KubeEndpointSliceV1Beta1
@Stability(Stable) public static final class KubeEndpointSliceV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<KubeEndpointSliceV1Beta1>
A fluent builder forKubeEndpointSliceV1Beta1
.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeEndpointSliceV1Beta1.Builder
addressType(String addressType)
addressType specifies the type of address carried by this EndpointSlice.KubeEndpointSliceV1Beta1
build()
static KubeEndpointSliceV1Beta1.Builder
create(software.constructs.Construct scope, String id)
KubeEndpointSliceV1Beta1.Builder
endpoints(List<? extends EndpointV1Beta1> endpoints)
endpoints is a list of unique endpoints in this slice.KubeEndpointSliceV1Beta1.Builder
metadata(ObjectMeta metadata)
Standard object's metadata.KubeEndpointSliceV1Beta1.Builder
ports(List<? extends EndpointPortV1Beta1> ports)
ports specifies the list of network ports exposed by each endpoint in this slice.
-
-
-
Method Detail
-
create
@Stability(Stable) public static KubeEndpointSliceV1Beta1.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
KubeEndpointSliceV1Beta1.Builder
.
-
addressType
@Stability(Stable) public KubeEndpointSliceV1Beta1.Builder addressType(String addressType)
addressType specifies the type of address carried by this EndpointSlice.All addresses in this slice must be the same type. This field is immutable after creation. The following address types are currently supported: * IPv4: Represents an IPv4 Address. * IPv6: Represents an IPv6 Address. * FQDN: Represents a Fully Qualified Domain Name.
- Parameters:
addressType
- addressType specifies the type of address carried by this EndpointSlice. This parameter is required.- Returns:
this
-
endpoints
@Stability(Stable) public KubeEndpointSliceV1Beta1.Builder endpoints(List<? extends EndpointV1Beta1> endpoints)
endpoints is a list of unique endpoints in this slice.Each slice may include a maximum of 1000 endpoints.
- Parameters:
endpoints
- endpoints is a list of unique endpoints in this slice. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public KubeEndpointSliceV1Beta1.Builder metadata(ObjectMeta metadata)
Standard object's metadata.- Parameters:
metadata
- Standard object's metadata. This parameter is required.- Returns:
this
-
ports
@Stability(Stable) public KubeEndpointSliceV1Beta1.Builder ports(List<? extends EndpointPortV1Beta1> ports)
ports specifies the list of network ports exposed by each endpoint in this slice.Each port must have a unique name. When ports is empty, it indicates that there are no defined ports. When a port is defined with a nil port value, it indicates "all ports". Each slice may include a maximum of 100 ports.
- Parameters:
ports
- ports specifies the list of network ports exposed by each endpoint in this slice. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public KubeEndpointSliceV1Beta1 build()
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeEndpointSliceV1Beta1>
- Returns:
- a newly built instance of
KubeEndpointSliceV1Beta1
.
-
-