Interface PolicyConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyConfiguration.Builder,,PolicyConfiguration> SdkBuilder<PolicyConfiguration.Builder,,PolicyConfiguration> SdkPojo
- Enclosing class:
PolicyConfiguration
@Mutable
@NotThreadSafe
public static interface PolicyConfiguration.Builder
extends SdkPojo, CopyableBuilder<PolicyConfiguration.Builder,PolicyConfiguration>
-
Method Summary
Modifier and TypeMethodDescriptionremediationEnabled(Boolean remediationEnabled) Specifies whether AWS Network Security Manager automatically remediates noncompliant resources.resourcesCleanUp(Boolean resourcesCleanUp) Specifies whether AWS Network Security Manager automatically removes the resources it created when they are no longer needed.default PolicyConfiguration.BuilderwafConfig(Consumer<WafConfig.Builder> wafConfig) AWS WAF-specific policy settings.AWS WAF-specific policy settings.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
-
remediationEnabled
Specifies whether AWS Network Security Manager automatically remediates noncompliant resources. Default:
false.- Parameters:
remediationEnabled- Specifies whether AWS Network Security Manager automatically remediates noncompliant resources. Default:false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourcesCleanUp
Specifies whether AWS Network Security Manager automatically removes the resources it created when they are no longer needed. Default:
false.- Parameters:
resourcesCleanUp- Specifies whether AWS Network Security Manager automatically removes the resources it created when they are no longer needed. Default:false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wafConfig
AWS WAF-specific policy settings. This is populated only for AWS WAF policies.
- Parameters:
wafConfig- AWS WAF-specific policy settings. This is populated only for AWS WAF policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
wafConfig
AWS WAF-specific policy settings. This is populated only for AWS WAF policies.
This is a convenience method that creates an instance of theWafConfig.Builderavoiding the need to create one manually viaWafConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed towafConfig(WafConfig).- Parameters:
wafConfig- a consumer that will call methods onWafConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-