Package org.cdk8s.plus24.k8s
Class EndpointPortV1Beta1.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.EndpointPortV1Beta1.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<EndpointPortV1Beta1>
- Enclosing interface:
- EndpointPortV1Beta1
@Stability(Stable) public static final class EndpointPortV1Beta1.Builder extends Object implements software.amazon.jsii.Builder<EndpointPortV1Beta1>
A builder forEndpointPortV1Beta1
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndpointPortV1Beta1.BuilderappProtocol(String appProtocol)Sets the value ofEndpointPortV1Beta1.getAppProtocol()EndpointPortV1Beta1build()Builds the configured instance.EndpointPortV1Beta1.Buildername(String name)Sets the value ofEndpointPortV1Beta1.getName()EndpointPortV1Beta1.Builderport(Number port)Sets the value ofEndpointPortV1Beta1.getPort()EndpointPortV1Beta1.Builderprotocol(String protocol)Sets the value ofEndpointPortV1Beta1.getProtocol()
-
-
-
Method Detail
-
appProtocol
@Stability(Stable) public EndpointPortV1Beta1.Builder appProtocol(String appProtocol)
Sets the value ofEndpointPortV1Beta1.getAppProtocol()- Parameters:
appProtocol- The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.- Returns:
this
-
name
@Stability(Stable) public EndpointPortV1Beta1.Builder name(String name)
Sets the value ofEndpointPortV1Beta1.getName()- Parameters:
name- The name of this port. All ports in an EndpointSlice must have a unique name. If the EndpointSlice is dervied from a Kubernetes service, this corresponds to the Service.ports[].name. Name must either be an empty string or pass DNS_LABEL validation: * must be no more than 63 characters long. * must consist of lower case alphanumeric characters or '-'. * must start and end with an alphanumeric character. Default is empty string.- Returns:
this
-
port
@Stability(Stable) public EndpointPortV1Beta1.Builder port(Number port)
Sets the value ofEndpointPortV1Beta1.getPort()- Parameters:
port- The port number of the endpoint. If this is not specified, ports are not restricted and must be interpreted in the context of the specific consumer.- Returns:
this
-
protocol
@Stability(Stable) public EndpointPortV1Beta1.Builder protocol(String protocol)
Sets the value ofEndpointPortV1Beta1.getProtocol()- Parameters:
protocol- The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.- Returns:
this
-
build
@Stability(Stable) public EndpointPortV1Beta1 build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<EndpointPortV1Beta1>- Returns:
- a new instance of
EndpointPortV1Beta1 - Throws:
NullPointerException- if any required attribute was not provided
-
-