@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Sort extends Object implements Serializable, Cloneable, StructuredPojo
An object that contains two attributes, SortBy
and SortOrder
.
Constructor and Description |
---|
Sort() |
Modifier and Type | Method and Description |
---|---|
Sort |
clone() |
boolean |
equals(Object obj) |
String |
getSortBy()
For
ListEntities , supported attributes include LastModifiedDate (default),
Visibility , EntityId , and Name . |
String |
getSortOrder()
The sorting order.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSortBy(String sortBy)
For
ListEntities , supported attributes include LastModifiedDate (default),
Visibility , EntityId , and Name . |
void |
setSortOrder(String sortOrder)
The sorting order.
|
String |
toString()
Returns a string representation of this object.
|
Sort |
withSortBy(String sortBy)
For
ListEntities , supported attributes include LastModifiedDate (default),
Visibility , EntityId , and Name . |
Sort |
withSortOrder(SortOrder sortOrder)
The sorting order.
|
Sort |
withSortOrder(String sortOrder)
The sorting order.
|
public void setSortBy(String sortBy)
For ListEntities
, supported attributes include LastModifiedDate
(default),
Visibility
, EntityId
, and Name
.
For ListChangeSets
, supported attributes include StartTime
and EndTime
.
sortBy
- For ListEntities
, supported attributes include LastModifiedDate
(default),
Visibility
, EntityId
, and Name
.
For ListChangeSets
, supported attributes include StartTime
and
EndTime
.
public String getSortBy()
For ListEntities
, supported attributes include LastModifiedDate
(default),
Visibility
, EntityId
, and Name
.
For ListChangeSets
, supported attributes include StartTime
and EndTime
.
ListEntities
, supported attributes include LastModifiedDate
(default),
Visibility
, EntityId
, and Name
.
For ListChangeSets
, supported attributes include StartTime
and
EndTime
.
public Sort withSortBy(String sortBy)
For ListEntities
, supported attributes include LastModifiedDate
(default),
Visibility
, EntityId
, and Name
.
For ListChangeSets
, supported attributes include StartTime
and EndTime
.
sortBy
- For ListEntities
, supported attributes include LastModifiedDate
(default),
Visibility
, EntityId
, and Name
.
For ListChangeSets
, supported attributes include StartTime
and
EndTime
.
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 Sort 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 Sort 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 void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.