@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Range extends Object implements Serializable, Cloneable, StructuredPojo
The relative time period over which data is included in the aggregation.
| Constructor and Description |
|---|
Range() |
| Modifier and Type | Method and Description |
|---|---|
Range |
clone() |
boolean |
equals(Object obj) |
String |
getUnit()
The unit of time.
|
Integer |
getValue()
The amount of time of the specified unit.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setUnit(String unit)
The unit of time.
|
void |
setValue(Integer value)
The amount of time of the specified unit.
|
String |
toString()
Returns a string representation of this object.
|
Range |
withUnit(String unit)
The unit of time.
|
Range |
withUnit(Unit unit)
The unit of time.
|
Range |
withValue(Integer value)
The amount of time of the specified unit.
|
public void setValue(Integer value)
The amount of time of the specified unit.
value - The amount of time of the specified unit.public Integer getValue()
The amount of time of the specified unit.
public Range withValue(Integer value)
The amount of time of the specified unit.
value - The amount of time of the specified unit.public void setUnit(String unit)
The unit of time.
unit - The unit of time.Unitpublic Range withUnit(String unit)
The unit of time.
unit - The unit of time.Unitpublic Range withUnit(Unit unit)
The unit of time.
unit - The unit of time.Unitpublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.