Class OrderBy
- java.lang.Object
-
- com.azure.resourcemanager.network.models.OrderBy
-
public final class OrderBy extends Object
Describes a column to sort.
-
-
Constructor Summary
Constructors Constructor Description OrderBy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringfield()Get the field property: Describes the actual column name to sort by.OrderByOrderorder()Get the order property: Describes if results should be in ascending/descending order.voidvalidate()Validates the instance.OrderBywithField(String field)Set the field property: Describes the actual column name to sort by.OrderBywithOrder(OrderByOrder order)Set the order property: Describes if results should be in ascending/descending order.
-
-
-
Method Detail
-
field
public String field()
Get the field property: Describes the actual column name to sort by.- Returns:
- the field value.
-
withField
public OrderBy withField(String field)
Set the field property: Describes the actual column name to sort by.- Parameters:
field- the field value to set.- Returns:
- the OrderBy object itself.
-
order
public OrderByOrder order()
Get the order property: Describes if results should be in ascending/descending order.- Returns:
- the order value.
-
withOrder
public OrderBy withOrder(OrderByOrder order)
Set the order property: Describes if results should be in ascending/descending order.- Parameters:
order- the order value to set.- Returns:
- the OrderBy object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-