java.lang.Object
com.azure.resourcemanager.network.models.OrderBy

public final class OrderBy extends Object
Describes a column to sort.
  • Constructor Details

    • OrderBy

      public OrderBy()
      Creates an instance of OrderBy class.
  • Method Details

    • 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

      Get the order property: Describes if results should be in ascending/descending order.
      Returns:
      the order value.
    • withOrder

      public OrderBy withOrder(FirewallPolicyIdpsQuerySortOrder 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.