Package org.cdk8s.plus23.k8s
Class KubeEndpointSliceV1Beta1Props.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.KubeEndpointSliceV1Beta1Props.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<KubeEndpointSliceV1Beta1Props>
- Enclosing interface:
- KubeEndpointSliceV1Beta1Props
@Stability(Stable) public static final class KubeEndpointSliceV1Beta1Props.Builder extends Object implements software.amazon.jsii.Builder<KubeEndpointSliceV1Beta1Props>
A builder forKubeEndpointSliceV1Beta1Props
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KubeEndpointSliceV1Beta1Props.Builder
addressType(String addressType)
Sets the value ofKubeEndpointSliceV1Beta1Props.getAddressType()
KubeEndpointSliceV1Beta1Props
build()
Builds the configured instance.KubeEndpointSliceV1Beta1Props.Builder
endpoints(List<? extends EndpointV1Beta1> endpoints)
Sets the value ofKubeEndpointSliceV1Beta1Props.getEndpoints()
KubeEndpointSliceV1Beta1Props.Builder
metadata(ObjectMeta metadata)
Sets the value ofKubeEndpointSliceV1Beta1Props.getMetadata()
KubeEndpointSliceV1Beta1Props.Builder
ports(List<? extends EndpointPortV1Beta1> ports)
Sets the value ofKubeEndpointSliceV1Beta1Props.getPorts()
-
-
-
Method Detail
-
addressType
@Stability(Stable) public KubeEndpointSliceV1Beta1Props.Builder addressType(String addressType)
Sets the value ofKubeEndpointSliceV1Beta1Props.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 KubeEndpointSliceV1Beta1Props.Builder endpoints(List<? extends EndpointV1Beta1> endpoints)
Sets the value ofKubeEndpointSliceV1Beta1Props.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 KubeEndpointSliceV1Beta1Props.Builder metadata(ObjectMeta metadata)
Sets the value ofKubeEndpointSliceV1Beta1Props.getMetadata()
- Parameters:
metadata
- Standard object's metadata.- Returns:
this
-
ports
@Stability(Stable) public KubeEndpointSliceV1Beta1Props.Builder ports(List<? extends EndpointPortV1Beta1> ports)
Sets the value ofKubeEndpointSliceV1Beta1Props.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 KubeEndpointSliceV1Beta1Props build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KubeEndpointSliceV1Beta1Props>
- Returns:
- a new instance of
KubeEndpointSliceV1Beta1Props
- Throws:
NullPointerException
- if any required attribute was not provided
-
-