Package org.cdk8s.plus20
Class ServiceIngressV1BetaBackendOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus20.ServiceIngressV1BetaBackendOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceIngressV1BetaBackendOptions>
- Enclosing interface:
- ServiceIngressV1BetaBackendOptions
@Stability(Stable) public static final class ServiceIngressV1BetaBackendOptions.Builder extends Object implements software.amazon.jsii.Builder<ServiceIngressV1BetaBackendOptions>
A builder forServiceIngressV1BetaBackendOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceIngressV1BetaBackendOptionsbuild()Builds the configured instance.ServiceIngressV1BetaBackendOptions.Builderport(Number port)Sets the value ofServiceIngressV1BetaBackendOptions.getPort()
-
-
-
Method Detail
-
port
@Stability(Stable) public ServiceIngressV1BetaBackendOptions.Builder port(Number port)
Sets the value ofServiceIngressV1BetaBackendOptions.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 ServiceIngressV1BetaBackendOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServiceIngressV1BetaBackendOptions>- Returns:
- a new instance of
ServiceIngressV1BetaBackendOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-