java.lang.Object
com.azure.resourcemanager.deviceprovisioningservices.models.ErrorMessage

public final class ErrorMessage extends Object
Error response containing message and code.
  • Constructor Details

    • ErrorMessage

      public ErrorMessage()
  • Method Details

    • code

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

      public ErrorMessage withCode(String code)
      Set the code property: standard error code.
      Parameters:
      code - the code value to set.
      Returns:
      the ErrorMessage object itself.
    • message

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

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

      public String details()
      Get the details property: detailed summary of error.
      Returns:
      the details value.
    • withDetails

      public ErrorMessage withDetails(String details)
      Set the details property: detailed summary of error.
      Parameters:
      details - the details value to set.
      Returns:
      the ErrorMessage object itself.
    • validate

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