Interface ManagedRule.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ManagedRule.Builder,ManagedRule>
,SdkBuilder<ManagedRule.Builder,ManagedRule>
,SdkPojo
- Enclosing class:
- ManagedRule
public static interface ManagedRule.Builder extends SdkPojo, CopyableBuilder<ManagedRule.Builder,ManagedRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ManagedRule.Builder
resourceARN(String resourceARN)
The ARN of an Amazon Web Services resource that has managed Contributor Insights rules.ManagedRule.Builder
tags(Collection<Tag> tags)
A list of key-value pairs that you can associate with a managed Contributor Insights rule.ManagedRule.Builder
tags(Consumer<Tag.Builder>... tags)
A list of key-value pairs that you can associate with a managed Contributor Insights rule.ManagedRule.Builder
tags(Tag... tags)
A list of key-value pairs that you can associate with a managed Contributor Insights rule.ManagedRule.Builder
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
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
templateName
ManagedRule.Builder templateName(String 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
ManagedRule.Builder resourceARN(String 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
ManagedRule.Builder tags(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 thecloudwatch: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, 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:TagResource
permission in addition to thecloudwatch: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, useTagResource
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ManagedRule.Builder tags(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 thecloudwatch: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, 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:TagResource
permission in addition to thecloudwatch: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, useTagResource
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ManagedRule.Builder tags(Consumer<Tag.Builder>... 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:TagResource
permission in addition to thecloudwatch: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, useTagResource
.Tag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
-