Class RoutingMessage
- java.lang.Object
-
- com.azure.resourcemanager.iothub.models.RoutingMessage
-
public final class RoutingMessage extends Object
Routing message.
-
-
Constructor Summary
Constructors Constructor Description RoutingMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
appProperties()
Get the appProperties property: App properties.String
body()
Get the body property: Body of routing message.Map<String,String>
systemProperties()
Get the systemProperties property: System properties.void
validate()
Validates the instance.RoutingMessage
withAppProperties(Map<String,String> appProperties)
Set the appProperties property: App properties.RoutingMessage
withBody(String body)
Set the body property: Body of routing message.RoutingMessage
withSystemProperties(Map<String,String> systemProperties)
Set the systemProperties property: System properties.
-
-
-
Method Detail
-
body
public String body()
Get the body property: Body of routing message.- Returns:
- the body value.
-
withBody
public RoutingMessage withBody(String body)
Set the body property: Body of routing message.- Parameters:
body
- the body value to set.- Returns:
- the RoutingMessage object itself.
-
appProperties
public Map<String,String> appProperties()
Get the appProperties property: App properties.- Returns:
- the appProperties value.
-
withAppProperties
public RoutingMessage withAppProperties(Map<String,String> appProperties)
Set the appProperties property: App properties.- Parameters:
appProperties
- the appProperties value to set.- Returns:
- the RoutingMessage object itself.
-
systemProperties
public Map<String,String> systemProperties()
Get the systemProperties property: System properties.- Returns:
- the systemProperties value.
-
withSystemProperties
public RoutingMessage withSystemProperties(Map<String,String> systemProperties)
Set the systemProperties property: System properties.- Parameters:
systemProperties
- the systemProperties value to set.- Returns:
- the RoutingMessage object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-