Class ChangeDirectoryRequest

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

public final class ChangeDirectoryRequest extends Object implements com.azure.json.JsonSerializable<ChangeDirectoryRequest>
Request body for change directory of a reservation.
  • Constructor Details

    • ChangeDirectoryRequest

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

    • destinationTenantId

      public String destinationTenantId()
      Get the destinationTenantId property: Tenant id GUID that reservation order is to be transferred to.
      Returns:
      the destinationTenantId value.
    • withDestinationTenantId

      public ChangeDirectoryRequest withDestinationTenantId(String destinationTenantId)
      Set the destinationTenantId property: Tenant id GUID that reservation order is to be transferred to.
      Parameters:
      destinationTenantId - the destinationTenantId value to set.
      Returns:
      the ChangeDirectoryRequest 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<ChangeDirectoryRequest>
      Throws:
      IOException
    • fromJson

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