Package io.github.cdklabs.cdknag
Class NagPackSuppression.Builder
- java.lang.Object
-
- io.github.cdklabs.cdknag.NagPackSuppression.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NagPackSuppression>
- Enclosing interface:
- NagPackSuppression
@Stability(Stable) public static final class NagPackSuppression.Builder extends Object implements software.amazon.jsii.Builder<NagPackSuppression>
A builder forNagPackSuppression
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NagPackSuppression.BuilderappliesTo(List<? extends Object> appliesTo)Sets the value ofNagPackSuppression.getAppliesTo()NagPackSuppressionbuild()Builds the configured instance.NagPackSuppression.Builderid(String id)Sets the value ofNagPackSuppression.getId()NagPackSuppression.Builderreason(String reason)Sets the value ofNagPackSuppression.getReason()
-
-
-
Method Detail
-
id
@Stability(Stable) public NagPackSuppression.Builder id(String id)
Sets the value ofNagPackSuppression.getId()- Parameters:
id- The id of the rule to ignore. This parameter is required.- Returns:
this
-
reason
@Stability(Stable) public NagPackSuppression.Builder reason(String reason)
Sets the value ofNagPackSuppression.getReason()- Parameters:
reason- The reason to ignore the rule (minimum 10 characters). This parameter is required.- Returns:
this
-
appliesTo
@Stability(Stable) public NagPackSuppression.Builder appliesTo(List<? extends Object> appliesTo)
Sets the value ofNagPackSuppression.getAppliesTo()- Parameters:
appliesTo- Rule specific granular suppressions.- Returns:
this
-
build
@Stability(Stable) public NagPackSuppression build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NagPackSuppression>- Returns:
- a new instance of
NagPackSuppression - Throws:
NullPointerException- if any required attribute was not provided
-
-