Class CfnIpAccessSettings.IpRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesweb.CfnIpAccessSettings.IpRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnIpAccessSettings.IpRuleProperty>
- Enclosing interface:
CfnIpAccessSettings.IpRuleProperty
@Stability(Stable)
public static final class CfnIpAccessSettings.IpRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnIpAccessSettings.IpRuleProperty>
A builder for
CfnIpAccessSettings.IpRuleProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.description
(String description) Sets the value ofCfnIpAccessSettings.IpRuleProperty.getDescription()
Sets the value ofCfnIpAccessSettings.IpRuleProperty.getIpRange()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ipRange
Sets the value ofCfnIpAccessSettings.IpRuleProperty.getIpRange()
- Parameters:
ipRange
- The IP range of the IP rule. This parameter is required. This can either be a single IP address or a range using CIDR notation.- Returns:
this
-
description
@Stability(Stable) public CfnIpAccessSettings.IpRuleProperty.Builder description(String description) Sets the value ofCfnIpAccessSettings.IpRuleProperty.getDescription()
- Parameters:
description
- The description of the IP rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnIpAccessSettings.IpRuleProperty>
- Returns:
- a new instance of
CfnIpAccessSettings.IpRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-