Class PluginReportJson.Builder
- java.lang.Object
-
- software.amazon.awscdk.cloudassembly.schema.PluginReportJson.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PluginReportJson>
- Enclosing interface:
- PluginReportJson
@Stability(Stable) public static final class PluginReportJson.Builder extends Object implements software.amazon.jsii.Builder<PluginReportJson>
A builder forPluginReportJson
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PluginReportJsonbuild()Builds the configured instance.PluginReportJson.Builderconclusion(String conclusion)Sets the value ofPluginReportJson.getConclusion()PluginReportJson.Buildermetadata(Map<String,String> metadata)Sets the value ofPluginReportJson.getMetadata()PluginReportJson.BuilderpluginName(String pluginName)Sets the value ofPluginReportJson.getPluginName()PluginReportJson.BuilderpluginVersion(String pluginVersion)Sets the value ofPluginReportJson.getPluginVersion()PluginReportJson.Builderpreamble(String preamble)Sets the value ofPluginReportJson.getPreamble()PluginReportJson.BuildersuppressedViolations(List<? extends SuppressedViolationJson> suppressedViolations)Sets the value ofPluginReportJson.getSuppressedViolations()PluginReportJson.Builderviolations(List<? extends PolicyViolationJson> violations)Sets the value ofPluginReportJson.getViolations()
-
-
-
Method Detail
-
conclusion
@Stability(Stable) public PluginReportJson.Builder conclusion(String conclusion)
Sets the value ofPluginReportJson.getConclusion()- Parameters:
conclusion- Whether the plugin's validation passed or failed. This parameter is required.- Returns:
this
-
pluginName
@Stability(Stable) public PluginReportJson.Builder pluginName(String pluginName)
Sets the value ofPluginReportJson.getPluginName()- Parameters:
pluginName- The name of the plugin that produced this report. This parameter is required.- Returns:
this
-
violations
@Stability(Stable) public PluginReportJson.Builder violations(List<? extends PolicyViolationJson> violations)
Sets the value ofPluginReportJson.getViolations()- Parameters:
violations- Violations found by this plugin. This parameter is required.- Returns:
this
-
metadata
@Stability(Stable) public PluginReportJson.Builder metadata(Map<String,String> metadata)
Sets the value ofPluginReportJson.getMetadata()- Parameters:
metadata- Additional plugin-specific metadata.- Returns:
this
-
pluginVersion
@Stability(Stable) public PluginReportJson.Builder pluginVersion(String pluginVersion)
Sets the value ofPluginReportJson.getPluginVersion()- Parameters:
pluginVersion- Version of the plugin that produced this report.- Returns:
this
-
preamble
@Stability(Stable) public PluginReportJson.Builder preamble(String preamble)
Sets the value ofPluginReportJson.getPreamble()- Parameters:
preamble- Any preamble text that the plugin wants to include in the report that is not a violation itself.- Returns:
this
-
suppressedViolations
@Stability(Stable) public PluginReportJson.Builder suppressedViolations(List<? extends SuppressedViolationJson> suppressedViolations)
Sets the value ofPluginReportJson.getSuppressedViolations()- Parameters:
suppressedViolations- Violations that were suppressed via acknowledgement. These violations matched an acknowledged rule ID and were excluded from the active violations list. They are retained for audit trail and reporting purposes.- Returns:
this
-
build
@Stability(Stable) public PluginReportJson build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PluginReportJson>- Returns:
- a new instance of
PluginReportJson - Throws:
NullPointerException- if any required attribute was not provided
-
-