Context Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. Context
- com.
Implements
public final class Context
implements JsonSerializable<Context>
The context info.
Constructor Summary
Constructor | Description |
---|---|
Context() |
Creates an instance of Context class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
contextType()
Get the context |
static Context |
fromJson(JsonReader jsonReader)
Reads an instance of Context from the Json |
String |
notificationSource()
Get the notification |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Context |
withContextType(String contextType)
Set the context |
Context |
withNotificationSource(String notificationSource)
Set the notification |
Methods inherited from java.lang.Object
Constructor Details
Context
public Context()
Creates an instance of Context class.
Method Details
contextType
public String contextType()
Get the contextType property: The context id type.
Returns:
fromJson
public static Context fromJson(JsonReader jsonReader)
Reads an instance of Context from the JsonReader.
Parameters:
Returns:
Throws:
notificationSource
public String notificationSource()
Get the notificationSource property: The source of the notification request.
Returns:
toJson
validate
public void validate()
Validates the instance.
withContextType
public Context withContextType(String contextType)
Set the contextType property: The context id type.
Parameters:
Returns:
withNotificationSource
public Context withNotificationSource(String notificationSource)
Set the notificationSource property: The source of the notification request.
Parameters:
Returns:
Applies to
Azure SDK for Java