Class CfnFleet.VpcConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appstream.CfnFleet.VpcConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFleet.VpcConfigProperty>
- Enclosing interface:
- CfnFleet.VpcConfigProperty
@Stability(Stable)
public static final class CfnFleet.VpcConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFleet.VpcConfigProperty>
A builder for
CfnFleet.VpcConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnFleet.VpcConfigProperty.getSecurityGroupIds()Sets the value ofCfnFleet.VpcConfigProperty.getSubnetIds()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityGroupIds
@Stability(Stable) public CfnFleet.VpcConfigProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnFleet.VpcConfigProperty.getSecurityGroupIds()- Parameters:
securityGroupIds- The identifiers of the security groups for the fleet.- Returns:
this
-
subnetIds
Sets the value ofCfnFleet.VpcConfigProperty.getSubnetIds()- Parameters:
subnetIds- The identifiers of the subnets to which a network interface is attached from the fleet instance. Fleet instances can use one or two subnets.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFleet.VpcConfigProperty>- Returns:
- a new instance of
CfnFleet.VpcConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-