Class PluginReportJson.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_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 for
PluginReportJson-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.conclusion(String conclusion) Sets the value ofPluginReportJson.getConclusion()Sets the value ofPluginReportJson.getMetadata()pluginName(String pluginName) Sets the value ofPluginReportJson.getPluginName()pluginVersion(String pluginVersion) Sets the value ofPluginReportJson.getPluginVersion()suppressedViolations(List<? extends SuppressedViolationJson> suppressedViolations) Sets the value ofPluginReportJson.getSuppressedViolations()violations(List<? extends PolicyViolationJson> violations) Sets the value ofPluginReportJson.getViolations()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
conclusion
Sets the value ofPluginReportJson.getConclusion()- Parameters:
conclusion- Whether the plugin's validation passed or failed. This parameter is required.- Returns:
this
-
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
Sets the value ofPluginReportJson.getMetadata()- Parameters:
metadata- Additional plugin-specific metadata.- Returns:
this
-
pluginVersion
Sets the value ofPluginReportJson.getPluginVersion()- Parameters:
pluginVersion- Version of the plugin that produced this report.- 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
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
-