Class CfnTelemetryRule.TelemetryRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.observabilityadmin.CfnTelemetryRule.TelemetryRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTelemetryRule.TelemetryRuleProperty>
- Enclosing interface:
CfnTelemetryRule.TelemetryRuleProperty
@Stability(Stable)
public static final class CfnTelemetryRule.TelemetryRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTelemetryRule.TelemetryRuleProperty>
A builder for
CfnTelemetryRule.TelemetryRuleProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destinationConfiguration
(IResolvable destinationConfiguration) Sets the value ofCfnTelemetryRule.TelemetryRuleProperty.getDestinationConfiguration()
destinationConfiguration
(CfnTelemetryRule.TelemetryDestinationConfigurationProperty destinationConfiguration) Sets the value ofCfnTelemetryRule.TelemetryRuleProperty.getDestinationConfiguration()
resourceType
(String resourceType) Sets the value ofCfnTelemetryRule.TelemetryRuleProperty.getResourceType()
selectionCriteria
(String selectionCriteria) Sets the value ofCfnTelemetryRule.TelemetryRuleProperty.getSelectionCriteria()
telemetryType
(String telemetryType) Sets the value ofCfnTelemetryRule.TelemetryRuleProperty.getTelemetryType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceType
@Stability(Stable) public CfnTelemetryRule.TelemetryRuleProperty.Builder resourceType(String resourceType) Sets the value ofCfnTelemetryRule.TelemetryRuleProperty.getResourceType()
- Parameters:
resourceType
- Resource Type associated with the Telemetry Rule. This parameter is required.- Returns:
this
-
telemetryType
@Stability(Stable) public CfnTelemetryRule.TelemetryRuleProperty.Builder telemetryType(String telemetryType) Sets the value ofCfnTelemetryRule.TelemetryRuleProperty.getTelemetryType()
- Parameters:
telemetryType
- Telemetry Type associated with the Telemetry Rule. This parameter is required.- Returns:
this
-
destinationConfiguration
@Stability(Stable) public CfnTelemetryRule.TelemetryRuleProperty.Builder destinationConfiguration(IResolvable destinationConfiguration) Sets the value ofCfnTelemetryRule.TelemetryRuleProperty.getDestinationConfiguration()
- Parameters:
destinationConfiguration
- The destination configuration for telemetry data.- Returns:
this
-
destinationConfiguration
@Stability(Stable) public CfnTelemetryRule.TelemetryRuleProperty.Builder destinationConfiguration(CfnTelemetryRule.TelemetryDestinationConfigurationProperty destinationConfiguration) Sets the value ofCfnTelemetryRule.TelemetryRuleProperty.getDestinationConfiguration()
- Parameters:
destinationConfiguration
- The destination configuration for telemetry data.- Returns:
this
-
selectionCriteria
@Stability(Stable) public CfnTelemetryRule.TelemetryRuleProperty.Builder selectionCriteria(String selectionCriteria) Sets the value ofCfnTelemetryRule.TelemetryRuleProperty.getSelectionCriteria()
- Parameters:
selectionCriteria
- Selection Criteria on resource level for rule application.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTelemetryRule.TelemetryRuleProperty>
- Returns:
- a new instance of
CfnTelemetryRule.TelemetryRuleProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-