Package org.cdk8s.plus24
Class ExposeServiceViaIngressOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.ExposeServiceViaIngressOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ExposeServiceViaIngressOptions>
- Enclosing interface:
- ExposeServiceViaIngressOptions
@Stability(Stable) public static final class ExposeServiceViaIngressOptions.Builder extends Object implements software.amazon.jsii.Builder<ExposeServiceViaIngressOptions>
A builder forExposeServiceViaIngressOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExposeServiceViaIngressOptions
build()
Builds the configured instance.ExposeServiceViaIngressOptions.Builder
ingress(Ingress ingress)
Sets the value ofExposeServiceViaIngressOptions.getIngress()
ExposeServiceViaIngressOptions.Builder
pathType(HttpIngressPathType pathType)
Sets the value ofExposeServiceViaIngressOptions.getPathType()
-
-
-
Method Detail
-
ingress
@Stability(Stable) public ExposeServiceViaIngressOptions.Builder ingress(Ingress ingress)
Sets the value ofExposeServiceViaIngressOptions.getIngress()
- Parameters:
ingress
- The ingress to add rules to.- Returns:
this
-
pathType
@Stability(Stable) public ExposeServiceViaIngressOptions.Builder pathType(HttpIngressPathType pathType)
Sets the value ofExposeServiceViaIngressOptions.getPathType()
- Parameters:
pathType
- The type of the path.- Returns:
this
-
build
@Stability(Stable) public ExposeServiceViaIngressOptions build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ExposeServiceViaIngressOptions>
- Returns:
- a new instance of
ExposeServiceViaIngressOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-
-