@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CurrentMetricSortCriteria extends Object implements Serializable, Cloneable, StructuredPojo
The way to sort the resulting response based on metrics. By default resources are sorted based on
AGENTS_ONLINE
, DESCENDING
. The metric collection is sorted based on the input metrics.
Constructor and Description |
---|
CurrentMetricSortCriteria() |
Modifier and Type | Method and Description |
---|---|
CurrentMetricSortCriteria |
clone() |
boolean |
equals(Object obj) |
String |
getSortByMetric() |
String |
getSortOrder()
The way to sort.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSortByMetric(String sortByMetric) |
void |
setSortOrder(String sortOrder)
The way to sort.
|
String |
toString()
Returns a string representation of this object.
|
CurrentMetricSortCriteria |
withSortByMetric(CurrentMetricName sortByMetric) |
CurrentMetricSortCriteria |
withSortByMetric(String sortByMetric) |
CurrentMetricSortCriteria |
withSortOrder(SortOrder sortOrder)
The way to sort.
|
CurrentMetricSortCriteria |
withSortOrder(String sortOrder)
The way to sort.
|
public void setSortByMetric(String sortByMetric)
sortByMetric
- CurrentMetricName
public String getSortByMetric()
CurrentMetricName
public CurrentMetricSortCriteria withSortByMetric(String sortByMetric)
sortByMetric
- CurrentMetricName
public CurrentMetricSortCriteria withSortByMetric(CurrentMetricName sortByMetric)
sortByMetric
- CurrentMetricName
public void setSortOrder(String sortOrder)
The way to sort.
sortOrder
- The way to sort.SortOrder
public String getSortOrder()
The way to sort.
SortOrder
public CurrentMetricSortCriteria withSortOrder(String sortOrder)
The way to sort.
sortOrder
- The way to sort.SortOrder
public CurrentMetricSortCriteria withSortOrder(SortOrder sortOrder)
The way to sort.
sortOrder
- The way to sort.SortOrder
public String toString()
toString
in class Object
Object.toString()
public CurrentMetricSortCriteria clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.