Class CfnTelemetryRule.ConditionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.observabilityadmin.CfnTelemetryRule.ConditionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTelemetryRule.ConditionProperty>
- Enclosing interface:
CfnTelemetryRule.ConditionProperty
@Stability(Stable)
public static final class CfnTelemetryRule.ConditionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTelemetryRule.ConditionProperty>
A builder for
CfnTelemetryRule.ConditionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionCondition(IResolvable actionCondition) Sets the value ofCfnTelemetryRule.ConditionProperty.getActionCondition()actionCondition(CfnTelemetryRule.ActionConditionProperty actionCondition) Sets the value ofCfnTelemetryRule.ConditionProperty.getActionCondition()build()Builds the configured instance.labelNameCondition(IResolvable labelNameCondition) Sets the value ofCfnTelemetryRule.ConditionProperty.getLabelNameCondition()labelNameCondition(CfnTelemetryRule.LabelNameConditionProperty labelNameCondition) Sets the value ofCfnTelemetryRule.ConditionProperty.getLabelNameCondition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionCondition
@Stability(Stable) public CfnTelemetryRule.ConditionProperty.Builder actionCondition(IResolvable actionCondition) Sets the value ofCfnTelemetryRule.ConditionProperty.getActionCondition()- Parameters:
actionCondition- Matches log records based on the WAF rule action taken (ALLOW, BLOCK, COUNT, etc.).- Returns:
this
-
actionCondition
@Stability(Stable) public CfnTelemetryRule.ConditionProperty.Builder actionCondition(CfnTelemetryRule.ActionConditionProperty actionCondition) Sets the value ofCfnTelemetryRule.ConditionProperty.getActionCondition()- Parameters:
actionCondition- Matches log records based on the WAF rule action taken (ALLOW, BLOCK, COUNT, etc.).- Returns:
this
-
labelNameCondition
@Stability(Stable) public CfnTelemetryRule.ConditionProperty.Builder labelNameCondition(IResolvable labelNameCondition) Sets the value ofCfnTelemetryRule.ConditionProperty.getLabelNameCondition()- Parameters:
labelNameCondition- Matches log records based on WAF rule labels applied to the request.- Returns:
this
-
labelNameCondition
@Stability(Stable) public CfnTelemetryRule.ConditionProperty.Builder labelNameCondition(CfnTelemetryRule.LabelNameConditionProperty labelNameCondition) Sets the value ofCfnTelemetryRule.ConditionProperty.getLabelNameCondition()- Parameters:
labelNameCondition- Matches log records based on WAF rule labels applied to the request.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTelemetryRule.ConditionProperty>- Returns:
- a new instance of
CfnTelemetryRule.ConditionProperty - Throws:
NullPointerException- if any required attribute was not provided
-