Class InsightRuleReference.Builder
java.lang.Object
software.amazon.awscdk.services.cloudwatch.InsightRuleReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InsightRuleReference>
- Enclosing interface:
InsightRuleReference
@Stability(Stable)
public static final class InsightRuleReference.Builder
extends Object
implements software.amazon.jsii.Builder<InsightRuleReference>
A builder for
InsightRuleReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.insightRuleArn
(String insightRuleArn) Sets the value ofInsightRuleReference.getInsightRuleArn()
insightRuleId
(String insightRuleId) Sets the value ofInsightRuleReference.getInsightRuleId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
insightRuleArn
Sets the value ofInsightRuleReference.getInsightRuleArn()
- Parameters:
insightRuleArn
- The ARN of the InsightRule resource. This parameter is required.- Returns:
this
-
insightRuleId
Sets the value ofInsightRuleReference.getInsightRuleId()
- Parameters:
insightRuleId
- The Id of the InsightRule resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<InsightRuleReference>
- Returns:
- a new instance of
InsightRuleReference
- Throws:
NullPointerException
- if any required attribute was not provided
-