Class RouteCompilationError
- java.lang.Object
-
- com.azure.resourcemanager.iothub.models.RouteCompilationError
-
public final class RouteCompilationError extends Object
Compilation error when evaluating route.
-
-
Constructor Summary
Constructors Constructor Description RouteCompilationError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteErrorRange
location()
Get the location property: Location where the route error happened.String
message()
Get the message property: Route error message.RouteErrorSeverity
severity()
Get the severity property: Severity of the route error.void
validate()
Validates the instance.RouteCompilationError
withLocation(RouteErrorRange location)
Set the location property: Location where the route error happened.RouteCompilationError
withMessage(String message)
Set the message property: Route error message.RouteCompilationError
withSeverity(RouteErrorSeverity severity)
Set the severity property: Severity of the route error.
-
-
-
Method Detail
-
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.
-
-