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:
  • Constructor Details

    • DirectoryVpcSettings

      public DirectoryVpcSettings()
  • Method Details

    • 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) or withSubnetIds(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:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public DirectoryVpcSettings clone()
      Overrides:
      clone in class Object