public class Workspace extends Object implements Serializable, Cloneable
Contains information about a WorkSpace.
Constructor and Description |
---|
Workspace() |
Modifier and Type | Method and Description |
---|---|
Workspace |
clone() |
boolean |
equals(Object obj) |
String |
getBundleId()
The identifier of the bundle that the WorkSpace was created from.
|
String |
getDirectoryId()
The identifier of the AWS Directory Service directory that the
WorkSpace belongs to.
|
String |
getErrorCode()
If the WorkSpace could not be created, this contains the error code.
|
String |
getErrorMessage()
If the WorkSpace could not be created, this contains a textual error
message that describes the failure.
|
String |
getIpAddress()
The IP address of the WorkSpace.
|
String |
getState()
The operational state of the WorkSpace.
|
String |
getSubnetId()
The identifier of the subnet that the WorkSpace is in.
|
String |
getUserName()
The user that the WorkSpace is assigned to.
|
String |
getWorkspaceId()
The identifier of the WorkSpace.
|
int |
hashCode() |
void |
setBundleId(String bundleId)
The identifier of the bundle that the WorkSpace was created from.
|
void |
setDirectoryId(String directoryId)
The identifier of the AWS Directory Service directory that the
WorkSpace belongs to.
|
void |
setErrorCode(String errorCode)
If the WorkSpace could not be created, this contains the error code.
|
void |
setErrorMessage(String errorMessage)
If the WorkSpace could not be created, this contains a textual error
message that describes the failure.
|
void |
setIpAddress(String ipAddress)
The IP address of the WorkSpace.
|
void |
setState(String state)
The operational state of the WorkSpace.
|
void |
setState(WorkspaceState state)
The operational state of the WorkSpace.
|
void |
setSubnetId(String subnetId)
The identifier of the subnet that the WorkSpace is in.
|
void |
setUserName(String userName)
The user that the WorkSpace is assigned to.
|
void |
setWorkspaceId(String workspaceId)
The identifier of the WorkSpace.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Workspace |
withBundleId(String bundleId)
The identifier of the bundle that the WorkSpace was created from.
|
Workspace |
withDirectoryId(String directoryId)
The identifier of the AWS Directory Service directory that the
WorkSpace belongs to.
|
Workspace |
withErrorCode(String errorCode)
If the WorkSpace could not be created, this contains the error code.
|
Workspace |
withErrorMessage(String errorMessage)
If the WorkSpace could not be created, this contains a textual error
message that describes the failure.
|
Workspace |
withIpAddress(String ipAddress)
The IP address of the WorkSpace.
|
Workspace |
withState(String state)
The operational state of the WorkSpace.
|
Workspace |
withState(WorkspaceState state)
The operational state of the WorkSpace.
|
Workspace |
withSubnetId(String subnetId)
The identifier of the subnet that the WorkSpace is in.
|
Workspace |
withUserName(String userName)
The user that the WorkSpace is assigned to.
|
Workspace |
withWorkspaceId(String workspaceId)
The identifier of the WorkSpace.
|
public String getWorkspaceId()
Constraints:
Pattern: ^ws-[0-9a-z]{8,63}$
public void setWorkspaceId(String workspaceId)
Constraints:
Pattern: ^ws-[0-9a-z]{8,63}$
workspaceId
- The identifier of the WorkSpace.public Workspace withWorkspaceId(String workspaceId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^ws-[0-9a-z]{8,63}$
workspaceId
- The identifier of the WorkSpace.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 identifier of the AWS Directory Service directory that the
WorkSpace belongs to.public Workspace 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 identifier of the AWS Directory Service directory that the
WorkSpace belongs to.public String getUserName()
Constraints:
Length: 1 - 63
public void setUserName(String userName)
Constraints:
Length: 1 - 63
userName
- The user that the WorkSpace is assigned to.public Workspace withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 63
userName
- The user that the WorkSpace is assigned to.public String getIpAddress()
public void setIpAddress(String ipAddress)
ipAddress
- The IP address of the WorkSpace.public Workspace withIpAddress(String ipAddress)
Returns a reference to this object so that method calls can be chained together.
ipAddress
- The IP address of the WorkSpace.public String getState()
Constraints:
Allowed Values: PENDING, AVAILABLE, IMPAIRED, UNHEALTHY, REBOOTING, REBUILDING, TERMINATING, TERMINATED, SUSPENDED, ERROR
WorkspaceState
public void setState(String state)
Constraints:
Allowed Values: PENDING, AVAILABLE, IMPAIRED, UNHEALTHY, REBOOTING, REBUILDING, TERMINATING, TERMINATED, SUSPENDED, ERROR
state
- The operational state of the WorkSpace.WorkspaceState
public Workspace withState(String state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PENDING, AVAILABLE, IMPAIRED, UNHEALTHY, REBOOTING, REBUILDING, TERMINATING, TERMINATED, SUSPENDED, ERROR
state
- The operational state of the WorkSpace.WorkspaceState
public void setState(WorkspaceState state)
Constraints:
Allowed Values: PENDING, AVAILABLE, IMPAIRED, UNHEALTHY, REBOOTING, REBUILDING, TERMINATING, TERMINATED, SUSPENDED, ERROR
state
- The operational state of the WorkSpace.WorkspaceState
public Workspace withState(WorkspaceState state)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: PENDING, AVAILABLE, IMPAIRED, UNHEALTHY, REBOOTING, REBUILDING, TERMINATING, TERMINATED, SUSPENDED, ERROR
state
- The operational state of the WorkSpace.WorkspaceState
public String getBundleId()
Constraints:
Pattern: ^wsb-[0-9a-z]{8,63}$
public void setBundleId(String bundleId)
Constraints:
Pattern: ^wsb-[0-9a-z]{8,63}$
bundleId
- The identifier of the bundle that the WorkSpace was created from.public Workspace withBundleId(String bundleId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^wsb-[0-9a-z]{8,63}$
bundleId
- The identifier of the bundle that the WorkSpace was created from.public String getSubnetId()
Constraints:
Pattern: ^(subnet-[0-9a-f]{8})$
public void setSubnetId(String subnetId)
Constraints:
Pattern: ^(subnet-[0-9a-f]{8})$
subnetId
- The identifier of the subnet that the WorkSpace is in.public Workspace withSubnetId(String subnetId)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: ^(subnet-[0-9a-f]{8})$
subnetId
- The identifier of the subnet that the WorkSpace is in.public String getErrorMessage()
public void setErrorMessage(String errorMessage)
errorMessage
- If the WorkSpace could not be created, this contains a textual error
message that describes the failure.public Workspace withErrorMessage(String errorMessage)
Returns a reference to this object so that method calls can be chained together.
errorMessage
- If the WorkSpace could not be created, this contains a textual error
message that describes the failure.public String getErrorCode()
public void setErrorCode(String errorCode)
errorCode
- If the WorkSpace could not be created, this contains the error code.public Workspace withErrorCode(String errorCode)
Returns a reference to this object so that method calls can be chained together.
errorCode
- If the WorkSpace could not be created, this contains the error code.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.