Class DevOpsGuruInsightClosed.MetricQuery.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.devopsguru.events.DevOpsGuruInsightClosed.MetricQuery.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DevOpsGuruInsightClosed.MetricQuery>
- Enclosing interface:
DevOpsGuruInsightClosed.MetricQuery
@Stability(Experimental)
public static final class DevOpsGuruInsightClosed.MetricQuery.Builder
extends Object
implements software.amazon.jsii.Builder<DevOpsGuruInsightClosed.MetricQuery>
A builder for
DevOpsGuruInsightClosed.MetricQuery-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.groupBy(DevOpsGuruInsightClosed.GroupBy groupBy) Sets the value ofDevOpsGuruInsightClosed.MetricQuery.getGroupBy()Sets the value ofDevOpsGuruInsightClosed.MetricQuery.getMetric()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
groupBy
@Stability(Experimental) public DevOpsGuruInsightClosed.MetricQuery.Builder groupBy(DevOpsGuruInsightClosed.GroupBy groupBy) Sets the value ofDevOpsGuruInsightClosed.MetricQuery.getGroupBy()- Parameters:
groupBy- groupBy property. Specify an array of string values to match this event if the actual value of groupBy is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
metric
@Stability(Experimental) public DevOpsGuruInsightClosed.MetricQuery.Builder metric(List<String> metric) Sets the value ofDevOpsGuruInsightClosed.MetricQuery.getMetric()- Parameters:
metric- metric property. Specify an array of string values to match this event if the actual value of metric is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DevOpsGuruInsightClosed.MetricQuery>- Returns:
- a new instance of
DevOpsGuruInsightClosed.MetricQuery - Throws:
NullPointerException- if any required attribute was not provided
-