Class DevOpsGuruNewInsightOpen.MetricQuery.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.devopsguru.events.DevOpsGuruNewInsightOpen.MetricQuery.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DevOpsGuruNewInsightOpen.MetricQuery>
- Enclosing interface:
DevOpsGuruNewInsightOpen.MetricQuery
@Stability(Experimental)
public static final class DevOpsGuruNewInsightOpen.MetricQuery.Builder
extends Object
implements software.amazon.jsii.Builder<DevOpsGuruNewInsightOpen.MetricQuery>
A builder for
DevOpsGuruNewInsightOpen.MetricQuery-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.groupBy(DevOpsGuruNewInsightOpen.GroupBy groupBy) Sets the value ofDevOpsGuruNewInsightOpen.MetricQuery.getGroupBy()Sets the value ofDevOpsGuruNewInsightOpen.MetricQuery.getMetric()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
groupBy
@Stability(Experimental) public DevOpsGuruNewInsightOpen.MetricQuery.Builder groupBy(DevOpsGuruNewInsightOpen.GroupBy groupBy) Sets the value ofDevOpsGuruNewInsightOpen.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 DevOpsGuruNewInsightOpen.MetricQuery.Builder metric(List<String> metric) Sets the value ofDevOpsGuruNewInsightOpen.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<DevOpsGuruNewInsightOpen.MetricQuery>- Returns:
- a new instance of
DevOpsGuruNewInsightOpen.MetricQuery - Throws:
NullPointerException- if any required attribute was not provided
-