/* * 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.xray.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A list of TimeSeriesStatistic structures. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class TimeSeriesServiceStatistics implements Serializable, Cloneable, StructuredPojo { /** ** Timestamp of the window for which statistics are aggregated. *
*/ private java.util.Date timestamp; private EdgeStatistics edgeSummaryStatistics; private ServiceStatistics serviceSummaryStatistics; /** ** The forecasted high and low fault count values. *
*/ private ForecastStatistics serviceForecastStatistics; /** ** The response time histogram for the selected entities. *
*/ private java.util.List* Timestamp of the window for which statistics are aggregated. *
* * @param timestamp * Timestamp of the window for which statistics are aggregated. */ public void setTimestamp(java.util.Date timestamp) { this.timestamp = timestamp; } /** ** Timestamp of the window for which statistics are aggregated. *
* * @return Timestamp of the window for which statistics are aggregated. */ public java.util.Date getTimestamp() { return this.timestamp; } /** ** Timestamp of the window for which statistics are aggregated. *
* * @param timestamp * Timestamp of the window for which statistics are aggregated. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesServiceStatistics withTimestamp(java.util.Date timestamp) { setTimestamp(timestamp); return this; } /** * @param edgeSummaryStatistics */ public void setEdgeSummaryStatistics(EdgeStatistics edgeSummaryStatistics) { this.edgeSummaryStatistics = edgeSummaryStatistics; } /** * @return */ public EdgeStatistics getEdgeSummaryStatistics() { return this.edgeSummaryStatistics; } /** * @param edgeSummaryStatistics * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesServiceStatistics withEdgeSummaryStatistics(EdgeStatistics edgeSummaryStatistics) { setEdgeSummaryStatistics(edgeSummaryStatistics); return this; } /** * @param serviceSummaryStatistics */ public void setServiceSummaryStatistics(ServiceStatistics serviceSummaryStatistics) { this.serviceSummaryStatistics = serviceSummaryStatistics; } /** * @return */ public ServiceStatistics getServiceSummaryStatistics() { return this.serviceSummaryStatistics; } /** * @param serviceSummaryStatistics * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesServiceStatistics withServiceSummaryStatistics(ServiceStatistics serviceSummaryStatistics) { setServiceSummaryStatistics(serviceSummaryStatistics); return this; } /** ** The forecasted high and low fault count values. *
* * @param serviceForecastStatistics * The forecasted high and low fault count values. */ public void setServiceForecastStatistics(ForecastStatistics serviceForecastStatistics) { this.serviceForecastStatistics = serviceForecastStatistics; } /** ** The forecasted high and low fault count values. *
* * @return The forecasted high and low fault count values. */ public ForecastStatistics getServiceForecastStatistics() { return this.serviceForecastStatistics; } /** ** The forecasted high and low fault count values. *
* * @param serviceForecastStatistics * The forecasted high and low fault count values. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesServiceStatistics withServiceForecastStatistics(ForecastStatistics serviceForecastStatistics) { setServiceForecastStatistics(serviceForecastStatistics); return this; } /** ** The response time histogram for the selected entities. *
* * @return The response time histogram for the selected entities. */ public java.util.List* The response time histogram for the selected entities. *
* * @param responseTimeHistogram * The response time histogram for the selected entities. */ public void setResponseTimeHistogram(java.util.Collection* The response time histogram for the selected entities. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResponseTimeHistogram(java.util.Collection)} or * {@link #withResponseTimeHistogram(java.util.Collection)} if you want to override the existing values. *
* * @param responseTimeHistogram * The response time histogram for the selected entities. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesServiceStatistics withResponseTimeHistogram(HistogramEntry... responseTimeHistogram) { if (this.responseTimeHistogram == null) { setResponseTimeHistogram(new java.util.ArrayList* The response time histogram for the selected entities. *
* * @param responseTimeHistogram * The response time histogram for the selected entities. * @return Returns a reference to this object so that method calls can be chained together. */ public TimeSeriesServiceStatistics withResponseTimeHistogram(java.util.Collection