Class ApiError

java.lang.Object
com.microsoft.azure.management.compute.ApiError

public class ApiError extends Object
Api error.
  • Constructor Details

    • ApiError

      public ApiError()
  • Method Details

    • details

      public List<ApiErrorBase> details()
      Get the Api error details.
      Returns:
      the details value
    • withDetails

      public ApiError withDetails(List<ApiErrorBase> details)
      Set the Api error details.
      Parameters:
      details - the details value to set
      Returns:
      the ApiError object itself.
    • innererror

      public InnerError innererror()
      Get the Api inner error.
      Returns:
      the innererror value
    • withInnererror

      public ApiError withInnererror(InnerError innererror)
      Set the Api inner error.
      Parameters:
      innererror - the innererror value to set
      Returns:
      the ApiError object itself.
    • code

      public String code()
      Get the error code.
      Returns:
      the code value
    • withCode

      public ApiError withCode(String code)
      Set the error code.
      Parameters:
      code - the code value to set
      Returns:
      the ApiError object itself.
    • target

      public String target()
      Get the target of the particular error.
      Returns:
      the target value
    • withTarget

      public ApiError withTarget(String target)
      Set the target of the particular error.
      Parameters:
      target - the target value to set
      Returns:
      the ApiError object itself.
    • message

      public String message()
      Get the error message.
      Returns:
      the message value
    • withMessage

      public ApiError withMessage(String message)
      Set the error message.
      Parameters:
      message - the message value to set
      Returns:
      the ApiError object itself.