@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SortCriterion extends Object implements Serializable, Cloneable, StructuredPojo
Specifies a field to sort by and a sort order.
| Constructor and Description |
|---|
SortCriterion() |
| Modifier and Type | Method and Description |
|---|---|
SortCriterion |
clone() |
boolean |
equals(Object obj) |
String |
getFieldName()
The name of the field on which to sort.
|
String |
getSort()
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 |
setSort(String sort)
An ascending or descending sort.
|
String |
toString()
Returns a string representation of this object.
|
SortCriterion |
withFieldName(String fieldName)
The name of the field on which to sort.
|
SortCriterion |
withSort(Sort sort)
An ascending or descending sort.
|
SortCriterion |
withSort(String sort)
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.public String getFieldName()
The name of the field on which to sort.
public SortCriterion withFieldName(String fieldName)
The name of the field on which to sort.
fieldName - The name of the field on which to sort.public void setSort(String sort)
An ascending or descending sort.
sort - An ascending or descending sort.Sortpublic String getSort()
An ascending or descending sort.
Sortpublic SortCriterion withSort(String sort)
An ascending or descending sort.
sort - An ascending or descending sort.Sortpublic SortCriterion withSort(Sort sort)
An ascending or descending sort.
sort - An ascending or descending sort.Sortpublic String toString()
toString in class ObjectObject.toString()public SortCriterion clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.