/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lookoutmetrics.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A group of anomalous metrics *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AnomalyGroup implements Serializable, Cloneable, StructuredPojo { /** ** The start time for the group. *
*/ private String startTime; /** ** The end time for the group. *
*/ private String endTime; /** ** The ID of the anomaly group. *
*/ private String anomalyGroupId; /** ** The severity score of the group. *
*/ private Double anomalyGroupScore; /** ** The name of the primary affected measure for the group. *
*/ private String primaryMetricName; /** ** A list of measures affected by the anomaly. *
*/ private java.util.List* The start time for the group. *
* * @param startTime * The start time for the group. */ public void setStartTime(String startTime) { this.startTime = startTime; } /** ** The start time for the group. *
* * @return The start time for the group. */ public String getStartTime() { return this.startTime; } /** ** The start time for the group. *
* * @param startTime * The start time for the group. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyGroup withStartTime(String startTime) { setStartTime(startTime); return this; } /** ** The end time for the group. *
* * @param endTime * The end time for the group. */ public void setEndTime(String endTime) { this.endTime = endTime; } /** ** The end time for the group. *
* * @return The end time for the group. */ public String getEndTime() { return this.endTime; } /** ** The end time for the group. *
* * @param endTime * The end time for the group. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyGroup withEndTime(String endTime) { setEndTime(endTime); return this; } /** ** The ID of the anomaly group. *
* * @param anomalyGroupId * The ID of the anomaly group. */ public void setAnomalyGroupId(String anomalyGroupId) { this.anomalyGroupId = anomalyGroupId; } /** ** The ID of the anomaly group. *
* * @return The ID of the anomaly group. */ public String getAnomalyGroupId() { return this.anomalyGroupId; } /** ** The ID of the anomaly group. *
* * @param anomalyGroupId * The ID of the anomaly group. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyGroup withAnomalyGroupId(String anomalyGroupId) { setAnomalyGroupId(anomalyGroupId); return this; } /** ** The severity score of the group. *
* * @param anomalyGroupScore * The severity score of the group. */ public void setAnomalyGroupScore(Double anomalyGroupScore) { this.anomalyGroupScore = anomalyGroupScore; } /** ** The severity score of the group. *
* * @return The severity score of the group. */ public Double getAnomalyGroupScore() { return this.anomalyGroupScore; } /** ** The severity score of the group. *
* * @param anomalyGroupScore * The severity score of the group. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyGroup withAnomalyGroupScore(Double anomalyGroupScore) { setAnomalyGroupScore(anomalyGroupScore); return this; } /** ** The name of the primary affected measure for the group. *
* * @param primaryMetricName * The name of the primary affected measure for the group. */ public void setPrimaryMetricName(String primaryMetricName) { this.primaryMetricName = primaryMetricName; } /** ** The name of the primary affected measure for the group. *
* * @return The name of the primary affected measure for the group. */ public String getPrimaryMetricName() { return this.primaryMetricName; } /** ** The name of the primary affected measure for the group. *
* * @param primaryMetricName * The name of the primary affected measure for the group. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyGroup withPrimaryMetricName(String primaryMetricName) { setPrimaryMetricName(primaryMetricName); return this; } /** ** A list of measures affected by the anomaly. *
* * @return A list of measures affected by the anomaly. */ public java.util.List* A list of measures affected by the anomaly. *
* * @param metricLevelImpactList * A list of measures affected by the anomaly. */ public void setMetricLevelImpactList(java.util.Collection* A list of measures affected by the anomaly. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setMetricLevelImpactList(java.util.Collection)} or * {@link #withMetricLevelImpactList(java.util.Collection)} if you want to override the existing values. *
* * @param metricLevelImpactList * A list of measures affected by the anomaly. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyGroup withMetricLevelImpactList(MetricLevelImpact... metricLevelImpactList) { if (this.metricLevelImpactList == null) { setMetricLevelImpactList(new java.util.ArrayList* A list of measures affected by the anomaly. *
* * @param metricLevelImpactList * A list of measures affected by the anomaly. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyGroup withMetricLevelImpactList(java.util.Collection