Interface ManagedRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ManagedRule.Builder,,ManagedRule> SdkBuilder<ManagedRule.Builder,,ManagedRule> SdkPojo
- Enclosing class:
ManagedRule
-
Method Summary
Modifier and TypeMethodDescriptionresourceARN(String resourceARN) The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.tags(Collection<Tag> tags) A list of key-value pairs that you can associate with a managed Contributor Insights rule.tags(Consumer<Tag.Builder>... tags) A list of key-value pairs that you can associate with a managed Contributor Insights rule.A list of key-value pairs that you can associate with a managed Contributor Insights rule.templateName(String templateName) The template name for the managed Contributor Insights rule, as returned byListManagedInsightRules.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
templateName
The template name for the managed Contributor Insights rule, as returned by
ListManagedInsightRules.- Parameters:
templateName- The template name for the managed Contributor Insights rule, as returned byListManagedInsightRules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceARN
The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.
- Parameters:
resourceARN- The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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:TagResourcepermission in addition to thecloudwatch:PutInsightRulepermission. 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, useTagResource.- Parameters:
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 thecloudwatch:TagResourcepermission in addition to thecloudwatch:PutInsightRulepermission. 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, useTagResource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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:TagResourcepermission in addition to thecloudwatch:PutInsightRulepermission. 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, useTagResource.- Parameters:
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 thecloudwatch:TagResourcepermission in addition to thecloudwatch:PutInsightRulepermission. 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, useTagResource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
This is a convenience method that creates an instance of thecloudwatch:TagResourcepermission in addition to thecloudwatch:PutInsightRulepermission. 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, useTagResource.Tag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-