Class AzureResourceErrorInfo

java.lang.Object
com.azure.resourcemanager.appservice.models.ErrorInfo
com.azure.resourcemanager.appservice.models.AzureResourceErrorInfo

public final class AzureResourceErrorInfo extends ErrorInfo
The azure resource error info.
  • Constructor Details

    • AzureResourceErrorInfo

      public AzureResourceErrorInfo()
  • Method Details

    • message

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

      public AzureResourceErrorInfo withMessage(String message)
      Set the message property: The error message.
      Parameters:
      message - the message value to set.
      Returns:
      the AzureResourceErrorInfo object itself.
    • details

      public List<AzureResourceErrorInfo> details()
      Get the details property: The error details.
      Returns:
      the details value.
    • withDetails

      public AzureResourceErrorInfo withDetails(List<AzureResourceErrorInfo> details)
      Set the details property: The error details.
      Parameters:
      details - the details value to set.
      Returns:
      the AzureResourceErrorInfo object itself.
    • withCode

      public AzureResourceErrorInfo withCode(String code)
      Set the code property: The error code.
      Overrides:
      withCode in class ErrorInfo
      Parameters:
      code - the code value to set.
      Returns:
      the ErrorInfo object itself.
    • validate

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