@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DataPathSort extends Object implements Serializable, Cloneable, StructuredPojo
Allows data paths to be sorted by a specific data value.
Constructor and Description |
---|
DataPathSort() |
Modifier and Type | Method and Description |
---|---|
DataPathSort |
clone() |
boolean |
equals(Object obj) |
String |
getDirection()
Determines the sort direction.
|
List<DataPathValue> |
getSortPaths()
The list of data paths that need to be sorted.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDirection(String direction)
Determines the sort direction.
|
void |
setSortPaths(Collection<DataPathValue> sortPaths)
The list of data paths that need to be sorted.
|
String |
toString()
Returns a string representation of this object.
|
DataPathSort |
withDirection(SortDirection direction)
Determines the sort direction.
|
DataPathSort |
withDirection(String direction)
Determines the sort direction.
|
DataPathSort |
withSortPaths(Collection<DataPathValue> sortPaths)
The list of data paths that need to be sorted.
|
DataPathSort |
withSortPaths(DataPathValue... sortPaths)
The list of data paths that need to be sorted.
|
public void setDirection(String direction)
Determines the sort direction.
direction
- Determines the sort direction.SortDirection
public String getDirection()
Determines the sort direction.
SortDirection
public DataPathSort withDirection(String direction)
Determines the sort direction.
direction
- Determines the sort direction.SortDirection
public DataPathSort withDirection(SortDirection direction)
Determines the sort direction.
direction
- Determines the sort direction.SortDirection
public List<DataPathValue> getSortPaths()
The list of data paths that need to be sorted.
public void setSortPaths(Collection<DataPathValue> sortPaths)
The list of data paths that need to be sorted.
sortPaths
- The list of data paths that need to be sorted.public DataPathSort withSortPaths(DataPathValue... sortPaths)
The list of data paths that need to be sorted.
NOTE: This method appends the values to the existing list (if any). Use
setSortPaths(java.util.Collection)
or withSortPaths(java.util.Collection)
if you want to
override the existing values.
sortPaths
- The list of data paths that need to be sorted.public DataPathSort withSortPaths(Collection<DataPathValue> sortPaths)
The list of data paths that need to be sorted.
sortPaths
- The list of data paths that need to be sorted.public String toString()
toString
in class Object
Object.toString()
public DataPathSort clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.