Class ExchangeRequest

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

public final class ExchangeRequest extends Object implements com.azure.json.JsonSerializable<ExchangeRequest>
Exchange request.
  • Constructor Details

    • ExchangeRequest

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

    • properties

      public ExchangeRequestProperties properties()
      Get the properties property: Exchange request properties.
      Returns:
      the properties value.
    • withProperties

      public ExchangeRequest withProperties(ExchangeRequestProperties properties)
      Set the properties property: Exchange request properties.
      Parameters:
      properties - the properties value to set.
      Returns:
      the ExchangeRequest 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<ExchangeRequest>
      Throws:
      IOException
    • fromJson

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