@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Sort extends Object implements Serializable, Cloneable, StructuredPojo
A structure that defineds 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.SortableFieldName
public String getFieldName()
The name of the field on which to sort.
SortableFieldName
public Sort withFieldName(String fieldName)
The name of the field on which to sort.
fieldName
- The name of the field on which to sort.SortableFieldName
public Sort withFieldName(SortableFieldName fieldName)
The name of the field on which to sort.
fieldName
- The name of the field on which to sort.SortableFieldName
public void setOrder(String order)
An ascending or descending sort.
order
- An ascending or descending sort.SortOrder
public String getOrder()
An ascending or descending sort.
SortOrder
public Sort withOrder(String order)
An ascending or descending sort.
order
- An ascending or descending sort.SortOrder
public Sort withOrder(SortOrder order)
An ascending or descending sort.
order
- An ascending or descending sort.SortOrder
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.