RouteCompilationError Class

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

public final class RouteCompilationError

Compilation error when evaluating route.

Constructor Summary

Constructor Description
RouteCompilationError()

Creates an instance of RouteCompilationError class.

Method Summary

Modifier and Type Method and 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.

Methods inherited from java.lang.Object

Constructor Details

RouteCompilationError

public RouteCompilationError()

Creates an instance of RouteCompilationError class.

Method Details

location

public RouteErrorRange location()

Get the location property: Location where the route error happened.

Returns:

the location value.

message

public String message()

Get the message property: Route error message.

Returns:

the message value.

severity

public RouteErrorSeverity severity()

Get the severity property: Severity of the route error.

Returns:

the severity value.

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to