public class TagLogGroupRequest extends AmazonWebServiceRequest implements java.io.Serializable
Adds or updates the specified tags for the specified log group.
To list the tags for a log group, use ListTagsLogGroup. To remove tags, use UntagLogGroup.
For more information about tags, see Tag Log Groups in Amazon CloudWatch Logs in the Amazon CloudWatch Logs User Guide.
Constructor and Description |
---|
TagLogGroupRequest() |
Modifier and Type | Method and Description |
---|---|
TagLogGroupRequest |
addtagsEntry(java.lang.String key,
java.lang.String value)
The key-value pairs to use for the tags.
|
TagLogGroupRequest |
cleartagsEntries()
Removes all the entries added into tags.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLogGroupName()
The name of the log group.
|
java.util.Map<java.lang.String,java.lang.String> |
getTags()
The key-value pairs to use for the tags.
|
int |
hashCode() |
void |
setLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
void |
setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The key-value pairs to use for the tags.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TagLogGroupRequest |
withLogGroupName(java.lang.String logGroupName)
The name of the log group.
|
TagLogGroupRequest |
withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The key-value pairs to use for the tags.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getLogGroupName()
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
The name of the log group.
public void setLogGroupName(java.lang.String logGroupName)
The name of the log group.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public TagLogGroupRequest withLogGroupName(java.lang.String logGroupName)
The name of the log group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
Pattern: [\.\-_/#A-Za-z0-9]+
logGroupName
- The name of the log group.
public java.util.Map<java.lang.String,java.lang.String> getTags()
The key-value pairs to use for the tags.
The key-value pairs to use for the tags.
public void setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The key-value pairs to use for the tags.
tags
- The key-value pairs to use for the tags.
public TagLogGroupRequest withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The key-value pairs to use for the tags.
Returns a reference to this object so that method calls can be chained together.
tags
- The key-value pairs to use for the tags.
public TagLogGroupRequest addtagsEntry(java.lang.String key, java.lang.String value)
The key-value pairs to use for the tags.
The method adds a new key-value pair into tags parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into tags.value
- The corresponding value of the entry to be added into tags.public TagLogGroupRequest cleartagsEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.