Class AssetStatusError

java.lang.Object
com.azure.resourcemanager.deviceregistry.models.AssetStatusError

public final class AssetStatusError extends Object
Defines the asset status error properties.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the code property: Error code for classification of errors (ex: 400, 404, 500, etc.).
    Get the message property: Human readable helpful error message to provide additional context for error (ex: “capability Id 'foo' does not exist”).
    void
    Validates the instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • code

      public Integer code()
      Get the code property: Error code for classification of errors (ex: 400, 404, 500, etc.).
      Returns:
      the code value.
    • message

      public String message()
      Get the message property: Human readable helpful error message to provide additional context for error (ex: “capability Id 'foo' does not exist”).
      Returns:
      the message value.
    • validate

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