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 Summary
ConstructorsConstructorDescriptionCreates an instance of ChangeDirectoryRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the destinationTenantId property: Tenant id GUID that reservation order is to be transferred to.static ChangeDirectoryRequest
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ChangeDirectoryRequest from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDestinationTenantId
(String destinationTenantId) Set the destinationTenantId property: Tenant id GUID that reservation order is to be transferred to.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ChangeDirectoryRequest
public ChangeDirectoryRequest()Creates an instance of ChangeDirectoryRequest class.
-
-
Method Details
-
destinationTenantId
Get the destinationTenantId property: Tenant id GUID that reservation order is to be transferred to.- Returns:
- the destinationTenantId value.
-
withDestinationTenantId
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
- Specified by:
toJson
in interfacecom.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.
-