@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateLogGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateLogGroupRequest()
Default constructor for CreateLogGroupRequest object.
|
CreateLogGroupRequest(String logGroupName)
Constructs a new CreateLogGroupRequest object.
|
| Modifier and Type | Method and Description |
|---|---|
CreateLogGroupRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateLogGroupRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateLogGroupRequest |
clone() |
boolean |
equals(Object obj) |
String |
getKmsKeyId()
The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
|
String |
getLogGroupName()
The name of the log group.
|
Map<String,String> |
getTags()
The key-value pairs to use for the tags.
|
int |
hashCode() |
void |
setKmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
|
void |
setLogGroupName(String logGroupName)
The name of the log group.
|
void |
setTags(Map<String,String> tags)
The key-value pairs to use for the tags.
|
String |
toString()
Returns a string representation of this object.
|
CreateLogGroupRequest |
withKmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the CMK to use when encrypting log data.
|
CreateLogGroupRequest |
withLogGroupName(String logGroupName)
The name of the log group.
|
CreateLogGroupRequest |
withTags(Map<String,String> tags)
The key-value pairs to use for the tags.
|
addHandlerContext, copyBaseTo, 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, withSdkRequestTimeoutpublic CreateLogGroupRequest()
public CreateLogGroupRequest(String logGroupName)
logGroupName - The name of the log group.public void setLogGroupName(String logGroupName)
The name of the log group.
logGroupName - The name of the log group.public String getLogGroupName()
The name of the log group.
public CreateLogGroupRequest withLogGroupName(String logGroupName)
The name of the log group.
logGroupName - The name of the log group.public void setKmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. For more information, see Amazon Resource Names - Key Management Service.
kmsKeyId - The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. For more information, see Amazon
Resource Names - Key Management Service.public String getKmsKeyId()
The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. For more information, see Amazon Resource Names - Key Management Service.
public CreateLogGroupRequest withKmsKeyId(String kmsKeyId)
The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. For more information, see Amazon Resource Names - Key Management Service.
kmsKeyId - The Amazon Resource Name (ARN) of the CMK to use when encrypting log data. For more information, see Amazon
Resource Names - Key Management Service.public Map<String,String> getTags()
The key-value pairs to use for the tags.
CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using
the aws:Resource/key-name or aws:TagKeys condition keys. For more information
about using tags to control access, see Controlling access to Amazon Web
Services resources using tags.
CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log
groups using the aws:Resource/key-name or aws:TagKeys condition keys.
For more information about using tags to control access, see Controlling access to Amazon Web
Services resources using tags.
public void setTags(Map<String,String> tags)
The key-value pairs to use for the tags.
CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using
the aws:Resource/key-name or aws:TagKeys condition keys. For more information
about using tags to control access, see Controlling access to Amazon Web
Services resources using tags.
tags - The key-value pairs to use for the tags.
CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log
groups using the aws:Resource/key-name or aws:TagKeys condition keys.
For more information about using tags to control access, see Controlling access to Amazon Web
Services resources using tags.
public CreateLogGroupRequest withTags(Map<String,String> tags)
The key-value pairs to use for the tags.
CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log groups using
the aws:Resource/key-name or aws:TagKeys condition keys. For more information
about using tags to control access, see Controlling access to Amazon Web
Services resources using tags.
tags - The key-value pairs to use for the tags.
CloudWatch Logs doesn’t support IAM policies that prevent users from assigning specified tags to log
groups using the aws:Resource/key-name or aws:TagKeys condition keys.
For more information about using tags to control access, see Controlling access to Amazon Web
Services resources using tags.
public CreateLogGroupRequest addTagsEntry(String key, String value)
public CreateLogGroupRequest clearTagsEntries()
public String toString()
toString in class ObjectObject.toString()public CreateLogGroupRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2022. All rights reserved.