Class TestRouteInput
- java.lang.Object
-
- com.azure.resourcemanager.iothub.models.TestRouteInput
-
public final class TestRouteInput extends Object
Input for testing route.
-
-
Constructor Summary
Constructors Constructor Description TestRouteInput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RoutingMessage
message()
Get the message property: Routing message.RouteProperties
route()
Get the route property: Route properties.RoutingTwin
twin()
Get the twin property: Routing Twin Reference.void
validate()
Validates the instance.TestRouteInput
withMessage(RoutingMessage message)
Set the message property: Routing message.TestRouteInput
withRoute(RouteProperties route)
Set the route property: Route properties.TestRouteInput
withTwin(RoutingTwin twin)
Set the twin property: Routing Twin Reference.
-
-
-
Method Detail
-
message
public RoutingMessage message()
Get the message property: Routing message.- Returns:
- the message value.
-
withMessage
public TestRouteInput withMessage(RoutingMessage message)
Set the message property: Routing message.- Parameters:
message
- the message value to set.- Returns:
- the TestRouteInput object itself.
-
route
public RouteProperties route()
Get the route property: Route properties.- Returns:
- the route value.
-
withRoute
public TestRouteInput withRoute(RouteProperties route)
Set the route property: Route properties.- Parameters:
route
- the route value to set.- Returns:
- the TestRouteInput object itself.
-
twin
public RoutingTwin twin()
Get the twin property: Routing Twin Reference.- Returns:
- the twin value.
-
withTwin
public TestRouteInput withTwin(RoutingTwin twin)
Set the twin property: Routing Twin Reference.- Parameters:
twin
- the twin value to set.- Returns:
- the TestRouteInput object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-