Class CapacityReservationGroupListResult

java.lang.Object
com.azure.resourcemanager.compute.models.CapacityReservationGroupListResult
All Implemented Interfaces:
com.azure.json.JsonSerializable<CapacityReservationGroupListResult>

public final class CapacityReservationGroupListResult extends Object implements com.azure.json.JsonSerializable<CapacityReservationGroupListResult>
The List capacity reservation group with resource group response.
  • Constructor Details

    • CapacityReservationGroupListResult

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

    • value

      Get the value property: The list of capacity reservation groups.
      Returns:
      the value value.
    • withValue

      Set the value property: The list of capacity reservation groups.
      Parameters:
      value - the value value to set.
      Returns:
      the CapacityReservationGroupListResult object itself.
    • nextLink

      public String nextLink()
      Get the nextLink property: The URI to fetch the next page of capacity reservation groups. Call ListNext() with this URI to fetch the next page of capacity reservation groups.
      Returns:
      the nextLink value.
    • withNextLink

      public CapacityReservationGroupListResult withNextLink(String nextLink)
      Set the nextLink property: The URI to fetch the next page of capacity reservation groups. Call ListNext() with this URI to fetch the next page of capacity reservation groups.
      Parameters:
      nextLink - the nextLink value to set.
      Returns:
      the CapacityReservationGroupListResult object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<CapacityReservationGroupListResult>
      Throws:
      IOException
    • fromJson

      public static CapacityReservationGroupListResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CapacityReservationGroupListResult from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CapacityReservationGroupListResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the CapacityReservationGroupListResult.