@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.DateRangeUnit
public String getUnit()
A date range unit for the date filter.
DateRangeUnit
public DateRange withUnit(String unit)
A date range unit for the date filter.
unit
- A date range unit for the date filter.DateRangeUnit
public DateRange withUnit(DateRangeUnit unit)
A date range unit for the date filter.
unit
- A date range unit for the date filter.DateRangeUnit
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.