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