Package org.cdk8s.plus24
Class ExposeDeploymentViaIngressOptions.Builder
- java.lang.Object
-
- org.cdk8s.plus24.ExposeDeploymentViaIngressOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ExposeDeploymentViaIngressOptions>
- Enclosing interface:
- ExposeDeploymentViaIngressOptions
@Stability(Stable) public static final class ExposeDeploymentViaIngressOptions.Builder extends Object implements software.amazon.jsii.Builder<ExposeDeploymentViaIngressOptions>
A builder forExposeDeploymentViaIngressOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExposeDeploymentViaIngressOptionsbuild()Builds the configured instance.ExposeDeploymentViaIngressOptions.Builderingress(Ingress ingress)Sets the value ofExposeServiceViaIngressOptions.getIngress()ExposeDeploymentViaIngressOptions.Buildername(String name)Sets the value ofDeploymentExposeViaServiceOptions.getName()ExposeDeploymentViaIngressOptions.BuilderpathType(HttpIngressPathType pathType)Sets the value ofExposeServiceViaIngressOptions.getPathType()ExposeDeploymentViaIngressOptions.Builderports(List<? extends ServicePort> ports)Sets the value ofDeploymentExposeViaServiceOptions.getPorts()ExposeDeploymentViaIngressOptions.BuilderserviceType(ServiceType serviceType)Sets the value ofDeploymentExposeViaServiceOptions.getServiceType()
-
-
-
Method Detail
-
name
@Stability(Stable) public ExposeDeploymentViaIngressOptions.Builder name(String name)
Sets the value ofDeploymentExposeViaServiceOptions.getName()- Parameters:
name- The name of the service to expose. If you'd like to expose the deployment multiple times, you must explicitly set a name starting from the second expose call.- Returns:
this
-
ports
@Stability(Stable) public ExposeDeploymentViaIngressOptions.Builder ports(List<? extends ServicePort> ports)
Sets the value ofDeploymentExposeViaServiceOptions.getPorts()- Parameters:
ports- The ports that the service should bind to.- Returns:
this
-
serviceType
@Stability(Stable) public ExposeDeploymentViaIngressOptions.Builder serviceType(ServiceType serviceType)
Sets the value ofDeploymentExposeViaServiceOptions.getServiceType()- Parameters:
serviceType- The type of the exposed service.- Returns:
this
-
ingress
@Stability(Stable) public ExposeDeploymentViaIngressOptions.Builder ingress(Ingress ingress)
Sets the value ofExposeServiceViaIngressOptions.getIngress()- Parameters:
ingress- The ingress to add rules to.- Returns:
this
-
pathType
@Stability(Stable) public ExposeDeploymentViaIngressOptions.Builder pathType(HttpIngressPathType pathType)
Sets the value ofExposeServiceViaIngressOptions.getPathType()- Parameters:
pathType- The type of the path.- Returns:
this
-
build
@Stability(Stable) public ExposeDeploymentViaIngressOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ExposeDeploymentViaIngressOptions>- Returns:
- a new instance of
ExposeDeploymentViaIngressOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-