Package software.amazon.awscdk
Class PolicyViolationBeta1.Builder
java.lang.Object
software.amazon.awscdk.PolicyViolationBeta1.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PolicyViolationBeta1>
- Enclosing interface:
PolicyViolationBeta1
@Stability(Stable)
public static final class PolicyViolationBeta1.Builder
extends Object
implements software.amazon.jsii.Builder<PolicyViolationBeta1>
A builder for
PolicyViolationBeta1-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofPolicyViolationBeta1.getDescription()Sets the value ofPolicyViolationBeta1.getFix()ruleMetadata(Map<String, String> ruleMetadata) Sets the value ofPolicyViolationBeta1.getRuleMetadata()Sets the value ofPolicyViolationBeta1.getRuleName()Sets the value ofPolicyViolationBeta1.getSeverity()violatingResources(List<? extends PolicyViolatingResourceBeta1> violatingResources) Sets the value ofPolicyViolationBeta1.getViolatingResources()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofPolicyViolationBeta1.getDescription()- Parameters:
description- The description of the violation. This parameter is required.- Returns:
this
-
ruleName
Sets the value ofPolicyViolationBeta1.getRuleName()- Parameters:
ruleName- The name of the rule. This parameter is required.- Returns:
this
-
violatingResources
@Stability(Stable) public PolicyViolationBeta1.Builder violatingResources(List<? extends PolicyViolatingResourceBeta1> violatingResources) Sets the value ofPolicyViolationBeta1.getViolatingResources()- Parameters:
violatingResources- The resources violating this rule. This parameter is required.- Returns:
this
-
fix
Sets the value ofPolicyViolationBeta1.getFix()- Parameters:
fix- How to fix the violation.- Returns:
this
-
ruleMetadata
@Stability(Stable) public PolicyViolationBeta1.Builder ruleMetadata(Map<String, String> ruleMetadata) Sets the value ofPolicyViolationBeta1.getRuleMetadata()- Parameters:
ruleMetadata- Additional metadata to include with the rule results. This can be used to provide additional information that is plugin specific. The data provided here will be rendered as is.- Returns:
this
-
severity
Sets the value ofPolicyViolationBeta1.getSeverity()- Parameters:
severity- The severity of the violation, only used for reporting purposes. This is useful for helping the user discriminate between warnings, errors, information, etc.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PolicyViolationBeta1>- Returns:
- a new instance of
PolicyViolationBeta1 - Throws:
NullPointerException- if any required attribute was not provided
-