Class OrderBy
java.lang.Object
com.azure.resourcemanager.network.models.OrderBy
Describes a column to sort.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfield()Get the field property: Describes the actual column name to sort by.order()Get the order property: Describes if results should be in ascending/descending order.voidvalidate()Validates the instance.Set the field property: Describes the actual column name to sort by.Set the order property: Describes if results should be in ascending/descending order.
-
Constructor Details
-
OrderBy
public OrderBy()Creates an instance of OrderBy class.
-
-
Method Details
-
field
Get the field property: Describes the actual column name to sort by.- Returns:
- the field value.
-
withField
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
Get the order property: Describes if results should be in ascending/descending order.- Returns:
- the order value.
-
withOrder
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.
-