@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Sort extends Object implements Serializable, Cloneable, StructuredPojo
An object that contains the SortBy and SortOrder attributes.
| Constructor and Description |
|---|
Sort() |
| Modifier and Type | Method and Description |
|---|---|
Sort |
clone() |
boolean |
equals(Object obj) |
String |
getSortBy()
The attribute on which the data is grouped, which can be by
StartTime and EndTime. |
String |
getSortOrder()
The sorting order, which can be
ASCENDING or DESCENDING. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setSortBy(String sortBy)
The attribute on which the data is grouped, which can be by
StartTime and EndTime. |
void |
setSortOrder(String sortOrder)
The sorting order, which can be
ASCENDING or DESCENDING. |
String |
toString()
Returns a string representation of this object.
|
Sort |
withSortBy(String sortBy)
The attribute on which the data is grouped, which can be by
StartTime and EndTime. |
Sort |
withSortOrder(SortOrder sortOrder)
The sorting order, which can be
ASCENDING or DESCENDING. |
Sort |
withSortOrder(String sortOrder)
The sorting order, which can be
ASCENDING or DESCENDING. |
public void setSortBy(String sortBy)
The attribute on which the data is grouped, which can be by StartTime and EndTime. The
default value is EndTime.
sortBy - The attribute on which the data is grouped, which can be by StartTime and
EndTime. The default value is EndTime.public String getSortBy()
The attribute on which the data is grouped, which can be by StartTime and EndTime. The
default value is EndTime.
StartTime and
EndTime. The default value is EndTime.public Sort withSortBy(String sortBy)
The attribute on which the data is grouped, which can be by StartTime and EndTime. The
default value is EndTime.
sortBy - The attribute on which the data is grouped, which can be by StartTime and
EndTime. The default value is EndTime.public void setSortOrder(String sortOrder)
The sorting order, which can be ASCENDING or DESCENDING. The default value is
DESCENDING.
sortOrder - The sorting order, which can be ASCENDING or DESCENDING. The default value is
DESCENDING.SortOrderpublic String getSortOrder()
The sorting order, which can be ASCENDING or DESCENDING. The default value is
DESCENDING.
ASCENDING or DESCENDING. The default value is
DESCENDING.SortOrderpublic Sort withSortOrder(String sortOrder)
The sorting order, which can be ASCENDING or DESCENDING. The default value is
DESCENDING.
sortOrder - The sorting order, which can be ASCENDING or DESCENDING. The default value is
DESCENDING.SortOrderpublic Sort withSortOrder(SortOrder sortOrder)
The sorting order, which can be ASCENDING or DESCENDING. The default value is
DESCENDING.
sortOrder - The sorting order, which can be ASCENDING or DESCENDING. The default value is
DESCENDING.SortOrderpublic 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.