Class CfnCluster.KubeApiServerConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnCluster.KubeApiServerConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.KubeApiServerConfigProperty>
- Enclosing interface:
CfnCluster.KubeApiServerConfigProperty
@Stability(Stable)
public static final class CfnCluster.KubeApiServerConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.KubeApiServerConfigProperty>
A builder for
CfnCluster.KubeApiServerConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.KubeApiServerConfigProperty.getEventTtl()serviceNodePortRange(IResolvable serviceNodePortRange) Sets the value ofCfnCluster.KubeApiServerConfigProperty.getServiceNodePortRange()serviceNodePortRange(CfnCluster.ServiceNodePortRangeProperty serviceNodePortRange) Sets the value ofCfnCluster.KubeApiServerConfigProperty.getServiceNodePortRange()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
eventTtl
Sets the value ofCfnCluster.KubeApiServerConfigProperty.getEventTtl()- Parameters:
eventTtl- The duration that Kubernetes events are retained (e.g., 30m, 1h).- Returns:
this
-
serviceNodePortRange
@Stability(Stable) public CfnCluster.KubeApiServerConfigProperty.Builder serviceNodePortRange(IResolvable serviceNodePortRange) Sets the value ofCfnCluster.KubeApiServerConfigProperty.getServiceNodePortRange()- Parameters:
serviceNodePortRange- The port range for Kubernetes NodePort services.- Returns:
this
-
serviceNodePortRange
@Stability(Stable) public CfnCluster.KubeApiServerConfigProperty.Builder serviceNodePortRange(CfnCluster.ServiceNodePortRangeProperty serviceNodePortRange) Sets the value ofCfnCluster.KubeApiServerConfigProperty.getServiceNodePortRange()- Parameters:
serviceNodePortRange- The port range for Kubernetes NodePort services.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.KubeApiServerConfigProperty>- Returns:
- a new instance of
CfnCluster.KubeApiServerConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-