Class CfnAutomationRule.RelatedFindingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.securityhub.CfnAutomationRule.RelatedFindingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAutomationRule.RelatedFindingProperty>
- Enclosing interface:
CfnAutomationRule.RelatedFindingProperty
@Stability(Stable)
public static final class CfnAutomationRule.RelatedFindingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAutomationRule.RelatedFindingProperty>
A builder for
CfnAutomationRule.RelatedFindingProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnAutomationRule.RelatedFindingProperty.getId()
productArn
(String productArn) Sets the value ofCfnAutomationRule.RelatedFindingProperty.getProductArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Sets the value ofCfnAutomationRule.RelatedFindingProperty.getId()
- Parameters:
id
- The product-generated identifier for a related finding. This parameter is required. Array Members: Minimum number of 1 item. Maximum number of 20 items.- Returns:
this
-
productArn
@Stability(Stable) public CfnAutomationRule.RelatedFindingProperty.Builder productArn(String productArn) Sets the value ofCfnAutomationRule.RelatedFindingProperty.getProductArn()
- Parameters:
productArn
- The Amazon Resource Name (ARN) for the product that generated a related finding. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAutomationRule.RelatedFindingProperty>
- Returns:
- a new instance of
CfnAutomationRule.RelatedFindingProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-