java.lang.Object
com.azure.resourcemanager.connectedvmware.models.ErrorDetail

public final class ErrorDetail extends Object
Error details.
  • Constructor Details

    • ErrorDetail

      public ErrorDetail()
  • Method Details

    • code

      public String code()
      Get the code property: The error's code.
      Returns:
      the code value.
    • withCode

      public ErrorDetail withCode(String code)
      Set the code property: The error's code.
      Parameters:
      code - the code value to set.
      Returns:
      the ErrorDetail object itself.
    • message

      public String message()
      Get the message property: A human readable error message.
      Returns:
      the message value.
    • withMessage

      public ErrorDetail withMessage(String message)
      Set the message property: A human readable error message.
      Parameters:
      message - the message value to set.
      Returns:
      the ErrorDetail object itself.
    • target

      public String target()
      Get the target property: Indicates which property in the request is responsible for the error.
      Returns:
      the target value.
    • withTarget

      public ErrorDetail withTarget(String target)
      Set the target property: Indicates which property in the request is responsible for the error.
      Parameters:
      target - the target value to set.
      Returns:
      the ErrorDetail object itself.
    • details

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

      public ErrorDetail withDetails(List<ErrorDetail> details)
      Set the details property: Additional error details.
      Parameters:
      details - the details value to set.
      Returns:
      the ErrorDetail object itself.
    • validate

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