Interface ManagedRuleDescription.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ManagedRuleDescription.Builder,ManagedRuleDescription>
,SdkBuilder<ManagedRuleDescription.Builder,ManagedRuleDescription>
,SdkPojo
- Enclosing class:
- ManagedRuleDescription
public static interface ManagedRuleDescription.Builder extends SdkPojo, CopyableBuilder<ManagedRuleDescription.Builder,ManagedRuleDescription>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method 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.-
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
ManagedRuleDescription.Builder templateName(String templateName)
The template name for the managed rule. Used to enable managed rules using
PutManagedInsightRules
.- Parameters:
templateName
- The template name for the managed rule. Used to enable managed rules usingPutManagedInsightRules
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceARN
ManagedRuleDescription.Builder resourceARN(String resourceARN)
If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.
- Parameters:
resourceARN
- If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleState
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleState
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 viaManagedRuleState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toruleState(ManagedRuleState)
.- Parameters:
ruleState
- a consumer that will call methods onManagedRuleState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ruleState(ManagedRuleState)
-
-