@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ManagedRule extends Object implements Serializable, Cloneable
Contains the information that's required to enable a managed Contributor Insights rule for an Amazon Web Services resource.
Constructor and Description |
---|
ManagedRule() |
Modifier and Type | Method and Description |
---|---|
ManagedRule |
clone() |
boolean |
equals(Object obj) |
String |
getResourceARN()
The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
|
List<Tag> |
getTags()
A list of key-value pairs that you can associate with a managed Contributor Insights rule.
|
String |
getTemplateName()
The template name for the managed Contributor Insights rule, as returned by
ListManagedInsightRules . |
int |
hashCode() |
void |
setResourceARN(String resourceARN)
The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
|
void |
setTags(Collection<Tag> tags)
A list of key-value pairs that you can associate with a managed Contributor Insights rule.
|
void |
setTemplateName(String templateName)
The template name for the managed Contributor Insights rule, as returned by
ListManagedInsightRules . |
String |
toString()
Returns a string representation of this object.
|
ManagedRule |
withResourceARN(String resourceARN)
The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
|
ManagedRule |
withTags(Collection<Tag> tags)
A list of key-value pairs that you can associate with a managed Contributor Insights rule.
|
ManagedRule |
withTags(Tag... tags)
A list of key-value pairs that you can associate with a managed Contributor Insights rule.
|
ManagedRule |
withTemplateName(String templateName)
The template name for the managed Contributor Insights rule, as returned by
ListManagedInsightRules . |
public void setTemplateName(String templateName)
The template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules
.
templateName
- The template name for the managed Contributor Insights rule, as returned by
ListManagedInsightRules
.public String getTemplateName()
The template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules
.
ListManagedInsightRules
.public ManagedRule withTemplateName(String templateName)
The template name for the managed Contributor Insights rule, as returned by ListManagedInsightRules
.
templateName
- The template name for the managed Contributor Insights rule, as returned by
ListManagedInsightRules
.public void setResourceARN(String resourceARN)
The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
resourceARN
- The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.public String getResourceARN()
The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
public ManagedRule withResourceARN(String resourceARN)
The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
resourceARN
- The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.public List<Tag> getTags()
A list of key-value pairs that you can associate with a managed Contributor Insights rule. You can associate as
many as 50 tags with a rule. Tags can help you organize and categorize your resources. You also can use them to
scope user permissions by granting a user permission to access or change only the resources that have certain tag
values. To associate tags with a rule, you must have the cloudwatch:TagResource
permission in
addition to the cloudwatch:PutInsightRule
permission. If you are using this operation to update an
existing Contributor Insights rule, any tags that you specify in this parameter are ignored. To change the tags
of an existing rule, use TagResource
.
cloudwatch:TagResource
permission in addition to the cloudwatch:PutInsightRule
permission. If you are using this operation to update an existing Contributor Insights rule, any tags
that you specify in this parameter are ignored. To change the tags of an existing rule, use
TagResource
.public void setTags(Collection<Tag> tags)
A list of key-value pairs that you can associate with a managed Contributor Insights rule. You can associate as
many as 50 tags with a rule. Tags can help you organize and categorize your resources. You also can use them to
scope user permissions by granting a user permission to access or change only the resources that have certain tag
values. To associate tags with a rule, you must have the cloudwatch:TagResource
permission in
addition to the cloudwatch:PutInsightRule
permission. If you are using this operation to update an
existing Contributor Insights rule, any tags that you specify in this parameter are ignored. To change the tags
of an existing rule, use TagResource
.
tags
- A list of key-value pairs that you can associate with a managed Contributor Insights rule. You can
associate as many as 50 tags with a rule. Tags can help you organize and categorize your resources. You
also can use them to scope user permissions by granting a user permission to access or change only the
resources that have certain tag values. To associate tags with a rule, you must have the
cloudwatch:TagResource
permission in addition to the cloudwatch:PutInsightRule
permission. If you are using this operation to update an existing Contributor Insights rule, any tags that
you specify in this parameter are ignored. To change the tags of an existing rule, use
TagResource
.public ManagedRule withTags(Tag... tags)
A list of key-value pairs that you can associate with a managed Contributor Insights rule. You can associate as
many as 50 tags with a rule. Tags can help you organize and categorize your resources. You also can use them to
scope user permissions by granting a user permission to access or change only the resources that have certain tag
values. To associate tags with a rule, you must have the cloudwatch:TagResource
permission in
addition to the cloudwatch:PutInsightRule
permission. If you are using this operation to update an
existing Contributor Insights rule, any tags that you specify in this parameter are ignored. To change the tags
of an existing rule, use TagResource
.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A list of key-value pairs that you can associate with a managed Contributor Insights rule. You can
associate as many as 50 tags with a rule. Tags can help you organize and categorize your resources. You
also can use them to scope user permissions by granting a user permission to access or change only the
resources that have certain tag values. To associate tags with a rule, you must have the
cloudwatch:TagResource
permission in addition to the cloudwatch:PutInsightRule
permission. If you are using this operation to update an existing Contributor Insights rule, any tags that
you specify in this parameter are ignored. To change the tags of an existing rule, use
TagResource
.public ManagedRule withTags(Collection<Tag> tags)
A list of key-value pairs that you can associate with a managed Contributor Insights rule. You can associate as
many as 50 tags with a rule. Tags can help you organize and categorize your resources. You also can use them to
scope user permissions by granting a user permission to access or change only the resources that have certain tag
values. To associate tags with a rule, you must have the cloudwatch:TagResource
permission in
addition to the cloudwatch:PutInsightRule
permission. If you are using this operation to update an
existing Contributor Insights rule, any tags that you specify in this parameter are ignored. To change the tags
of an existing rule, use TagResource
.
tags
- A list of key-value pairs that you can associate with a managed Contributor Insights rule. You can
associate as many as 50 tags with a rule. Tags can help you organize and categorize your resources. You
also can use them to scope user permissions by granting a user permission to access or change only the
resources that have certain tag values. To associate tags with a rule, you must have the
cloudwatch:TagResource
permission in addition to the cloudwatch:PutInsightRule
permission. If you are using this operation to update an existing Contributor Insights rule, any tags that
you specify in this parameter are ignored. To change the tags of an existing rule, use
TagResource
.public String toString()
toString
in class Object
Object.toString()
public ManagedRule clone()
Copyright © 2024. All rights reserved.