Class CfnNetworkSettingsProps.Builder
java.lang.Object
software.amazon.awscdk.services.workspacesweb.CfnNetworkSettingsProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNetworkSettingsProps>
- Enclosing interface:
CfnNetworkSettingsProps
@Stability(Stable)
public static final class CfnNetworkSettingsProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNetworkSettingsProps>
A builder for
CfnNetworkSettingsProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnNetworkSettingsProps.getSecurityGroupIds()
Sets the value ofCfnNetworkSettingsProps.getSubnetIds()
Sets the value ofCfnNetworkSettingsProps.getTags()
Sets the value ofCfnNetworkSettingsProps.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Stable) public CfnNetworkSettingsProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnNetworkSettingsProps.getSecurityGroupIds()
- Parameters:
securityGroupIds
- One or more security groups used to control access from streaming instances to your VPC. This parameter is required. Pattern :^[\w+\-]+$
- Returns:
this
-
subnetIds
Sets the value ofCfnNetworkSettingsProps.getSubnetIds()
- Parameters:
subnetIds
- The subnets in which network interfaces are created to connect streaming instances to your VPC. This parameter is required. At least two of these subnets must be in different availability zones.Pattern :
^subnet-([0-9a-f]{8}|[0-9a-f]{17})$
- Returns:
this
-
vpcId
Sets the value ofCfnNetworkSettingsProps.getVpcId()
- Parameters:
vpcId
- The VPC that streaming instances will connect to. This parameter is required. Pattern :^vpc-[0-9a-z]*$
- Returns:
this
-
tags
Sets the value ofCfnNetworkSettingsProps.getTags()
- Parameters:
tags
- The tags to add to the network settings resource. A tag is a key-value pair.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNetworkSettingsProps>
- Returns:
- a new instance of
CfnNetworkSettingsProps
- Throws:
NullPointerException
- if any required attribute was not provided
-