@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WorkspaceDescription extends Object implements Serializable, Cloneable, StructuredPojo
The full details about one Amazon Managed Service for Prometheus workspace in your account.
Constructor and Description |
---|
WorkspaceDescription() |
Modifier and Type | Method and Description |
---|---|
WorkspaceDescription |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
WorkspaceDescription |
clearTagsEntries()
Removes all the entries added into Tags.
|
WorkspaceDescription |
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.
|
String |
getPrometheusEndpoint()
The Prometheus endpoint available for this workspace.
|
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 |
setPrometheusEndpoint(String prometheusEndpoint)
The Prometheus endpoint available for this workspace.
|
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.
|
WorkspaceDescription |
withAlias(String alias)
The alias that is assigned to this workspace to help identify it.
|
WorkspaceDescription |
withArn(String arn)
The ARN of the workspace.
|
WorkspaceDescription |
withCreatedAt(Date createdAt)
The date and time that the workspace was created.
|
WorkspaceDescription |
withKmsKeyArn(String kmsKeyArn)
(optional) If the workspace was created with a customer managed KMS key, the ARN for the key used.
|
WorkspaceDescription |
withPrometheusEndpoint(String prometheusEndpoint)
The Prometheus endpoint available for this workspace.
|
WorkspaceDescription |
withStatus(WorkspaceStatus status)
The current status of the workspace.
|
WorkspaceDescription |
withTags(Map<String,String> tags)
The list of tag keys and values that are associated with the workspace.
|
WorkspaceDescription |
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 WorkspaceDescription 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 WorkspaceDescription 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 WorkspaceDescription 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 WorkspaceDescription 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 setPrometheusEndpoint(String prometheusEndpoint)
The Prometheus endpoint available for this workspace.
prometheusEndpoint
- The Prometheus endpoint available for this workspace.public String getPrometheusEndpoint()
The Prometheus endpoint available for this workspace.
public WorkspaceDescription withPrometheusEndpoint(String prometheusEndpoint)
The Prometheus endpoint available for this workspace.
prometheusEndpoint
- The Prometheus endpoint available for this workspace.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 WorkspaceDescription 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 WorkspaceDescription 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 WorkspaceDescription addTagsEntry(String key, String value)
public WorkspaceDescription 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 WorkspaceDescription 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 WorkspaceDescription clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.