@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateWorkspaceRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input of a CreateWorkspace
operation.
NOOP
Constructor and Description |
---|
CreateWorkspaceRequest() |
Modifier and Type | Method and Description |
---|---|
CreateWorkspaceRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateWorkspaceRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateWorkspaceRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getAlias()
An alias that you assign to this workspace to help you identify it.
|
String |
getClientToken()
A unique identifier that you can provide to ensure the idempotency of the request.
|
String |
getKmsKeyArn()
(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace.
|
Map<String,String> |
getTags()
The list of tag keys and values to associate with the workspace.
|
int |
hashCode() |
void |
setAlias(String alias)
An alias that you assign to this workspace to help you identify it.
|
void |
setClientToken(String clientToken)
A unique identifier that you can provide to ensure the idempotency of the request.
|
void |
setKmsKeyArn(String kmsKeyArn)
(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace.
|
void |
setTags(Map<String,String> tags)
The list of tag keys and values to associate with the workspace.
|
String |
toString()
Returns a string representation of this object.
|
CreateWorkspaceRequest |
withAlias(String alias)
An alias that you assign to this workspace to help you identify it.
|
CreateWorkspaceRequest |
withClientToken(String clientToken)
A unique identifier that you can provide to ensure the idempotency of the request.
|
CreateWorkspaceRequest |
withKmsKeyArn(String kmsKeyArn)
(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace.
|
CreateWorkspaceRequest |
withTags(Map<String,String> tags)
The list of tag keys and values to associate with the workspace.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAlias(String alias)
An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
alias
- An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
public String getAlias()
An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
public CreateWorkspaceRequest withAlias(String alias)
An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
alias
- An alias that you assign to this workspace to help you identify it. It does not need to be unique.
Blank spaces at the beginning or end of the alias that you specify will be trimmed from the value used.
public void setClientToken(String clientToken)
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
clientToken
- A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.public String getClientToken()
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
public CreateWorkspaceRequest withClientToken(String clientToken)
A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.
clientToken
- A unique identifier that you can provide to ensure the idempotency of the request. Case-sensitive.public void setKmsKeyArn(String kmsKeyArn)
(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.
kmsKeyArn
- (optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For
more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.public String getKmsKeyArn()
(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.
public CreateWorkspaceRequest withKmsKeyArn(String kmsKeyArn)
(optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.
kmsKeyArn
- (optional) The ARN for a customer managed KMS key to use for encrypting data within your workspace. For
more information about using your own key in your workspace, see Encryption at rest in the Amazon Managed Service for Prometheus User Guide.public Map<String,String> getTags()
The list of tag keys and values to associate with the workspace.
public void setTags(Map<String,String> tags)
The list of tag keys and values to associate with the workspace.
tags
- The list of tag keys and values to associate with the workspace.public CreateWorkspaceRequest withTags(Map<String,String> tags)
The list of tag keys and values to associate with the workspace.
tags
- The list of tag keys and values to associate with the workspace.public CreateWorkspaceRequest addTagsEntry(String key, String value)
public CreateWorkspaceRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateWorkspaceRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()