Class WebhookReceiver
java.lang.Object
com.azure.resourcemanager.monitor.models.WebhookReceiver
- All Implemented Interfaces:
com.azure.json.JsonSerializable<WebhookReceiver>
public final class WebhookReceiver
extends Object
implements com.azure.json.JsonSerializable<WebhookReceiver>
A webhook receiver.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WebhookReceiverfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WebhookReceiver from the JsonReader.Get the identifierUri property: Indicates the identifier uri for aad auth.name()Get the name property: The name of the webhook receiver.objectId()Get the objectId property: Indicates the webhook app object Id for aad auth.Get the serviceUri property: The URI where webhooks should be sent.tenantId()Get the tenantId property: Indicates the tenant id for aad auth.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the useAadAuth property: Indicates whether or not use AAD authentication.Get the useCommonAlertSchema property: Indicates whether to use common alert schema.voidvalidate()Validates the instance.withIdentifierUri(String identifierUri) Set the identifierUri property: Indicates the identifier uri for aad auth.Set the name property: The name of the webhook receiver.withObjectId(String objectId) Set the objectId property: Indicates the webhook app object Id for aad auth.withServiceUri(String serviceUri) Set the serviceUri property: The URI where webhooks should be sent.withTenantId(String tenantId) Set the tenantId property: Indicates the tenant id for aad auth.withUseAadAuth(Boolean useAadAuth) Set the useAadAuth property: Indicates whether or not use AAD authentication.withUseCommonAlertSchema(Boolean useCommonAlertSchema) Set the useCommonAlertSchema property: Indicates whether to use common alert schema.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WebhookReceiver
public WebhookReceiver()Creates an instance of WebhookReceiver class.
-
-
Method Details
-
name
Get the name property: The name of the webhook receiver. Names must be unique across all receivers within an action group.- Returns:
- the name value.
-
withName
Set the name property: The name of the webhook receiver. Names must be unique across all receivers within an action group.- Parameters:
name- the name value to set.- Returns:
- the WebhookReceiver object itself.
-
serviceUri
Get the serviceUri property: The URI where webhooks should be sent.- Returns:
- the serviceUri value.
-
withServiceUri
Set the serviceUri property: The URI where webhooks should be sent.- Parameters:
serviceUri- the serviceUri value to set.- Returns:
- the WebhookReceiver object itself.
-
useCommonAlertSchema
Get the useCommonAlertSchema property: Indicates whether to use common alert schema.- Returns:
- the useCommonAlertSchema value.
-
withUseCommonAlertSchema
Set the useCommonAlertSchema property: Indicates whether to use common alert schema.- Parameters:
useCommonAlertSchema- the useCommonAlertSchema value to set.- Returns:
- the WebhookReceiver object itself.
-
useAadAuth
Get the useAadAuth property: Indicates whether or not use AAD authentication.- Returns:
- the useAadAuth value.
-
withUseAadAuth
Set the useAadAuth property: Indicates whether or not use AAD authentication.- Parameters:
useAadAuth- the useAadAuth value to set.- Returns:
- the WebhookReceiver object itself.
-
objectId
Get the objectId property: Indicates the webhook app object Id for aad auth.- Returns:
- the objectId value.
-
withObjectId
Set the objectId property: Indicates the webhook app object Id for aad auth.- Parameters:
objectId- the objectId value to set.- Returns:
- the WebhookReceiver object itself.
-
identifierUri
Get the identifierUri property: Indicates the identifier uri for aad auth.- Returns:
- the identifierUri value.
-
withIdentifierUri
Set the identifierUri property: Indicates the identifier uri for aad auth.- Parameters:
identifierUri- the identifierUri value to set.- Returns:
- the WebhookReceiver object itself.
-
tenantId
Get the tenantId property: Indicates the tenant id for aad auth.- Returns:
- the tenantId value.
-
withTenantId
Set the tenantId property: Indicates the tenant id for aad auth.- Parameters:
tenantId- the tenantId value to set.- Returns:
- the WebhookReceiver object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<WebhookReceiver>- Throws:
IOException
-
fromJson
Reads an instance of WebhookReceiver from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WebhookReceiver if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the WebhookReceiver.
-