@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DateRange extends Object implements Serializable, Cloneable, StructuredPojo
A date range for the date filter.
| Constructor and Description |
|---|
DateRange() |
| Modifier and Type | Method and Description |
|---|---|
DateRange |
clone() |
boolean |
equals(Object obj) |
String |
getUnit()
A date range unit for the date filter.
|
Integer |
getValue()
A date range value for the date filter.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setUnit(String unit)
A date range unit for the date filter.
|
void |
setValue(Integer value)
A date range value for the date filter.
|
String |
toString()
Returns a string representation of this object.
|
DateRange |
withUnit(DateRangeUnit unit)
A date range unit for the date filter.
|
DateRange |
withUnit(String unit)
A date range unit for the date filter.
|
DateRange |
withValue(Integer value)
A date range value for the date filter.
|
public void setValue(Integer value)
A date range value for the date filter.
value - A date range value for the date filter.public Integer getValue()
A date range value for the date filter.
public DateRange withValue(Integer value)
A date range value for the date filter.
value - A date range value for the date filter.public void setUnit(String unit)
A date range unit for the date filter.
unit - A date range unit for the date filter.DateRangeUnitpublic String getUnit()
A date range unit for the date filter.
DateRangeUnitpublic DateRange withUnit(String unit)
A date range unit for the date filter.
unit - A date range unit for the date filter.DateRangeUnitpublic DateRange withUnit(DateRangeUnit unit)
A date range unit for the date filter.
unit - A date range unit for the date filter.DateRangeUnitpublic 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.