Package io.github.cdklabs.cdknag
Class NagReportLine.Builder
- java.lang.Object
-
- io.github.cdklabs.cdknag.NagReportLine.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NagReportLine>
- Enclosing interface:
- NagReportLine
@Stability(Stable) public static final class NagReportLine.Builder extends Object implements software.amazon.jsii.Builder<NagReportLine>
A builder forNagReportLine
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NagReportLinebuild()Builds the configured instance.NagReportLine.Buildercompliance(String compliance)Sets the value ofNagReportLine.getCompliance()NagReportLine.BuilderexceptionReason(String exceptionReason)Sets the value ofNagReportLine.getExceptionReason()NagReportLine.BuilderresourceId(String resourceId)Sets the value ofNagReportLine.getResourceId()NagReportLine.BuilderruleId(String ruleId)Sets the value ofNagReportLine.getRuleId()NagReportLine.BuilderruleInfo(String ruleInfo)Sets the value ofNagReportLine.getRuleInfo()NagReportLine.BuilderruleLevel(String ruleLevel)Sets the value ofNagReportLine.getRuleLevel()
-
-
-
Method Detail
-
compliance
@Stability(Stable) public NagReportLine.Builder compliance(String compliance)
Sets the value ofNagReportLine.getCompliance()- Parameters:
compliance- the value to be set. This parameter is required.- Returns:
this
-
exceptionReason
@Stability(Stable) public NagReportLine.Builder exceptionReason(String exceptionReason)
Sets the value ofNagReportLine.getExceptionReason()- Parameters:
exceptionReason- the value to be set. This parameter is required.- Returns:
this
-
resourceId
@Stability(Stable) public NagReportLine.Builder resourceId(String resourceId)
Sets the value ofNagReportLine.getResourceId()- Parameters:
resourceId- the value to be set. This parameter is required.- Returns:
this
-
ruleId
@Stability(Stable) public NagReportLine.Builder ruleId(String ruleId)
Sets the value ofNagReportLine.getRuleId()- Parameters:
ruleId- the value to be set. This parameter is required.- Returns:
this
-
ruleInfo
@Stability(Stable) public NagReportLine.Builder ruleInfo(String ruleInfo)
Sets the value ofNagReportLine.getRuleInfo()- Parameters:
ruleInfo- the value to be set. This parameter is required.- Returns:
this
-
ruleLevel
@Stability(Stable) public NagReportLine.Builder ruleLevel(String ruleLevel)
Sets the value ofNagReportLine.getRuleLevel()- Parameters:
ruleLevel- the value to be set. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public NagReportLine build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NagReportLine>- Returns:
- a new instance of
NagReportLine - Throws:
NullPointerException- if any required attribute was not provided
-
-