/* * 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.lexmodelsv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Specifies the time window that utterance statistics are returned for. The time window is always relative to the last * time that the that utterances were aggregated. For example, if the ListAggregatedUtterances operation is * called at 1600, the time window is set to 1 hour, and the last refresh time was 1530, only utterances made between * 1430 and 1530 are returned. *

*

* You can choose the time window that statistics should be returned for. *

* * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RelativeAggregationDuration implements Serializable, Cloneable, StructuredPojo { /** *

* The type of time period that the timeValue field represents. *

*/ private String timeDimension; /** *

* The period of the time window to gather statistics for. The valid value depends on the setting of the * timeDimension field. *

* */ private Integer timeValue; /** *

* The type of time period that the timeValue field represents. *

* * @param timeDimension * The type of time period that the timeValue field represents. * @see TimeDimension */ public void setTimeDimension(String timeDimension) { this.timeDimension = timeDimension; } /** *

* The type of time period that the timeValue field represents. *

* * @return The type of time period that the timeValue field represents. * @see TimeDimension */ public String getTimeDimension() { return this.timeDimension; } /** *

* The type of time period that the timeValue field represents. *

* * @param timeDimension * The type of time period that the timeValue field represents. * @return Returns a reference to this object so that method calls can be chained together. * @see TimeDimension */ public RelativeAggregationDuration withTimeDimension(String timeDimension) { setTimeDimension(timeDimension); return this; } /** *

* The type of time period that the timeValue field represents. *

* * @param timeDimension * The type of time period that the timeValue field represents. * @return Returns a reference to this object so that method calls can be chained together. * @see TimeDimension */ public RelativeAggregationDuration withTimeDimension(TimeDimension timeDimension) { this.timeDimension = timeDimension.toString(); return this; } /** *

* The period of the time window to gather statistics for. The valid value depends on the setting of the * timeDimension field. *

* * * @param timeValue * The period of the time window to gather statistics for. The valid value depends on the setting of the * timeDimension field.

*