Class WorkspaceDirectory
- java.lang.Object
-
- com.amazonaws.services.workspaces.model.WorkspaceDirectory
-
- All Implemented Interfaces:
Serializable,Cloneable
public class WorkspaceDirectory extends Object implements Serializable, Cloneable
Contains information about an AWS Directory Service directory for use with Amazon WorkSpaces.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WorkspaceDirectory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkspaceDirectoryclone()booleanequals(Object obj)StringgetAlias()The directory alias.StringgetCustomerUserName()The user name for the service account.StringgetDirectoryId()The directory identifier.StringgetDirectoryName()The name of the directory.StringgetDirectoryType()The directory type.List<String>getDnsIpAddresses()An array of strings that contains the IP addresses of the DNS servers for the directory.StringgetIamRoleId()The identifier of the IAM role.StringgetRegistrationCode()The registration code for the directory.StringgetState()The state of the directory's registration with Amazon WorkSpacesList<String>getSubnetIds()An array of strings that contains the identifiers of the subnets used with the directory.DefaultWorkspaceCreationPropertiesgetWorkspaceCreationProperties()A structure that specifies the default creation properties for all WorkSpaces in the directory.StringgetWorkspaceSecurityGroupId()The identifier of the security group that is assigned to new WorkSpaces.inthashCode()voidsetAlias(String alias)The directory alias.voidsetCustomerUserName(String customerUserName)The user name for the service account.voidsetDirectoryId(String directoryId)The directory identifier.voidsetDirectoryName(String directoryName)The name of the directory.voidsetDirectoryType(WorkspaceDirectoryType directoryType)The directory type.voidsetDirectoryType(String directoryType)The directory type.voidsetDnsIpAddresses(Collection<String> dnsIpAddresses)An array of strings that contains the IP addresses of the DNS servers for the directory.voidsetIamRoleId(String iamRoleId)The identifier of the IAM role.voidsetRegistrationCode(String registrationCode)The registration code for the directory.voidsetState(WorkspaceDirectoryState state)The state of the directory's registration with Amazon WorkSpacesvoidsetState(String state)The state of the directory's registration with Amazon WorkSpacesvoidsetSubnetIds(Collection<String> subnetIds)An array of strings that contains the identifiers of the subnets used with the directory.voidsetWorkspaceCreationProperties(DefaultWorkspaceCreationProperties workspaceCreationProperties)A structure that specifies the default creation properties for all WorkSpaces in the directory.voidsetWorkspaceSecurityGroupId(String workspaceSecurityGroupId)The identifier of the security group that is assigned to new WorkSpaces.StringtoString()Returns a string representation of this object; useful for testing and debugging.WorkspaceDirectorywithAlias(String alias)The directory alias.WorkspaceDirectorywithCustomerUserName(String customerUserName)The user name for the service account.WorkspaceDirectorywithDirectoryId(String directoryId)The directory identifier.WorkspaceDirectorywithDirectoryName(String directoryName)The name of the directory.WorkspaceDirectorywithDirectoryType(WorkspaceDirectoryType directoryType)The directory type.WorkspaceDirectorywithDirectoryType(String directoryType)The directory type.WorkspaceDirectorywithDnsIpAddresses(String... dnsIpAddresses)An array of strings that contains the IP addresses of the DNS servers for the directory.WorkspaceDirectorywithDnsIpAddresses(Collection<String> dnsIpAddresses)An array of strings that contains the IP addresses of the DNS servers for the directory.WorkspaceDirectorywithIamRoleId(String iamRoleId)The identifier of the IAM role.WorkspaceDirectorywithRegistrationCode(String registrationCode)The registration code for the directory.WorkspaceDirectorywithState(WorkspaceDirectoryState state)The state of the directory's registration with Amazon WorkSpacesWorkspaceDirectorywithState(String state)The state of the directory's registration with Amazon WorkSpacesWorkspaceDirectorywithSubnetIds(String... subnetIds)An array of strings that contains the identifiers of the subnets used with the directory.WorkspaceDirectorywithSubnetIds(Collection<String> subnetIds)An array of strings that contains the identifiers of the subnets used with the directory.WorkspaceDirectorywithWorkspaceCreationProperties(DefaultWorkspaceCreationProperties workspaceCreationProperties)A structure that specifies the default creation properties for all WorkSpaces in the directory.WorkspaceDirectorywithWorkspaceSecurityGroupId(String workspaceSecurityGroupId)The identifier of the security group that is assigned to new WorkSpaces.
-
-
-
Method Detail
-
setDirectoryId
public void setDirectoryId(String directoryId)
The directory identifier.
- Parameters:
directoryId- The directory identifier.
-
getDirectoryId
public String getDirectoryId()
The directory identifier.
- Returns:
- The directory identifier.
-
withDirectoryId
public WorkspaceDirectory withDirectoryId(String directoryId)
The directory identifier.
- Parameters:
directoryId- The directory identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAlias
public void setAlias(String alias)
The directory alias.
- Parameters:
alias- The directory alias.
-
getAlias
public String getAlias()
The directory alias.
- Returns:
- The directory alias.
-
withAlias
public WorkspaceDirectory withAlias(String alias)
The directory alias.
- Parameters:
alias- The directory alias.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDirectoryName
public void setDirectoryName(String directoryName)
The name of the directory.
- Parameters:
directoryName- The name of the directory.
-
getDirectoryName
public String getDirectoryName()
The name of the directory.
- Returns:
- The name of the directory.
-
withDirectoryName
public WorkspaceDirectory withDirectoryName(String directoryName)
The name of the directory.
- Parameters:
directoryName- The name of the directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRegistrationCode
public void setRegistrationCode(String 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.
- Parameters:
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.
-
getRegistrationCode
public String getRegistrationCode()
The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.
- Returns:
- The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.
-
withRegistrationCode
public WorkspaceDirectory withRegistrationCode(String 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getSubnetIds
public List<String> getSubnetIds()
An array of strings that contains the identifiers of the subnets used with the directory.
- Returns:
- An array of strings that contains the identifiers of the subnets used with the directory.
-
setSubnetIds
public void setSubnetIds(Collection<String> subnetIds)
An array of strings that contains the identifiers of the subnets used with the directory.
- Parameters:
subnetIds- An array of strings that contains the identifiers of the subnets used with the directory.
-
withSubnetIds
public WorkspaceDirectory withSubnetIds(String... subnetIds)
An array of strings that contains the identifiers of the subnets used with the directory.
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- An array of strings that contains the identifiers of the subnets used with the directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSubnetIds
public WorkspaceDirectory withSubnetIds(Collection<String> subnetIds)
An array of strings that contains the identifiers of the subnets used with the directory.
- Parameters:
subnetIds- An array of strings that contains the identifiers of the subnets used with the directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getDnsIpAddresses
public List<String> getDnsIpAddresses()
An array of strings that contains the IP addresses of the DNS servers for the directory.
- Returns:
- An array of strings that contains the IP addresses of the DNS servers for the directory.
-
setDnsIpAddresses
public void setDnsIpAddresses(Collection<String> dnsIpAddresses)
An array of strings that contains the IP addresses of the DNS servers for the directory.
- Parameters:
dnsIpAddresses- An array of strings that contains the IP addresses of the DNS servers for the directory.
-
withDnsIpAddresses
public WorkspaceDirectory withDnsIpAddresses(String... dnsIpAddresses)
An array of strings that contains the IP addresses of the DNS servers for the directory.
NOTE: This method appends the values to the existing list (if any). Use
setDnsIpAddresses(java.util.Collection)orwithDnsIpAddresses(java.util.Collection)if you want to override the existing values.- Parameters:
dnsIpAddresses- An array of strings that contains the IP addresses of the DNS servers for the directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withDnsIpAddresses
public WorkspaceDirectory withDnsIpAddresses(Collection<String> dnsIpAddresses)
An array of strings that contains the IP addresses of the DNS servers for the directory.
- Parameters:
dnsIpAddresses- An array of strings that contains the IP addresses of the DNS servers for the directory.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCustomerUserName
public void setCustomerUserName(String customerUserName)
The user name for the service account.
- Parameters:
customerUserName- The user name for the service account.
-
getCustomerUserName
public String getCustomerUserName()
The user name for the service account.
- Returns:
- The user name for the service account.
-
withCustomerUserName
public WorkspaceDirectory withCustomerUserName(String customerUserName)
The user name for the service account.
- Parameters:
customerUserName- The user name for the service account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setIamRoleId
public void setIamRoleId(String 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.
- Parameters:
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.
-
getIamRoleId
public String getIamRoleId()
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.
- Returns:
- 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.
-
withIamRoleId
public WorkspaceDirectory withIamRoleId(String 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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDirectoryType
public void setDirectoryType(String directoryType)
The directory type.
- Parameters:
directoryType- The directory type.- See Also:
WorkspaceDirectoryType
-
getDirectoryType
public String getDirectoryType()
The directory type.
- Returns:
- The directory type.
- See Also:
WorkspaceDirectoryType
-
withDirectoryType
public WorkspaceDirectory withDirectoryType(String directoryType)
The directory type.
- Parameters:
directoryType- The directory type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
WorkspaceDirectoryType
-
setDirectoryType
public void setDirectoryType(WorkspaceDirectoryType directoryType)
The directory type.
- Parameters:
directoryType- The directory type.- See Also:
WorkspaceDirectoryType
-
withDirectoryType
public WorkspaceDirectory withDirectoryType(WorkspaceDirectoryType directoryType)
The directory type.
- Parameters:
directoryType- The directory type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
WorkspaceDirectoryType
-
setWorkspaceSecurityGroupId
public void setWorkspaceSecurityGroupId(String workspaceSecurityGroupId)
The identifier of the security group that is assigned to new WorkSpaces.
- Parameters:
workspaceSecurityGroupId- The identifier of the security group that is assigned to new WorkSpaces.
-
getWorkspaceSecurityGroupId
public String getWorkspaceSecurityGroupId()
The identifier of the security group that is assigned to new WorkSpaces.
- Returns:
- The identifier of the security group that is assigned to new WorkSpaces.
-
withWorkspaceSecurityGroupId
public WorkspaceDirectory withWorkspaceSecurityGroupId(String workspaceSecurityGroupId)
The identifier of the security group that is assigned to new WorkSpaces.
- Parameters:
workspaceSecurityGroupId- The identifier of the security group that is assigned to new WorkSpaces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
public void setState(String state)
The state of the directory's registration with Amazon WorkSpaces
- Parameters:
state- The state of the directory's registration with Amazon WorkSpaces- See Also:
WorkspaceDirectoryState
-
getState
public String getState()
The state of the directory's registration with Amazon WorkSpaces
- Returns:
- The state of the directory's registration with Amazon WorkSpaces
- See Also:
WorkspaceDirectoryState
-
withState
public WorkspaceDirectory withState(String state)
The state of the directory's registration with Amazon WorkSpaces
- Parameters:
state- The state of the directory's registration with Amazon WorkSpaces- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
WorkspaceDirectoryState
-
setState
public void setState(WorkspaceDirectoryState state)
The state of the directory's registration with Amazon WorkSpaces
- Parameters:
state- The state of the directory's registration with Amazon WorkSpaces- See Also:
WorkspaceDirectoryState
-
withState
public WorkspaceDirectory withState(WorkspaceDirectoryState state)
The state of the directory's registration with Amazon WorkSpaces
- Parameters:
state- The state of the directory's registration with Amazon WorkSpaces- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
WorkspaceDirectoryState
-
setWorkspaceCreationProperties
public void setWorkspaceCreationProperties(DefaultWorkspaceCreationProperties workspaceCreationProperties)
A structure that specifies the default creation properties for all WorkSpaces in the directory.
- Parameters:
workspaceCreationProperties- A structure that specifies the default creation properties for all WorkSpaces in the directory.
-
getWorkspaceCreationProperties
public DefaultWorkspaceCreationProperties getWorkspaceCreationProperties()
A structure that specifies the default creation properties for all WorkSpaces in the directory.
- Returns:
- A structure that specifies the default creation properties for all WorkSpaces in the directory.
-
withWorkspaceCreationProperties
public WorkspaceDirectory withWorkspaceCreationProperties(DefaultWorkspaceCreationProperties workspaceCreationProperties)
A structure that specifies the default creation properties for all WorkSpaces in the directory.
- Parameters:
workspaceCreationProperties- A structure that specifies the default creation properties for all WorkSpaces in the directory.- 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 WorkspaceDirectory clone()
-
-