Class SuppressedViolationJson.Builder
java.lang.Object
software.amazon.awscdk.cloud_assembly_schema.SuppressedViolationJson.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SuppressedViolationJson>
- Enclosing interface:
SuppressedViolationJson
@Stability(Stable)
public static final class SuppressedViolationJson.Builder
extends Object
implements software.amazon.jsii.Builder<SuppressedViolationJson>
A builder for
SuppressedViolationJson-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacknowledgedAt(String acknowledgedAt) Sets the value ofSuppressedViolationJson.getAcknowledgedAt()acknowledgedId(String acknowledgedId) Sets the value ofSuppressedViolationJson.getAcknowledgedId()acknowledgedStackTrace(String acknowledgedStackTrace) Sets the value ofSuppressedViolationJson.getAcknowledgedStackTrace()build()Builds the configured instance.customSeverity(String customSeverity) Sets the value ofPolicyViolationJson.getCustomSeverity()description(String description) Sets the value ofPolicyViolationJson.getDescription()Sets the value ofSuppressedViolationJson.getReason()ruleMetadata(Map<String, String> ruleMetadata) Sets the value ofPolicyViolationJson.getRuleMetadata()Sets the value ofPolicyViolationJson.getRuleName()Sets the value ofPolicyViolationJson.getSeverity()suggestedFix(String suggestedFix) Sets the value ofPolicyViolationJson.getSuggestedFix()violatingConstructs(List<? extends ViolatingConstructJson> violatingConstructs) Sets the value ofPolicyViolationJson.getViolatingConstructs()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acknowledgedId
Sets the value ofSuppressedViolationJson.getAcknowledgedId()- Parameters:
acknowledgedId- The acknowledgement ID that caused this violation to be suppressed. This parameter is required. Format:<plugin-name>::<rule-name>(spaces replaced with hyphens).- Returns:
this
-
acknowledgedAt
Sets the value ofSuppressedViolationJson.getAcknowledgedAt()- Parameters:
acknowledgedAt- The construct path where the acknowledgement was declared.- Returns:
this
-
acknowledgedStackTrace
@Stability(Stable) public SuppressedViolationJson.Builder acknowledgedStackTrace(String acknowledgedStackTrace) Sets the value ofSuppressedViolationJson.getAcknowledgedStackTrace()- Parameters:
acknowledgedStackTrace- Stack trace showing where the acknowledgement was declared. A\n-delimited string of stack frames.- Returns:
this
-
reason
Sets the value ofSuppressedViolationJson.getReason()- Parameters:
reason- The reason given for the acknowledgement, if provided.- Returns:
this
-
description
Sets the value ofPolicyViolationJson.getDescription()- Parameters:
description- A description of the violation. This parameter is required.- Returns:
this
-
ruleName
Sets the value ofPolicyViolationJson.getRuleName()- Parameters:
ruleName- The name of the rule that was violated. This parameter is required.- Returns:
this
-
severity
Sets the value ofPolicyViolationJson.getSeverity()- Parameters:
severity- The severity of the violation. This parameter is required.- Returns:
this
-
violatingConstructs
@Stability(Stable) public SuppressedViolationJson.Builder violatingConstructs(List<? extends ViolatingConstructJson> violatingConstructs) Sets the value ofPolicyViolationJson.getViolatingConstructs()- Parameters:
violatingConstructs- Constructs that violated the rule. This parameter is required.- Returns:
this
-
customSeverity
Sets the value ofPolicyViolationJson.getCustomSeverity()- Parameters:
customSeverity- If the plugin wants to report using a non-standard severity, put it here.- Returns:
this
-
ruleMetadata
@Stability(Stable) public SuppressedViolationJson.Builder ruleMetadata(Map<String, String> ruleMetadata) Sets the value ofPolicyViolationJson.getRuleMetadata()- Parameters:
ruleMetadata- Additional rule-specific metadata.- Returns:
this
-
suggestedFix
Sets the value ofPolicyViolationJson.getSuggestedFix()- Parameters:
suggestedFix- How to fix the violation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SuppressedViolationJson>- Returns:
- a new instance of
SuppressedViolationJson - Throws:
NullPointerException- if any required attribute was not provided
-