Package org.cdk8s.plus23.k8s
Class ServiceBackendPort.Builder
- java.lang.Object
-
- org.cdk8s.plus23.k8s.ServiceBackendPort.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceBackendPort>
- Enclosing interface:
- ServiceBackendPort
@Stability(Stable) public static final class ServiceBackendPort.Builder extends Object implements software.amazon.jsii.Builder<ServiceBackendPort>
A builder forServiceBackendPort
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceBackendPort
build()
Builds the configured instance.ServiceBackendPort.Builder
name(String name)
Sets the value ofServiceBackendPort.getName()
ServiceBackendPort.Builder
number(Number number)
Sets the value ofServiceBackendPort.getNumber()
-
-
-
Method Detail
-
name
@Stability(Stable) public ServiceBackendPort.Builder name(String name)
Sets the value ofServiceBackendPort.getName()
- Parameters:
name
- Name is the name of the port on the Service. This is a mutually exclusive setting with "Number".- Returns:
this
-
number
@Stability(Stable) public ServiceBackendPort.Builder number(Number number)
Sets the value ofServiceBackendPort.getNumber()
- Parameters:
number
- Number is the numerical port number (e.g. 80) on the Service. This is a mutually exclusive setting with "Name".- Returns:
this
-
build
@Stability(Stable) public ServiceBackendPort build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ServiceBackendPort>
- Returns:
- a new instance of
ServiceBackendPort
- Throws:
NullPointerException
- if any required attribute was not provided
-
-