public class DirectoryVpcSettings extends Object implements Serializable, Cloneable
Contains VPC information for the CreateDirectory or CreateMicrosoftAD operation.
Constructor and Description |
---|
DirectoryVpcSettings() |
Modifier and Type | Method and Description |
---|---|
DirectoryVpcSettings |
clone() |
boolean |
equals(Object obj) |
List<String> |
getSubnetIds()
The identifiers of the subnets for the directory servers.
|
String |
getVpcId()
The identifier of the VPC in which to create the directory.
|
int |
hashCode() |
void |
setSubnetIds(Collection<String> subnetIds)
The identifiers of the subnets for the directory servers.
|
void |
setVpcId(String vpcId)
The identifier of the VPC in which to create the directory.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DirectoryVpcSettings |
withSubnetIds(Collection<String> subnetIds)
The identifiers of the subnets for the directory servers.
|
DirectoryVpcSettings |
withSubnetIds(String... subnetIds)
The identifiers of the subnets for the directory servers.
|
DirectoryVpcSettings |
withVpcId(String vpcId)
The identifier of the VPC in which to create the directory.
|
public void setVpcId(String vpcId)
The identifier of the VPC in which to create the directory.
vpcId
- The identifier of the VPC in which to create the directory.public String getVpcId()
The identifier of the VPC in which to create the directory.
public DirectoryVpcSettings withVpcId(String vpcId)
The identifier of the VPC in which to create the directory.
vpcId
- The identifier of the VPC in which to create the directory.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.
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.
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.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)
or
withSubnetIds(java.util.Collection)
if you want to override the
existing values.
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.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.
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.public String toString()
toString
in class Object
Object.toString()
public DirectoryVpcSettings clone()
Copyright © 2018. All rights reserved.