Class OrderBy
java.lang.Object
com.azure.resourcemanager.network.models.OrderBy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<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.static OrderByfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OrderBy from the JsonReader.order()Get the order property: Describes if results should be in ascending/descending order.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OrderBy>- Throws:
IOException
-
fromJson
Reads an instance of OrderBy from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of OrderBy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the OrderBy.
-