WebhookReceiver Class

  • java.lang.Object
    • com.azure.resourcemanager.monitor.models.WebhookReceiver

Implements

public final class WebhookReceiver
implements JsonSerializable<WebhookReceiver>

A webhook receiver.

Constructor Summary

Constructor Description
WebhookReceiver()

Creates an instance of WebhookReceiver class.

Method Summary

Modifier and Type Method and Description
static WebhookReceiver fromJson(JsonReader jsonReader)

Reads an instance of WebhookReceiver from the JsonReader.

String identifierUri()

Get the identifierUri property: Indicates the identifier uri for aad auth.

String name()

Get the name property: The name of the webhook receiver.

String objectId()

Get the objectId property: Indicates the webhook app object Id for aad auth.

String serviceUri()

Get the serviceUri property: The URI where webhooks should be sent.

String tenantId()

Get the tenantId property: Indicates the tenant id for aad auth.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean useAadAuth()

Get the useAadAuth property: Indicates whether or not use AAD authentication.

Boolean useCommonAlertSchema()

Get the useCommonAlertSchema property: Indicates whether to use common alert schema.

void validate()

Validates the instance.

WebhookReceiver withIdentifierUri(String identifierUri)

Set the identifierUri property: Indicates the identifier uri for aad auth.

WebhookReceiver withName(String name)

Set the name property: The name of the webhook receiver.

WebhookReceiver withObjectId(String objectId)

Set the objectId property: Indicates the webhook app object Id for aad auth.

WebhookReceiver withServiceUri(String serviceUri)

Set the serviceUri property: The URI where webhooks should be sent.

WebhookReceiver withTenantId(String tenantId)

Set the tenantId property: Indicates the tenant id for aad auth.

WebhookReceiver withUseAadAuth(Boolean useAadAuth)

Set the useAadAuth property: Indicates whether or not use AAD authentication.

WebhookReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)

Set the useCommonAlertSchema property: Indicates whether to use common alert schema.

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:

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:

IOException

- If the deserialized JSON object was missing any required properties.

identifierUri

public String identifierUri()

Get the identifierUri property: Indicates the identifier uri for aad auth.

Returns:

the identifierUri value.

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:

the name value.

objectId

public String objectId()

Get the objectId property: Indicates the webhook app object Id for aad auth.

Returns:

the objectId value.

serviceUri

public String serviceUri()

Get the serviceUri property: The URI where webhooks should be sent.

Returns:

the serviceUri value.

tenantId

public String tenantId()

Get the tenantId property: Indicates the tenant id for aad auth.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

useAadAuth

public Boolean useAadAuth()

Get the useAadAuth property: Indicates whether or not use AAD authentication.

Returns:

the useAadAuth value.

useCommonAlertSchema

public Boolean useCommonAlertSchema()

Get the useCommonAlertSchema property: Indicates whether to use common alert schema.

Returns:

the useCommonAlertSchema value.

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:

identifierUri - the identifierUri value to set.

Returns:

the WebhookReceiver object itself.

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:

name - the name value to set.

Returns:

the WebhookReceiver object itself.

withObjectId

public WebhookReceiver withObjectId(String objectId)

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.

withServiceUri

public WebhookReceiver withServiceUri(String serviceUri)

Set the serviceUri property: The URI where webhooks should be sent.

Parameters:

serviceUri - the serviceUri value to set.

Returns:

the WebhookReceiver object itself.

withTenantId

public WebhookReceiver withTenantId(String tenantId)

Set the tenantId property: Indicates the tenant id for aad auth.

Parameters:

tenantId - the tenantId value to set.

Returns:

the WebhookReceiver object itself.

withUseAadAuth

public WebhookReceiver withUseAadAuth(Boolean useAadAuth)

Set the useAadAuth property: Indicates whether or not use AAD authentication.

Parameters:

useAadAuth - the useAadAuth value to set.

Returns:

the WebhookReceiver object itself.

withUseCommonAlertSchema

public WebhookReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)

Set the useCommonAlertSchema property: Indicates whether to use common alert schema.

Parameters:

useCommonAlertSchema - the useCommonAlertSchema value to set.

Returns:

the WebhookReceiver object itself.

Applies to