Package org.cdk8s.plus24.k8s
Class IngressServiceBackend.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.IngressServiceBackend.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<IngressServiceBackend>
- Enclosing interface:
- IngressServiceBackend
@Stability(Stable) public static final class IngressServiceBackend.Builder extends Object implements software.amazon.jsii.Builder<IngressServiceBackend>
A builder forIngressServiceBackend
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IngressServiceBackend
build()
Builds the configured instance.IngressServiceBackend.Builder
name(String name)
Sets the value ofIngressServiceBackend.getName()
IngressServiceBackend.Builder
port(ServiceBackendPort port)
Sets the value ofIngressServiceBackend.getPort()
-
-
-
Method Detail
-
name
@Stability(Stable) public IngressServiceBackend.Builder name(String name)
Sets the value ofIngressServiceBackend.getName()
- Parameters:
name
- Name is the referenced service. This parameter is required. The service must exist in the same namespace as the Ingress object.- Returns:
this
-
port
@Stability(Stable) public IngressServiceBackend.Builder port(ServiceBackendPort port)
Sets the value ofIngressServiceBackend.getPort()
- Parameters:
port
- Port of the referenced service. A port name or port number is required for a IngressServiceBackend.- Returns:
this
-
build
@Stability(Stable) public IngressServiceBackend build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<IngressServiceBackend>
- Returns:
- a new instance of
IngressServiceBackend
- Throws:
NullPointerException
- if any required attribute was not provided
-
-