Class CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.ec2.mixins.CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty>
- Enclosing interface:
CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty
@Stability(Stable)
public static final class CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty>
A builder for
CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.getCidr()portRanges(List<? extends Object> portRanges) Sets the value ofCfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.getPortRanges()portRanges(IResolvable portRanges) Sets the value ofCfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.getPortRanges()Sets the value ofCfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.getProtocol()Sets the value ofCfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cidr
@Stability(Stable) public CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.Builder cidr(String cidr) Sets the value ofCfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.getCidr()- Parameters:
cidr- The CIDR.- Returns:
this
-
portRanges
@Stability(Stable) public CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.Builder portRanges(IResolvable portRanges) Sets the value ofCfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.getPortRanges()- Parameters:
portRanges- The port ranges.- Returns:
this
-
portRanges
@Stability(Stable) public CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.Builder portRanges(List<? extends Object> portRanges) Sets the value ofCfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.getPortRanges()- Parameters:
portRanges- The port ranges.- Returns:
this
-
protocol
@Stability(Stable) public CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.Builder protocol(String protocol) Sets the value ofCfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.getProtocol()- Parameters:
protocol- The protocol.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty.getSubnetIds()- Parameters:
subnetIds- The IDs of the subnets.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty>- Returns:
- a new instance of
CfnVerifiedAccessEndpointPropsMixin.CidrOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-