Class CfnMicrosoftAD.VpcSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.directoryservice.CfnMicrosoftAD.VpcSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMicrosoftAD.VpcSettingsProperty>
- Enclosing interface:
- CfnMicrosoftAD.VpcSettingsProperty
@Stability(Stable)
public static final class CfnMicrosoftAD.VpcSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMicrosoftAD.VpcSettingsProperty>
A builder for
CfnMicrosoftAD.VpcSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnMicrosoftAD.VpcSettingsProperty.getSubnetIds()Sets the value ofCfnMicrosoftAD.VpcSettingsProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnetIds
@Stability(Stable) public CfnMicrosoftAD.VpcSettingsProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnMicrosoftAD.VpcSettingsProperty.getSubnetIds()- Parameters:
subnetIds- The identifiers of the subnets for the directory servers. This parameter is required. The two subnets must be in different Availability Zones. AWS Directory Service specifies a directory server and a DNS server in each of these subnets.- Returns:
this
-
vpcId
Sets the value ofCfnMicrosoftAD.VpcSettingsProperty.getVpcId()- Parameters:
vpcId- The identifier of the VPC in which to create the directory. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMicrosoftAD.VpcSettingsProperty>- Returns:
- a new instance of
CfnMicrosoftAD.VpcSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-