Class RouteCompilationError

java.lang.Object
com.azure.resourcemanager.iothub.models.RouteCompilationError

public final class RouteCompilationError extends Object
Compilation error when evaluating route.
  • Constructor Details

    • RouteCompilationError

      public RouteCompilationError()
  • Method Details

    • message

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

      public RouteCompilationError withMessage(String message)
      Set the message property: Route error message.
      Parameters:
      message - the message value to set.
      Returns:
      the RouteCompilationError object itself.
    • severity

      public RouteErrorSeverity severity()
      Get the severity property: Severity of the route error.
      Returns:
      the severity value.
    • withSeverity

      public RouteCompilationError withSeverity(RouteErrorSeverity severity)
      Set the severity property: Severity of the route error.
      Parameters:
      severity - the severity value to set.
      Returns:
      the RouteCompilationError object itself.
    • location

      public RouteErrorRange location()
      Get the location property: Location where the route error happened.
      Returns:
      the location value.
    • withLocation

      public RouteCompilationError withLocation(RouteErrorRange location)
      Set the location property: Location where the route error happened.
      Parameters:
      location - the location value to set.
      Returns:
      the RouteCompilationError object itself.
    • validate

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