@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateWorkspaceResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents the output of a CreateWorkspace
operation.
Constructor and Description |
---|
CreateWorkspaceResult() |
Modifier and Type | Method and Description |
---|---|
CreateWorkspaceResult |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateWorkspaceResult |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateWorkspaceResult |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The ARN for the new workspace.
|
String |
getKmsKeyArn()
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
|
WorkspaceStatus |
getStatus()
The current status of the new workspace.
|
Map<String,String> |
getTags()
The list of tag keys and values that are associated with the workspace.
|
String |
getWorkspaceId()
The unique ID for the new workspace.
|
int |
hashCode() |
void |
setArn(String arn)
The ARN for the new workspace.
|
void |
setKmsKeyArn(String kmsKeyArn)
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
|
void |
setStatus(WorkspaceStatus status)
The current status of the new workspace.
|
void |
setTags(Map<String,String> tags)
The list of tag keys and values that are associated with the workspace.
|
void |
setWorkspaceId(String workspaceId)
The unique ID for the new workspace.
|
String |
toString()
Returns a string representation of this object.
|
CreateWorkspaceResult |
withArn(String arn)
The ARN for the new workspace.
|
CreateWorkspaceResult |
withKmsKeyArn(String kmsKeyArn)
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
|
CreateWorkspaceResult |
withStatus(WorkspaceStatus status)
The current status of the new workspace.
|
CreateWorkspaceResult |
withTags(Map<String,String> tags)
The list of tag keys and values that are associated with the workspace.
|
CreateWorkspaceResult |
withWorkspaceId(String workspaceId)
The unique ID for the new workspace.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setArn(String arn)
The ARN for the new workspace.
arn
- The ARN for the new workspace.public String getArn()
The ARN for the new workspace.
public CreateWorkspaceResult withArn(String arn)
The ARN for the new workspace.
arn
- The ARN for the new workspace.public void setKmsKeyArn(String kmsKeyArn)
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
kmsKeyArn
- (optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.public String getKmsKeyArn()
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
public CreateWorkspaceResult withKmsKeyArn(String kmsKeyArn)
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
kmsKeyArn
- (optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.public void setStatus(WorkspaceStatus status)
The current status of the new workspace. Immediately after you create the workspace, the status is usually
CREATING
.
status
- The current status of the new workspace. Immediately after you create the workspace, the status is usually
CREATING
.public WorkspaceStatus getStatus()
The current status of the new workspace. Immediately after you create the workspace, the status is usually
CREATING
.
CREATING
.public CreateWorkspaceResult withStatus(WorkspaceStatus status)
The current status of the new workspace. Immediately after you create the workspace, the status is usually
CREATING
.
status
- The current status of the new workspace. Immediately after you create the workspace, the status is usually
CREATING
.public Map<String,String> getTags()
The list of tag keys and values that are associated with the workspace.
public void setTags(Map<String,String> tags)
The list of tag keys and values that are associated with the workspace.
tags
- The list of tag keys and values that are associated with the workspace.public CreateWorkspaceResult withTags(Map<String,String> tags)
The list of tag keys and values that are associated with the workspace.
tags
- The list of tag keys and values that are associated with the workspace.public CreateWorkspaceResult addTagsEntry(String key, String value)
public CreateWorkspaceResult clearTagsEntries()
public void setWorkspaceId(String workspaceId)
The unique ID for the new workspace.
workspaceId
- The unique ID for the new workspace.public String getWorkspaceId()
The unique ID for the new workspace.
public CreateWorkspaceResult withWorkspaceId(String workspaceId)
The unique ID for the new workspace.
workspaceId
- The unique ID for the new workspace.public String toString()
toString
in class Object
Object.toString()
public CreateWorkspaceResult clone()