public static interface ManagedRuleDescription.Builder extends SdkPojo, CopyableBuilder<ManagedRuleDescription.Builder,ManagedRuleDescription>
Modifier and Type | Method and Description |
---|---|
ManagedRuleDescription.Builder |
resourceARN(String resourceARN)
If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.
|
default ManagedRuleDescription.Builder |
ruleState(Consumer<ManagedRuleState.Builder> ruleState)
Describes the state of a managed rule.
|
ManagedRuleDescription.Builder |
ruleState(ManagedRuleState ruleState)
Describes the state of a managed rule.
|
ManagedRuleDescription.Builder |
templateName(String templateName)
The template name for the managed rule.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
ManagedRuleDescription.Builder templateName(String templateName)
The template name for the managed rule. Used to enable managed rules using
PutManagedInsightRules
.
templateName
- The template name for the managed rule. Used to enable managed rules using
PutManagedInsightRules
.ManagedRuleDescription.Builder resourceARN(String resourceARN)
If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.
resourceARN
- If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.ManagedRuleDescription.Builder ruleState(ManagedRuleState ruleState)
Describes the state of a managed rule. If present, it contains information about the Contributor Insights rule that contains information about the related Amazon Web Services resource.
ruleState
- Describes the state of a managed rule. If present, it contains information about the Contributor
Insights rule that contains information about the related Amazon Web Services resource.default ManagedRuleDescription.Builder ruleState(Consumer<ManagedRuleState.Builder> ruleState)
Describes the state of a managed rule. If present, it contains information about the Contributor Insights rule that contains information about the related Amazon Web Services resource.
This is a convenience method that creates an instance of theManagedRuleState.Builder
avoiding the
need to create one manually via ManagedRuleState.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to ruleState(ManagedRuleState)
.
ruleState
- a consumer that will call methods on ManagedRuleState.Builder
ruleState(ManagedRuleState)
Copyright © 2022. All rights reserved.