/* * 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; /** *
* Aggregated statistics for a group of anomalous metrics. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AnomalyGroupStatistics implements Serializable, Cloneable, StructuredPojo { /** ** The start of the time range that was searched. *
*/ private String evaluationStartDate; /** ** The number of groups found. *
*/ private Integer totalCount; /** ** Statistics for individual metrics within the group. *
*/ private java.util.List* The start of the time range that was searched. *
* * @param evaluationStartDate * The start of the time range that was searched. */ public void setEvaluationStartDate(String evaluationStartDate) { this.evaluationStartDate = evaluationStartDate; } /** ** The start of the time range that was searched. *
* * @return The start of the time range that was searched. */ public String getEvaluationStartDate() { return this.evaluationStartDate; } /** ** The start of the time range that was searched. *
* * @param evaluationStartDate * The start of the time range that was searched. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyGroupStatistics withEvaluationStartDate(String evaluationStartDate) { setEvaluationStartDate(evaluationStartDate); return this; } /** ** The number of groups found. *
* * @param totalCount * The number of groups found. */ public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } /** ** The number of groups found. *
* * @return The number of groups found. */ public Integer getTotalCount() { return this.totalCount; } /** ** The number of groups found. *
* * @param totalCount * The number of groups found. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyGroupStatistics withTotalCount(Integer totalCount) { setTotalCount(totalCount); return this; } /** ** Statistics for individual metrics within the group. *
* * @return Statistics for individual metrics within the group. */ public java.util.List* Statistics for individual metrics within the group. *
* * @param itemizedMetricStatsList * Statistics for individual metrics within the group. */ public void setItemizedMetricStatsList(java.util.Collection* Statistics for individual metrics within the group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setItemizedMetricStatsList(java.util.Collection)} or * {@link #withItemizedMetricStatsList(java.util.Collection)} if you want to override the existing values. *
* * @param itemizedMetricStatsList * Statistics for individual metrics within the group. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyGroupStatistics withItemizedMetricStatsList(ItemizedMetricStats... itemizedMetricStatsList) { if (this.itemizedMetricStatsList == null) { setItemizedMetricStatsList(new java.util.ArrayList* Statistics for individual metrics within the group. *
* * @param itemizedMetricStatsList * Statistics for individual metrics within the group. * @return Returns a reference to this object so that method calls can be chained together. */ public AnomalyGroupStatistics withItemizedMetricStatsList(java.util.Collection