public class WorkspaceDirectory extends Object implements Serializable, Cloneable
Contains information about an AWS Directory Service directory for use with Amazon WorkSpaces.
Constructor and Description |
---|
WorkspaceDirectory() |
Modifier and Type | Method and Description |
---|---|
WorkspaceDirectory |
clone() |
boolean |
equals(Object obj) |
String |
getAlias()
The directory alias.
|
String |
getCustomerUserName()
The user name for the service account.
|
String |
getDirectoryId()
The directory identifier.
|
String |
getDirectoryName()
The name of the directory.
|
String |
getDirectoryType()
The directory type.
|
List<String> |
getDnsIpAddresses()
An array of strings that contains the IP addresses of the DNS servers
for the directory.
|
String |
getIamRoleId()
The identifier of the IAM role.
|
String |
getRegistrationCode()
The registration code for the directory.
|
String |
getState()
The state of the directory's registration with Amazon WorkSpaces
|
List<String> |
getSubnetIds()
An array of strings that contains the identifiers of the subnets used
with the directory.
|
DefaultWorkspaceCreationProperties |
getWorkspaceCreationProperties()
A structure that specifies the default creation properties for all
WorkSpaces in the directory.
|
String |
getWorkspaceSecurityGroupId()
The identifier of the security group that is assigned to new
WorkSpaces.
|
int |
hashCode() |
void |
setAlias(String alias)
The directory alias.
|
void |
setCustomerUserName(String customerUserName)
The user name for the service account.
|
void |
setDirectoryId(String directoryId)
The directory identifier.
|
void |
setDirectoryName(String directoryName)
The name of the directory.
|
void |
setDirectoryType(String directoryType)
The directory type.
|
void |
setDirectoryType(WorkspaceDirectoryType directoryType)
The directory type.
|
void |
setDnsIpAddresses(Collection<String> dnsIpAddresses)
An array of strings that contains the IP addresses of the DNS servers
for the directory.
|
void |
setIamRoleId(String iamRoleId)
The identifier of the IAM role.
|
void |
setRegistrationCode(String registrationCode)
The registration code for the directory.
|
void |
setState(String state)
The state of the directory's registration with Amazon WorkSpaces
|
void |
setState(WorkspaceDirectoryState state)
The state of the directory's registration with Amazon WorkSpaces
|
void |
setSubnetIds(Collection<String> subnetIds)
An array of strings that contains the identifiers of the subnets used
with the directory.
|
void |
setWorkspaceCreationProperties(DefaultWorkspaceCreationProperties workspaceCreationProperties)
A structure that specifies the default creation properties for all
WorkSpaces in the directory.
|
void |
setWorkspaceSecurityGroupId(String workspaceSecurityGroupId)
The identifier of the security group that is assigned to new
WorkSpaces.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
WorkspaceDirectory |
withAlias(String alias)
The directory alias.
|
WorkspaceDirectory |
withCustomerUserName(String customerUserName)
The user name for the service account.
|
WorkspaceDirectory |
withDirectoryId(String directoryId)
The directory identifier.
|
WorkspaceDirectory |
withDirectoryName(String directoryName)
The name of the directory.
|
WorkspaceDirectory |
withDirectoryType(String directoryType)
The directory type.
|
WorkspaceDirectory |
withDirectoryType(WorkspaceDirectoryType directoryType)
The directory type.
|
WorkspaceDirectory |
withDnsIpAddresses(Collection<String> dnsIpAddresses)
An array of strings that contains the IP addresses of the DNS servers
for the directory.
|
WorkspaceDirectory |
withDnsIpAddresses(String... dnsIpAddresses)
An array of strings that contains the IP addresses of the DNS servers
for the directory.
|
WorkspaceDirectory |
withIamRoleId(String iamRoleId)
The identifier of the IAM role.
|
WorkspaceDirectory |
withRegistrationCode(String registrationCode)
The registration code for the directory.
|
WorkspaceDirectory |
withState(String state)
The state of the directory's registration with Amazon WorkSpaces
|
WorkspaceDirectory |
withState(WorkspaceDirectoryState state)
The state of the directory's registration with Amazon WorkSpaces
|
WorkspaceDirectory |
withSubnetIds(Collection<String> subnetIds)
An array of strings that contains the identifiers of the subnets used
with the directory.
|
WorkspaceDirectory |
withSubnetIds(String... subnetIds)
An array of strings that contains the identifiers of the subnets used
with the directory.
|
WorkspaceDirectory |
withWorkspaceCreationProperties(DefaultWorkspaceCreationProperties workspaceCreationProperties)
A structure that specifies the default creation properties for all
WorkSpaces in the directory.
|
WorkspaceDirectory |
withWorkspaceSecurityGroupId(String workspaceSecurityGroupId)
The identifier of the security group that is assigned to new
WorkSpaces.
|
public String getDirectoryId()
Constraints:
Pattern: ^d-[0-9a-f]{8,63}$
public void setDirectoryId(String directoryId)
Constraints:
Pattern: ^d-[0-9a-f]{8,63}$
directoryId
- The directory identifier.public WorkspaceDirectory withDirectoryId(String directoryId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^d-[0-9a-f]{8,63}$
directoryId
- The directory identifier.public String getAlias()
public void setAlias(String alias)
alias
- The directory alias.public WorkspaceDirectory withAlias(String alias)
Returns a reference to this object so that method calls can be chained together.
alias
- The directory alias.public String getDirectoryName()
public void setDirectoryName(String directoryName)
directoryName
- The name of the directory.public WorkspaceDirectory withDirectoryName(String directoryName)
Returns a reference to this object so that method calls can be chained together.
directoryName
- The name of the directory.public String getRegistrationCode()
Constraints:
Length: 1 - 20
public void setRegistrationCode(String registrationCode)
Constraints:
Length: 1 - 20
registrationCode
- The registration code for the directory. This is the code that users
enter in their Amazon WorkSpaces client application to connect to the
directory.public WorkspaceDirectory withRegistrationCode(String registrationCode)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 20
registrationCode
- The registration code for the directory. This is the code that users
enter in their Amazon WorkSpaces client application to connect to the
directory.public List<String> getSubnetIds()
public void setSubnetIds(Collection<String> subnetIds)
subnetIds
- An array of strings that contains the identifiers of the subnets used
with the directory.public WorkspaceDirectory withSubnetIds(String... subnetIds)
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.
Returns a reference to this object so that method calls can be chained together.
subnetIds
- An array of strings that contains the identifiers of the subnets used
with the directory.public WorkspaceDirectory withSubnetIds(Collection<String> subnetIds)
Returns a reference to this object so that method calls can be chained together.
subnetIds
- An array of strings that contains the identifiers of the subnets used
with the directory.public List<String> getDnsIpAddresses()
public void setDnsIpAddresses(Collection<String> dnsIpAddresses)
dnsIpAddresses
- An array of strings that contains the IP addresses of the DNS servers
for the directory.public WorkspaceDirectory withDnsIpAddresses(String... dnsIpAddresses)
NOTE: This method appends the values to the existing list (if
any). Use setDnsIpAddresses(java.util.Collection)
or withDnsIpAddresses(java.util.Collection)
if you want to override the
existing values.
Returns a reference to this object so that method calls can be chained together.
dnsIpAddresses
- An array of strings that contains the IP addresses of the DNS servers
for the directory.public WorkspaceDirectory withDnsIpAddresses(Collection<String> dnsIpAddresses)
Returns a reference to this object so that method calls can be chained together.
dnsIpAddresses
- An array of strings that contains the IP addresses of the DNS servers
for the directory.public String getCustomerUserName()
Constraints:
Length: 1 - 63
public void setCustomerUserName(String customerUserName)
Constraints:
Length: 1 - 63
customerUserName
- The user name for the service account.public WorkspaceDirectory withCustomerUserName(String customerUserName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 63
customerUserName
- The user name for the service account.public String getIamRoleId()
Constraints:
Pattern: ^arn:aws:[A-Za-z0-9][A-za-z0-9_/.-]{0,62}:[A-za-z0-9_/.-]{0,63}:[A-za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-za-z0-9_/.-]{0,127}$
public void setIamRoleId(String iamRoleId)
Constraints:
Pattern: ^arn:aws:[A-Za-z0-9][A-za-z0-9_/.-]{0,62}:[A-za-z0-9_/.-]{0,63}:[A-za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-za-z0-9_/.-]{0,127}$
iamRoleId
- The identifier of the IAM role. This is the role that allows Amazon
WorkSpaces to make calls to other services, such as Amazon EC2, on
your behalf.public WorkspaceDirectory withIamRoleId(String iamRoleId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^arn:aws:[A-Za-z0-9][A-za-z0-9_/.-]{0,62}:[A-za-z0-9_/.-]{0,63}:[A-za-z0-9_/.-]{0,63}:[A-Za-z0-9][A-za-z0-9_/.-]{0,127}$
iamRoleId
- The identifier of the IAM role. This is the role that allows Amazon
WorkSpaces to make calls to other services, such as Amazon EC2, on
your behalf.public String getDirectoryType()
Constraints:
Allowed Values: SIMPLE_AD, AD_CONNECTOR
WorkspaceDirectoryType
public void setDirectoryType(String directoryType)
Constraints:
Allowed Values: SIMPLE_AD, AD_CONNECTOR
directoryType
- The directory type.WorkspaceDirectoryType
public WorkspaceDirectory withDirectoryType(String directoryType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SIMPLE_AD, AD_CONNECTOR
directoryType
- The directory type.WorkspaceDirectoryType
public void setDirectoryType(WorkspaceDirectoryType directoryType)
Constraints:
Allowed Values: SIMPLE_AD, AD_CONNECTOR
directoryType
- The directory type.WorkspaceDirectoryType
public WorkspaceDirectory withDirectoryType(WorkspaceDirectoryType directoryType)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SIMPLE_AD, AD_CONNECTOR
directoryType
- The directory type.WorkspaceDirectoryType
public String getWorkspaceSecurityGroupId()
Constraints:
Pattern: ^(sg-[0-9a-f]{8})$
public void setWorkspaceSecurityGroupId(String workspaceSecurityGroupId)
Constraints:
Pattern: ^(sg-[0-9a-f]{8})$
workspaceSecurityGroupId
- The identifier of the security group that is assigned to new
WorkSpaces.public WorkspaceDirectory withWorkspaceSecurityGroupId(String workspaceSecurityGroupId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^(sg-[0-9a-f]{8})$
workspaceSecurityGroupId
- The identifier of the security group that is assigned to new
WorkSpaces.public String getState()
Constraints:
Allowed Values: REGISTERING, REGISTERED, DEREGISTERING, DEREGISTERED, ERROR
WorkspaceDirectoryState
public void setState(String state)
Constraints:
Allowed Values: REGISTERING, REGISTERED, DEREGISTERING, DEREGISTERED, ERROR
state
- The state of the directory's registration with Amazon WorkSpacesWorkspaceDirectoryState
public WorkspaceDirectory withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: REGISTERING, REGISTERED, DEREGISTERING, DEREGISTERED, ERROR
state
- The state of the directory's registration with Amazon WorkSpacesWorkspaceDirectoryState
public void setState(WorkspaceDirectoryState state)
Constraints:
Allowed Values: REGISTERING, REGISTERED, DEREGISTERING, DEREGISTERED, ERROR
state
- The state of the directory's registration with Amazon WorkSpacesWorkspaceDirectoryState
public WorkspaceDirectory withState(WorkspaceDirectoryState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: REGISTERING, REGISTERED, DEREGISTERING, DEREGISTERED, ERROR
state
- The state of the directory's registration with Amazon WorkSpacesWorkspaceDirectoryState
public DefaultWorkspaceCreationProperties getWorkspaceCreationProperties()
public void setWorkspaceCreationProperties(DefaultWorkspaceCreationProperties workspaceCreationProperties)
workspaceCreationProperties
- A structure that specifies the default creation properties for all
WorkSpaces in the directory.public WorkspaceDirectory withWorkspaceCreationProperties(DefaultWorkspaceCreationProperties workspaceCreationProperties)
Returns a reference to this object so that method calls can be chained together.
workspaceCreationProperties
- A structure that specifies the default creation properties for all
WorkSpaces in the directory.public String toString()
toString
in class Object
Object.toString()
public WorkspaceDirectory clone()
Copyright © 2015. All rights reserved.