java.lang.Object
com.azure.resourcemanager.monitor.models.Context

public final class Context extends Object
The context info.
  • Constructor Details

    • Context

      public Context()
      Creates an instance of Context class.
  • Method Details

    • notificationSource

      public String notificationSource()
      Get the notificationSource property: The source of the notification request.
      Returns:
      the notificationSource value.
    • withNotificationSource

      public Context withNotificationSource(String notificationSource)
      Set the notificationSource property: The source of the notification request.
      Parameters:
      notificationSource - the notificationSource value to set.
      Returns:
      the Context object itself.
    • contextType

      public String contextType()
      Get the contextType property: The context id type.
      Returns:
      the contextType value.
    • withContextType

      public Context withContextType(String contextType)
      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.