@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WorkspaceSummary extends Object implements Serializable, Cloneable, StructuredPojo
The information about one Amazon Managed Service for Prometheus workspace in your account.
Constructor and Description |
---|
WorkspaceSummary() |
Modifier and Type | Method and Description |
---|---|
WorkspaceSummary |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
WorkspaceSummary |
clearTagsEntries()
Removes all the entries added into Tags.
|
WorkspaceSummary |
clone() |
boolean |
equals(Object obj) |
String |
getAlias()
The alias that is assigned to this workspace to help identify it.
|
String |
getArn()
The ARN of the workspace.
|
Date |
getCreatedAt()
The date and time that the workspace was created.
|
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 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 workspace.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAlias(String alias)
The alias that is assigned to this workspace to help identify it.
|
void |
setArn(String arn)
The ARN of the workspace.
|
void |
setCreatedAt(Date createdAt)
The date and time that the workspace was created.
|
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 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 workspace.
|
String |
toString()
Returns a string representation of this object.
|
WorkspaceSummary |
withAlias(String alias)
The alias that is assigned to this workspace to help identify it.
|
WorkspaceSummary |
withArn(String arn)
The ARN of the workspace.
|
WorkspaceSummary |
withCreatedAt(Date createdAt)
The date and time that the workspace was created.
|
WorkspaceSummary |
withKmsKeyArn(String kmsKeyArn)
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
|
WorkspaceSummary |
withStatus(WorkspaceStatus status)
The current status of the workspace.
|
WorkspaceSummary |
withTags(Map<String,String> tags)
The list of tag keys and values that are associated with the workspace.
|
WorkspaceSummary |
withWorkspaceId(String workspaceId)
The unique ID for the workspace.
|
public void setAlias(String alias)
The alias that is assigned to this workspace to help identify it. It may not be unique.
alias
- The alias that is assigned to this workspace to help identify it. It may not be unique.public String getAlias()
The alias that is assigned to this workspace to help identify it. It may not be unique.
public WorkspaceSummary withAlias(String alias)
The alias that is assigned to this workspace to help identify it. It may not be unique.
alias
- The alias that is assigned to this workspace to help identify it. It may not be unique.public void setArn(String arn)
The ARN of the workspace.
arn
- The ARN of the workspace.public String getArn()
The ARN of the workspace.
public WorkspaceSummary withArn(String arn)
The ARN of the workspace.
arn
- The ARN of the workspace.public void setCreatedAt(Date createdAt)
The date and time that the workspace was created.
createdAt
- The date and time that the workspace was created.public Date getCreatedAt()
The date and time that the workspace was created.
public WorkspaceSummary withCreatedAt(Date createdAt)
The date and time that the workspace was created.
createdAt
- The date and time that the workspace was created.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 WorkspaceSummary 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 workspace.
status
- The current status of the workspace.public WorkspaceStatus getStatus()
The current status of the workspace.
public WorkspaceSummary withStatus(WorkspaceStatus status)
The current status of the workspace.
status
- The current status of the workspace.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 WorkspaceSummary 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 WorkspaceSummary addTagsEntry(String key, String value)
public WorkspaceSummary clearTagsEntries()
public void setWorkspaceId(String workspaceId)
The unique ID for the workspace.
workspaceId
- The unique ID for the workspace.public String getWorkspaceId()
The unique ID for the workspace.
public WorkspaceSummary withWorkspaceId(String workspaceId)
The unique ID for the workspace.
workspaceId
- The unique ID for the workspace.public String toString()
toString
in class Object
Object.toString()
public WorkspaceSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.