Class CfnServiceLevelObjective.MetricSourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationsignals.CfnServiceLevelObjective.MetricSourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceLevelObjective.MetricSourceProperty>
- Enclosing interface:
CfnServiceLevelObjective.MetricSourceProperty
@Stability(Stable)
public static final class CfnServiceLevelObjective.MetricSourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceLevelObjective.MetricSourceProperty>
A builder for
CfnServiceLevelObjective.MetricSourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metricSourceAttributes(Map<String, String> metricSourceAttributes) metricSourceAttributes(IResolvable metricSourceAttributes) metricSourceKeyAttributes(Map<String, String> metricSourceKeyAttributes) metricSourceKeyAttributes(IResolvable metricSourceKeyAttributes)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricSourceKeyAttributes
@Stability(Stable) public CfnServiceLevelObjective.MetricSourceProperty.Builder metricSourceKeyAttributes(IResolvable metricSourceKeyAttributes) - Parameters:
metricSourceKeyAttributes- Required attributes that identify the metric source. This parameter is required.- Returns:
this
-
metricSourceKeyAttributes
@Stability(Stable) public CfnServiceLevelObjective.MetricSourceProperty.Builder metricSourceKeyAttributes(Map<String, String> metricSourceKeyAttributes) - Parameters:
metricSourceKeyAttributes- Required attributes that identify the metric source. This parameter is required.- Returns:
this
-
metricSourceAttributes
@Stability(Stable) public CfnServiceLevelObjective.MetricSourceProperty.Builder metricSourceAttributes(IResolvable metricSourceAttributes) - Parameters:
metricSourceAttributes- Optional additional attributes for the metric source.- Returns:
this
-
metricSourceAttributes
@Stability(Stable) public CfnServiceLevelObjective.MetricSourceProperty.Builder metricSourceAttributes(Map<String, String> metricSourceAttributes) - Parameters:
metricSourceAttributes- Optional additional attributes for the metric source.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceLevelObjective.MetricSourceProperty>- Returns:
- a new instance of
CfnServiceLevelObjective.MetricSourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-