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 Details

    • ChangeDirectoryResult

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

    • id

      public String id()
      Get the id property: Identifier of the reservation order or reservation.
      Returns:
      the id value.
    • withId

      public ChangeDirectoryResult withId(String id)
      Set the id property: Identifier of the reservation order or reservation.
      Parameters:
      id - the id value to set.
      Returns:
      the ChangeDirectoryResult object itself.
    • name

      public String name()
      Get the name property: Name of the reservation order or reservation.
      Returns:
      the name value.
    • withName

      public ChangeDirectoryResult withName(String name)
      Set the name property: Name of the reservation order or reservation.
      Parameters:
      name - the name value to set.
      Returns:
      the ChangeDirectoryResult object itself.
    • isSucceeded

      public Boolean isSucceeded()
      Get the isSucceeded property: True if change directory operation succeeded on this reservation order or reservation.
      Returns:
      the isSucceeded value.
    • withIsSucceeded

      public ChangeDirectoryResult withIsSucceeded(Boolean isSucceeded)
      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

      public String error()
      Get the error property: Error reason if operation failed. Null otherwise.
      Returns:
      the error value.
    • withError

      public ChangeDirectoryResult withError(String error)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.