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