Package org.cdk8s.plus24
Class ServiceIngressBackendOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.ServiceIngressBackendOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceIngressBackendOptions>
- Enclosing interface:
- ServiceIngressBackendOptions
@Stability(Stable) public static final class ServiceIngressBackendOptions.Builder extends Object implements software.amazon.jsii.Builder<ServiceIngressBackendOptions>
A builder forServiceIngressBackendOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceIngressBackendOptions
build()
Builds the configured instance.ServiceIngressBackendOptions.Builder
port(Number port)
Sets the value ofServiceIngressBackendOptions.getPort()
-
-
-
Method Detail
-
port
@Stability(Stable) public ServiceIngressBackendOptions.Builder port(Number port)
Sets the value ofServiceIngressBackendOptions.getPort()
- Parameters:
port
- The port to use to access the service.- This option will fail if the service does not expose any ports.
- If the service exposes multiple ports, this option must be specified.
- If the service exposes a single port, this option is optional and if specified, it must be the same port exposed by the service.
- Returns:
this
-
build
@Stability(Stable) public ServiceIngressBackendOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ServiceIngressBackendOptions>
- Returns:
- a new instance of
ServiceIngressBackendOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-