@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RelativeAggregationDuration extends Object implements Serializable, Cloneable, StructuredPojo
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.
Hours - You can request utterance statistics for 1, 3, 6, 12, or 24 hour time windows. Statistics are refreshed every half hour for 1 hour time windows, and hourly for the other time windows.
Days - You can request utterance statistics for 3 days. Statistics are refreshed every 6 hours.
Weeks - You can see statistics for one or two weeks. Statistics are refreshed every 12 hours for one week time windows, and once per day for two week time windows.
| Constructor and Description |
|---|
RelativeAggregationDuration() |
| Modifier and Type | Method and Description |
|---|---|
RelativeAggregationDuration |
clone() |
boolean |
equals(Object obj) |
String |
getTimeDimension()
The type of time period that the
timeValue field represents. |
Integer |
getTimeValue()
The period of the time window to gather statistics for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setTimeDimension(String timeDimension)
The type of time period that the
timeValue field represents. |
void |
setTimeValue(Integer timeValue)
The period of the time window to gather statistics for.
|
String |
toString()
Returns a string representation of this object.
|
RelativeAggregationDuration |
withTimeDimension(String timeDimension)
The type of time period that the
timeValue field represents. |
RelativeAggregationDuration |
withTimeDimension(TimeDimension timeDimension)
The type of time period that the
timeValue field represents. |
RelativeAggregationDuration |
withTimeValue(Integer timeValue)
The period of the time window to gather statistics for.
|
public void setTimeDimension(String timeDimension)
The type of time period that the timeValue field represents.
timeDimension - The type of time period that the timeValue field represents.TimeDimensionpublic String getTimeDimension()
The type of time period that the timeValue field represents.
timeValue field represents.TimeDimensionpublic RelativeAggregationDuration withTimeDimension(String timeDimension)
The type of time period that the timeValue field represents.
timeDimension - The type of time period that the timeValue field represents.TimeDimensionpublic RelativeAggregationDuration withTimeDimension(TimeDimension timeDimension)
The type of time period that the timeValue field represents.
timeDimension - The type of time period that the timeValue field represents.TimeDimensionpublic void setTimeValue(Integer timeValue)
The period of the time window to gather statistics for. The valid value depends on the setting of the
timeDimension field.
Hours - 1/3/6/12/24
Days - 3
Weeks - 1/2
timeValue - The period of the time window to gather statistics for. The valid value depends on the setting of the
timeDimension field.
Hours - 1/3/6/12/24
Days - 3
Weeks - 1/2
public Integer getTimeValue()
The period of the time window to gather statistics for. The valid value depends on the setting of the
timeDimension field.
Hours - 1/3/6/12/24
Days - 3
Weeks - 1/2
timeDimension field.
Hours - 1/3/6/12/24
Days - 3
Weeks - 1/2
public RelativeAggregationDuration withTimeValue(Integer timeValue)
The period of the time window to gather statistics for. The valid value depends on the setting of the
timeDimension field.
Hours - 1/3/6/12/24
Days - 3
Weeks - 1/2
timeValue - The period of the time window to gather statistics for. The valid value depends on the setting of the
timeDimension field.
Hours - 1/3/6/12/24
Days - 3
Weeks - 1/2
public String toString()
toString in class ObjectObject.toString()public RelativeAggregationDuration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.