@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmiProductSort extends Object implements Serializable, Cloneable, StructuredPojo
Objects that allows sorting on AMI products based on certain fields and sorting order.
| Constructor and Description |
|---|
AmiProductSort() |
| Modifier and Type | Method and Description |
|---|---|
AmiProductSort |
clone() |
boolean |
equals(Object obj) |
String |
getSortBy()
Field to sort the AMI products by.
|
String |
getSortOrder()
The sorting order.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setSortBy(String sortBy)
Field to sort the AMI products by.
|
void |
setSortOrder(String sortOrder)
The sorting order.
|
String |
toString()
Returns a string representation of this object.
|
AmiProductSort |
withSortBy(AmiProductSortBy sortBy)
Field to sort the AMI products by.
|
AmiProductSort |
withSortBy(String sortBy)
Field to sort the AMI products by.
|
AmiProductSort |
withSortOrder(SortOrder sortOrder)
The sorting order.
|
AmiProductSort |
withSortOrder(String sortOrder)
The sorting order.
|
public void setSortBy(String sortBy)
Field to sort the AMI products by.
sortBy - Field to sort the AMI products by.AmiProductSortBypublic String getSortBy()
Field to sort the AMI products by.
AmiProductSortBypublic AmiProductSort withSortBy(String sortBy)
Field to sort the AMI products by.
sortBy - Field to sort the AMI products by.AmiProductSortBypublic AmiProductSort withSortBy(AmiProductSortBy sortBy)
Field to sort the AMI products by.
sortBy - Field to sort the AMI products by.AmiProductSortBypublic 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.SortOrderpublic String getSortOrder()
The sorting order. Can be ASCENDING or DESCENDING. The default value is
DESCENDING.
ASCENDING or DESCENDING. The default value is
DESCENDING.SortOrderpublic AmiProductSort 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.SortOrderpublic AmiProductSort 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.SortOrderpublic String toString()
toString in class ObjectObject.toString()public AmiProductSort clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.