@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.Sort
public String getSort()
An ascending or descending sort.
Sort
public SortCriterion withSort(String sort)
An ascending or descending sort.
sort
- An ascending or descending sort.Sort
public SortCriterion withSort(Sort sort)
An ascending or descending sort.
sort
- An ascending or descending sort.Sort
public String toString()
toString
in class Object
Object.toString()
public SortCriterion clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.