Class Context
java.lang.Object
com.azure.resourcemanager.monitor.models.Context
The context info.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the contextType property: The context id type.Get the notificationSource property: The source of the notification request.voidvalidate()Validates the instance.withContextType(String contextType) Set the contextType property: The context id type.withNotificationSource(String notificationSource) Set the notificationSource property: The source of the notification request.
-
Constructor Details
-
Context
public Context()Creates an instance of Context class.
-
-
Method Details
-
notificationSource
Get the notificationSource property: The source of the notification request.- Returns:
- the notificationSource value.
-
withNotificationSource
Set the notificationSource property: The source of the notification request.- Parameters:
notificationSource- the notificationSource value to set.- Returns:
- the Context object itself.
-
contextType
Get the contextType property: The context id type.- Returns:
- the contextType value.
-
withContextType
Set the contextType property: The context id type.- Parameters:
contextType- the contextType value to set.- Returns:
- the Context object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-