Class CalculateExchangeOperationResultResponseInner

java.lang.Object
com.azure.resourcemanager.reservations.fluent.models.CalculateExchangeOperationResultResponseInner

public final class CalculateExchangeOperationResultResponseInner extends Object
CalculateExchange operation result.
  • Constructor Details

    • CalculateExchangeOperationResultResponseInner

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

    • id

      public String id()
      Get the id property: It should match what is used to GET the operation result.
      Returns:
      the id value.
    • withId

      Set the id property: It should match what is used to GET the operation result.
      Parameters:
      id - the id value to set.
      Returns:
      the CalculateExchangeOperationResultResponseInner object itself.
    • name

      public String name()
      Get the name property: It must match the last segment of the id field, and will typically be a GUID / system generated value.
      Returns:
      the name value.
    • withName

      Set the name property: It must match the last segment of the id field, and will typically be a GUID / system generated value.
      Parameters:
      name - the name value to set.
      Returns:
      the CalculateExchangeOperationResultResponseInner object itself.
    • status

      Get the status property: Status of the operation.
      Returns:
      the status value.
    • withStatus

      Set the status property: Status of the operation.
      Parameters:
      status - the status value to set.
      Returns:
      the CalculateExchangeOperationResultResponseInner object itself.
    • properties

      Get the properties property: CalculateExchange response properties.
      Returns:
      the properties value.
    • withProperties

      Set the properties property: CalculateExchange response properties.
      Parameters:
      properties - the properties value to set.
      Returns:
      the CalculateExchangeOperationResultResponseInner object itself.
    • error

      public OperationResultError error()
      Get the error property: Required if status == failed or status == canceled.
      Returns:
      the error value.
    • withError

      Set the error property: Required if status == failed or status == canceled.
      Parameters:
      error - the error value to set.
      Returns:
      the CalculateExchangeOperationResultResponseInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.