Class CloudError

java.lang.Object
com.azure.resourcemanager.databox.models.CloudError

public final class CloudError extends Object
Cloud error.
  • Constructor Details

    • CloudError

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

    • code

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

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

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

      public CloudError withMessage(String message)
      Set the message property: Cloud error message.
      Parameters:
      message - the message value to set.
      Returns:
      the CloudError object itself.
    • target

      public String target()
      Get the target property: Cloud error target.
      Returns:
      the target value.
    • withTarget

      public CloudError withTarget(String target)
      Set the target property: Cloud error target.
      Parameters:
      target - the target value to set.
      Returns:
      the CloudError object itself.
    • details

      public List<CloudError> details()
      Get the details property: Cloud error details.
      Returns:
      the details value.
    • additionalInfo

      public List<AdditionalErrorInfo> additionalInfo()
      Get the additionalInfo property: Cloud error additional info.
      Returns:
      the additionalInfo value.
    • validate

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