@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class MetricInterval extends Object implements Serializable, Cloneable, StructuredPojo
The interval period with the start and end time for the metrics.
| Constructor and Description |
|---|
MetricInterval() |
| Modifier and Type | Method and Description |
|---|---|
MetricInterval |
clone() |
boolean |
equals(Object obj) |
Date |
getEndTime()
The timestamp, in UNIX Epoch time format.
|
String |
getInterval()
The interval period provided in the API request.
|
Date |
getStartTime()
The timestamp, in UNIX Epoch time format.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setEndTime(Date endTime)
The timestamp, in UNIX Epoch time format.
|
void |
setInterval(String interval)
The interval period provided in the API request.
|
void |
setStartTime(Date startTime)
The timestamp, in UNIX Epoch time format.
|
String |
toString()
Returns a string representation of this object.
|
MetricInterval |
withEndTime(Date endTime)
The timestamp, in UNIX Epoch time format.
|
MetricInterval |
withInterval(IntervalPeriod interval)
The interval period provided in the API request.
|
MetricInterval |
withInterval(String interval)
The interval period provided in the API request.
|
MetricInterval |
withStartTime(Date startTime)
The timestamp, in UNIX Epoch time format.
|
public void setInterval(String interval)
The interval period provided in the API request.
interval - The interval period provided in the API request.IntervalPeriodpublic String getInterval()
The interval period provided in the API request.
IntervalPeriodpublic MetricInterval withInterval(String interval)
The interval period provided in the API request.
interval - The interval period provided in the API request.IntervalPeriodpublic MetricInterval withInterval(IntervalPeriod interval)
The interval period provided in the API request.
interval - The interval period provided in the API request.IntervalPeriodpublic void setStartTime(Date startTime)
The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
startTime - The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.public Date getStartTime()
The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
public MetricInterval withStartTime(Date startTime)
The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.
startTime - The timestamp, in UNIX Epoch time format. Start time is based on the interval period selected.public void setEndTime(Date endTime)
The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If
IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime
in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by
the 30 minutes period, with each StartTime and EndTime differing by 30 minutes.
endTime - The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example,
If IntervalPeriod is selected THIRTY_MIN, StartTime and
EndTime in the API request differs by 1 day, then 48 results are returned in the response.
Each result is aggregated by the 30 minutes period, with each StartTime and
EndTime differing by 30 minutes.public Date getEndTime()
The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If
IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime
in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by
the 30 minutes period, with each StartTime and EndTime differing by 30 minutes.
IntervalPeriod is selected THIRTY_MIN, StartTime and
EndTime in the API request differs by 1 day, then 48 results are returned in the response.
Each result is aggregated by the 30 minutes period, with each StartTime and
EndTime differing by 30 minutes.public MetricInterval withEndTime(Date endTime)
The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example, If
IntervalPeriod is selected THIRTY_MIN, StartTime and EndTime
in the API request differs by 1 day, then 48 results are returned in the response. Each result is aggregated by
the 30 minutes period, with each StartTime and EndTime differing by 30 minutes.
endTime - The timestamp, in UNIX Epoch time format. End time is based on the interval period selected. For example,
If IntervalPeriod is selected THIRTY_MIN, StartTime and
EndTime in the API request differs by 1 day, then 48 results are returned in the response.
Each result is aggregated by the 30 minutes period, with each StartTime and
EndTime differing by 30 minutes.public String toString()
toString in class ObjectObject.toString()public MetricInterval clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.