Package org.cdk8s.plus24.k8s
Class KubeEndpointSliceProps.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.KubeEndpointSliceProps.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeEndpointSliceProps>
- Enclosing interface:
- KubeEndpointSliceProps
@Stability(Stable) public static final class KubeEndpointSliceProps.Builder extends Object implements software.amazon.jsii.Builder<KubeEndpointSliceProps>
A builder forKubeEndpointSliceProps
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeEndpointSliceProps.Builder
addressType(String addressType)
Sets the value ofKubeEndpointSliceProps.getAddressType()
KubeEndpointSliceProps
build()
Builds the configured instance.KubeEndpointSliceProps.Builder
endpoints(List<? extends Endpoint> endpoints)
Sets the value ofKubeEndpointSliceProps.getEndpoints()
KubeEndpointSliceProps.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeEndpointSliceProps.getMetadata()
KubeEndpointSliceProps.Builder
ports(List<? extends EndpointPort> ports)
Sets the value ofKubeEndpointSliceProps.getPorts()
-
-
-
Method Detail
-
addressType
@Stability(Stable) public KubeEndpointSliceProps.Builder addressType(String addressType)
Sets the value ofKubeEndpointSliceProps.getAddressType()
- Parameters:
addressType
- addressType specifies the type of address carried by this EndpointSlice. This parameter is required. 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.- Returns:
this
-
endpoints
@Stability(Stable) public KubeEndpointSliceProps.Builder endpoints(List<? extends Endpoint> endpoints)
Sets the value ofKubeEndpointSliceProps.getEndpoints()
- Parameters:
endpoints
- endpoints is a list of unique endpoints in this slice. This parameter is required. Each slice may include a maximum of 1000 endpoints.- Returns:
this
-
metadata
@Stability(Stable) public KubeEndpointSliceProps.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeEndpointSliceProps.getMetadata()
- Parameters:
metadata
- Standard object's metadata.- Returns:
this
-
ports
@Stability(Stable) public KubeEndpointSliceProps.Builder ports(List<? extends EndpointPort> ports)
Sets the value ofKubeEndpointSliceProps.getPorts()
- Parameters:
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.- Returns:
this
-
build
@Stability(Stable) public KubeEndpointSliceProps build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeEndpointSliceProps>
- Returns:
- a new instance of
KubeEndpointSliceProps
- Throws:
NullPointerException
- if any required attribute was not provided
-
-