WebhookReceiver Class
- java.
lang. Object - com.
azure. resourcemanager. monitor. models. WebhookReceiver
- com.
Implements
public final class WebhookReceiver
implements JsonSerializable<WebhookReceiver>
A webhook receiver.
Constructor Summary
Constructor | Description |
---|---|
WebhookReceiver() |
Creates an instance of Webhook |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Webhook |
fromJson(JsonReader jsonReader)
Reads an instance of Webhook |
String |
identifierUri()
Get the identifier |
String |
name()
Get the name property: The name of the webhook receiver. |
String |
objectId()
Get the object |
String |
serviceUri()
Get the service |
String |
tenantId()
Get the tenant |
Json |
toJson(JsonWriter jsonWriter) |
Boolean |
useAadAuth()
Get the use |
Boolean |
useCommonAlertSchema()
Get the use |
void |
validate()
Validates the instance. |
Webhook |
withIdentifierUri(String identifierUri)
Set the identifier |
Webhook |
withName(String name)
Set the name property: The name of the webhook receiver. |
Webhook |
withObjectId(String objectId)
Set the object |
Webhook |
withServiceUri(String serviceUri)
Set the service |
Webhook |
withTenantId(String tenantId)
Set the tenant |
Webhook |
withUseAadAuth(Boolean useAadAuth)
Set the use |
Webhook |
withUseCommonAlertSchema(Boolean useCommonAlertSchema)
Set the use |
Methods inherited from java.lang.Object
Constructor Details
WebhookReceiver
public WebhookReceiver()
Creates an instance of WebhookReceiver class.
Method Details
fromJson
public static WebhookReceiver fromJson(JsonReader jsonReader)
Reads an instance of WebhookReceiver from the JsonReader.
Parameters:
Returns:
Throws:
identifierUri
public String identifierUri()
Get the identifierUri property: Indicates the identifier uri for aad auth.
Returns:
name
public String name()
Get the name property: The name of the webhook receiver. Names must be unique across all receivers within an action group.
Returns:
objectId
public String objectId()
Get the objectId property: Indicates the webhook app object Id for aad auth.
Returns:
serviceUri
public String serviceUri()
Get the serviceUri property: The URI where webhooks should be sent.
Returns:
tenantId
public String tenantId()
Get the tenantId property: Indicates the tenant id for aad auth.
Returns:
toJson
useAadAuth
public Boolean useAadAuth()
Get the useAadAuth property: Indicates whether or not use AAD authentication.
Returns:
useCommonAlertSchema
public Boolean useCommonAlertSchema()
Get the useCommonAlertSchema property: Indicates whether to use common alert schema.
Returns:
validate
public void validate()
Validates the instance.
withIdentifierUri
public WebhookReceiver withIdentifierUri(String identifierUri)
Set the identifierUri property: Indicates the identifier uri for aad auth.
Parameters:
Returns:
withName
public WebhookReceiver withName(String name)
Set the name property: The name of the webhook receiver. Names must be unique across all receivers within an action group.
Parameters:
Returns:
withObjectId
public WebhookReceiver withObjectId(String objectId)
Set the objectId property: Indicates the webhook app object Id for aad auth.
Parameters:
Returns:
withServiceUri
public WebhookReceiver withServiceUri(String serviceUri)
Set the serviceUri property: The URI where webhooks should be sent.
Parameters:
Returns:
withTenantId
public WebhookReceiver withTenantId(String tenantId)
Set the tenantId property: Indicates the tenant id for aad auth.
Parameters:
Returns:
withUseAadAuth
public WebhookReceiver withUseAadAuth(Boolean useAadAuth)
Set the useAadAuth property: Indicates whether or not use AAD authentication.
Parameters:
Returns:
withUseCommonAlertSchema
public WebhookReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)
Set the useCommonAlertSchema property: Indicates whether to use common alert schema.
Parameters:
Returns:
Applies to
Azure SDK for Java