@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataProductSort extends Object implements Serializable, Cloneable, StructuredPojo
Objects that allows sorting on data products based on certain fields and sorting order.
Constructor and Description |
---|
DataProductSort() |
Modifier and Type | Method and Description |
---|---|
DataProductSort |
clone() |
boolean |
equals(Object obj) |
String |
getSortBy()
Field to sort the data products by.
|
String |
getSortOrder()
The sorting order.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSortBy(String sortBy)
Field to sort the data products by.
|
void |
setSortOrder(String sortOrder)
The sorting order.
|
String |
toString()
Returns a string representation of this object.
|
DataProductSort |
withSortBy(DataProductSortBy sortBy)
Field to sort the data products by.
|
DataProductSort |
withSortBy(String sortBy)
Field to sort the data products by.
|
DataProductSort |
withSortOrder(SortOrder sortOrder)
The sorting order.
|
DataProductSort |
withSortOrder(String sortOrder)
The sorting order.
|
public void setSortBy(String sortBy)
Field to sort the data products by.
sortBy
- Field to sort the data products by.DataProductSortBy
public String getSortBy()
Field to sort the data products by.
DataProductSortBy
public DataProductSort withSortBy(String sortBy)
Field to sort the data products by.
sortBy
- Field to sort the data products by.DataProductSortBy
public DataProductSort withSortBy(DataProductSortBy sortBy)
Field to sort the data products by.
sortBy
- Field to sort the data products by.DataProductSortBy
public void setSortOrder(String sortOrder)
The sorting order. Can be ASCENDING
or DESCENDING
. The default value is
DESCENDING
.
sortOrder
- The sorting order. Can be ASCENDING
or DESCENDING
. The default value is
DESCENDING
.SortOrder
public String getSortOrder()
The sorting order. Can be ASCENDING
or DESCENDING
. The default value is
DESCENDING
.
ASCENDING
or DESCENDING
. The default value is
DESCENDING
.SortOrder
public DataProductSort withSortOrder(String sortOrder)
The sorting order. Can be ASCENDING
or DESCENDING
. The default value is
DESCENDING
.
sortOrder
- The sorting order. Can be ASCENDING
or DESCENDING
. The default value is
DESCENDING
.SortOrder
public DataProductSort withSortOrder(SortOrder sortOrder)
The sorting order. Can be ASCENDING
or DESCENDING
. The default value is
DESCENDING
.
sortOrder
- The sorting order. Can be ASCENDING
or DESCENDING
. The default value is
DESCENDING
.SortOrder
public String toString()
toString
in class Object
Object.toString()
public DataProductSort clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.