Interface ManagedRuleDescription.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ManagedRuleDescription.Builder,,ManagedRuleDescription> SdkBuilder<ManagedRuleDescription.Builder,,ManagedRuleDescription> SdkPojo
- Enclosing class:
ManagedRuleDescription
@Mutable
@NotThreadSafe
public static interface ManagedRuleDescription.Builder
extends SdkPojo, CopyableBuilder<ManagedRuleDescription.Builder,ManagedRuleDescription>
-
Method Summary
Modifier and TypeMethodDescriptionresourceARN(String resourceARN) If a managed rule is enabled, this is the ARN for the related Amazon Web Services resource.default ManagedRuleDescription.BuilderruleState(Consumer<ManagedRuleState.Builder> ruleState) Describes the state of a managed rule.ruleState(ManagedRuleState ruleState) Describes the state of a managed rule.templateName(String templateName) The template name for the managed rule.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 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
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
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
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.Builderavoiding the need to create one manually viaManagedRuleState.builder().When the
Consumercompletes,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:
-