@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SortProperty extends Object implements Serializable, Cloneable, StructuredPojo
Describes how to sort the data that you bind to a component.
Constructor and Description |
---|
SortProperty() |
Modifier and Type | Method and Description |
---|---|
SortProperty |
clone() |
boolean |
equals(Object obj) |
String |
getDirection()
The direction of the sort, either ascending or descending.
|
String |
getField()
The field to perform the sort on.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDirection(String direction)
The direction of the sort, either ascending or descending.
|
void |
setField(String field)
The field to perform the sort on.
|
String |
toString()
Returns a string representation of this object.
|
SortProperty |
withDirection(SortDirection direction)
The direction of the sort, either ascending or descending.
|
SortProperty |
withDirection(String direction)
The direction of the sort, either ascending or descending.
|
SortProperty |
withField(String field)
The field to perform the sort on.
|
public void setField(String field)
The field to perform the sort on.
field
- The field to perform the sort on.public String getField()
The field to perform the sort on.
public SortProperty withField(String field)
The field to perform the sort on.
field
- The field to perform the sort on.public void setDirection(String direction)
The direction of the sort, either ascending or descending.
direction
- The direction of the sort, either ascending or descending.SortDirection
public String getDirection()
The direction of the sort, either ascending or descending.
SortDirection
public SortProperty withDirection(String direction)
The direction of the sort, either ascending or descending.
direction
- The direction of the sort, either ascending or descending.SortDirection
public SortProperty withDirection(SortDirection direction)
The direction of the sort, either ascending or descending.
direction
- The direction of the sort, either ascending or descending.SortDirection
public String toString()
toString
in class Object
Object.toString()
public SortProperty clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.