Class LocationListResult

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

public final class LocationListResult extends Object implements com.azure.json.JsonSerializable<LocationListResult>
Location list operation response.
  • Constructor Details

    • LocationListResult

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

    • value

      public List<LocationInner> value()
      Get the value property: An array of locations.
      Returns:
      the value value.
    • withValue

      public LocationListResult withValue(List<LocationInner> value)
      Set the value property: An array of locations.
      Parameters:
      value - the value value to set.
      Returns:
      the LocationListResult 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<LocationListResult>
      Throws:
      IOException
    • fromJson

      public static LocationListResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LocationListResult from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LocationListResult 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 LocationListResult.