Class CfnCluster.ServiceNodePortRangeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.eks.CfnCluster.ServiceNodePortRangeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCluster.ServiceNodePortRangeProperty>
- Enclosing interface:
CfnCluster.ServiceNodePortRangeProperty
@Stability(Stable)
public static final class CfnCluster.ServiceNodePortRangeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCluster.ServiceNodePortRangeProperty>
A builder for
CfnCluster.ServiceNodePortRangeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnCluster.ServiceNodePortRangeProperty.getMaxPort()Sets the value ofCfnCluster.ServiceNodePortRangeProperty.getMinPort()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxPort
Sets the value ofCfnCluster.ServiceNodePortRangeProperty.getMaxPort()- Parameters:
maxPort- The maximum port number in the range.- Returns:
this
-
minPort
Sets the value ofCfnCluster.ServiceNodePortRangeProperty.getMinPort()- Parameters:
minPort- The minimum port number in the range.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCluster.ServiceNodePortRangeProperty>- Returns:
- a new instance of
CfnCluster.ServiceNodePortRangeProperty - Throws:
NullPointerException- if any required attribute was not provided
-