Class ChangeDirectoryResult
java.lang.Object
com.azure.resourcemanager.reservations.models.ChangeDirectoryResult
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ChangeDirectoryResult>
public final class ChangeDirectoryResult
extends Object
implements com.azure.json.JsonSerializable<ChangeDirectoryResult>
Change directory result for reservation order or reservation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionerror()
Get the error property: Error reason if operation failed.static ChangeDirectoryResult
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ChangeDirectoryResult from the JsonReader.id()
Get the id property: Identifier of the reservation order or reservation.Get the isSucceeded property: True if change directory operation succeeded on this reservation order or reservation.name()
Get the name property: Name of the reservation order or reservation.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.Set the error property: Error reason if operation failed.Set the id property: Identifier of the reservation order or reservation.withIsSucceeded
(Boolean isSucceeded) Set the isSucceeded property: True if change directory operation succeeded on this reservation order or reservation.Set the name property: Name of the reservation order or reservation.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
-
ChangeDirectoryResult
public ChangeDirectoryResult()Creates an instance of ChangeDirectoryResult class.
-
-
Method Details
-
id
Get the id property: Identifier of the reservation order or reservation.- Returns:
- the id value.
-
withId
Set the id property: Identifier of the reservation order or reservation.- Parameters:
id
- the id value to set.- Returns:
- the ChangeDirectoryResult object itself.
-
name
Get the name property: Name of the reservation order or reservation.- Returns:
- the name value.
-
withName
Set the name property: Name of the reservation order or reservation.- Parameters:
name
- the name value to set.- Returns:
- the ChangeDirectoryResult object itself.
-
isSucceeded
Get the isSucceeded property: True if change directory operation succeeded on this reservation order or reservation.- Returns:
- the isSucceeded value.
-
withIsSucceeded
Set the isSucceeded property: True if change directory operation succeeded on this reservation order or reservation.- Parameters:
isSucceeded
- the isSucceeded value to set.- Returns:
- the ChangeDirectoryResult object itself.
-
error
Get the error property: Error reason if operation failed. Null otherwise.- Returns:
- the error value.
-
withError
Set the error property: Error reason if operation failed. Null otherwise.- Parameters:
error
- the error value to set.- Returns:
- the ChangeDirectoryResult 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<ChangeDirectoryResult>
- Throws:
IOException
-
fromJson
public static ChangeDirectoryResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ChangeDirectoryResult from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ChangeDirectoryResult 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 ChangeDirectoryResult.
-