@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Sort extends Object implements Serializable, Cloneable, StructuredPojo
A structure that defines the field name to sort by and a sort order.
| Constructor and Description |
|---|
Sort() |
| Modifier and Type | Method and Description |
|---|---|
Sort |
clone() |
boolean |
equals(Object obj) |
String |
getFieldName()
The name of the field on which to sort.
|
String |
getOrder()
An ascending or descending sort.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFieldName(String fieldName)
The name of the field on which to sort.
|
void |
setOrder(String order)
An ascending or descending sort.
|
String |
toString()
Returns a string representation of this object.
|
Sort |
withFieldName(SortableFieldName fieldName)
The name of the field on which to sort.
|
Sort |
withFieldName(String fieldName)
The name of the field on which to sort.
|
Sort |
withOrder(SortOrder order)
An ascending or descending sort.
|
Sort |
withOrder(String order)
An ascending or descending sort.
|
public void setFieldName(String fieldName)
The name of the field on which to sort.
fieldName - The name of the field on which to sort.SortableFieldNamepublic String getFieldName()
The name of the field on which to sort.
SortableFieldNamepublic Sort withFieldName(String fieldName)
The name of the field on which to sort.
fieldName - The name of the field on which to sort.SortableFieldNamepublic Sort withFieldName(SortableFieldName fieldName)
The name of the field on which to sort.
fieldName - The name of the field on which to sort.SortableFieldNamepublic void setOrder(String order)
An ascending or descending sort.
order - An ascending or descending sort.SortOrderpublic String getOrder()
An ascending or descending sort.
SortOrderpublic Sort withOrder(String order)
An ascending or descending sort.
order - An ascending or descending sort.SortOrderpublic Sort withOrder(SortOrder order)
An ascending or descending sort.
order - An ascending or descending sort.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.