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