Class DirectoryVpcSettings
- java.lang.Object
-
- com.amazonaws.services.directory.model.DirectoryVpcSettings
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DirectoryVpcSettings extends Object implements Serializable, Cloneable
Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DirectoryVpcSettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DirectoryVpcSettingsclone()booleanequals(Object obj)List<String>getSubnetIds()The identifiers of the subnets for the directory servers.StringgetVpcId()The identifier of the VPC in which to create the directory.inthashCode()voidsetSubnetIds(Collection<String> subnetIds)The identifiers of the subnets for the directory servers.voidsetVpcId(String vpcId)The identifier of the VPC in which to create the directory.StringtoString()Returns a string representation of this object; useful for testing and debugging.DirectoryVpcSettingswithSubnetIds(String... subnetIds)The identifiers of the subnets for the directory servers.DirectoryVpcSettingswithSubnetIds(Collection<String> subnetIds)The identifiers of the subnets for the directory servers.DirectoryVpcSettingswithVpcId(String vpcId)The identifier of the VPC in which to create the directory.
-
-
-
Method Detail
-
setVpcId
public void setVpcId(String vpcId)
The identifier of the VPC in which to create the directory.
- Parameters:
vpcId- The identifier of the VPC in which to create the directory.
-
getVpcId
public String getVpcId()
The identifier of the VPC in which to create the directory.
- Returns:
- The identifier of the VPC in which to create the directory.
-
withVpcId
public DirectoryVpcSettings withVpcId(String vpcId)
The identifier of the VPC in which to create the directory.
- Parameters:
vpcId- The identifier of the VPC in which to create the directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSubnetIds
public List<String> getSubnetIds()
The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service creates a directory server and a DNS server in each of these subnets.
- Returns:
- The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service creates a directory server and a DNS server in each of these subnets.
-
setSubnetIds
public void setSubnetIds(Collection<String> subnetIds)
The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service creates a directory server and a DNS server in each of these subnets.
- Parameters:
subnetIds- The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service creates a directory server and a DNS server in each of these subnets.
-
withSubnetIds
public DirectoryVpcSettings withSubnetIds(String... subnetIds)
The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service creates a directory server and a DNS server in each of these subnets.
NOTE: This method appends the values to the existing list (if any). Use
setSubnetIds(java.util.Collection)orwithSubnetIds(java.util.Collection)if you want to override the existing values.- Parameters:
subnetIds- The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service creates a directory server and a DNS server in each of these subnets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSubnetIds
public DirectoryVpcSettings withSubnetIds(Collection<String> subnetIds)
The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service creates a directory server and a DNS server in each of these subnets.
- Parameters:
subnetIds- The identifiers of the subnets for the directory servers. The two subnets must be in different Availability Zones. AWS Directory Service creates a directory server and a DNS server in each of these subnets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DirectoryVpcSettings clone()
-
-