Partilhar via


AutomationRunbookReceiver Class

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

Implements

public final class AutomationRunbookReceiver
implements JsonSerializable<AutomationRunbookReceiver>

The Azure Automation Runbook notification receiver.

Constructor Summary

Constructor Description
AutomationRunbookReceiver()

Creates an instance of AutomationRunbookReceiver class.

Method Summary

Modifier and Type Method and Description
String automationAccountId()

Get the automationAccountId property: The Azure automation account Id which holds this runbook and authenticate to Azure resource.

static AutomationRunbookReceiver fromJson(JsonReader jsonReader)

Reads an instance of AutomationRunbookReceiver from the JsonReader.

boolean isGlobalRunbook()

Get the isGlobalRunbook property: Indicates whether this instance is global runbook.

String name()

Get the name property: Indicates name of the webhook.

String runbookName()

Get the runbookName property: The name for this runbook.

String serviceUri()

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

JsonWriter toJson(JsonWriter jsonWriter)
Boolean useCommonAlertSchema()

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

void validate()

Validates the instance.

String webhookResourceId()

Get the webhookResourceId property: The resource id for webhook linked to this runbook.

AutomationRunbookReceiver withAutomationAccountId(String automationAccountId)

Set the automationAccountId property: The Azure automation account Id which holds this runbook and authenticate to Azure resource.

AutomationRunbookReceiver withIsGlobalRunbook(boolean isGlobalRunbook)

Set the isGlobalRunbook property: Indicates whether this instance is global runbook.

AutomationRunbookReceiver withName(String name)

Set the name property: Indicates name of the webhook.

AutomationRunbookReceiver withRunbookName(String runbookName)

Set the runbookName property: The name for this runbook.

AutomationRunbookReceiver withServiceUri(String serviceUri)

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

AutomationRunbookReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)

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

AutomationRunbookReceiver withWebhookResourceId(String webhookResourceId)

Set the webhookResourceId property: The resource id for webhook linked to this runbook.

Methods inherited from java.lang.Object

Constructor Details

AutomationRunbookReceiver

public AutomationRunbookReceiver()

Creates an instance of AutomationRunbookReceiver class.

Method Details

automationAccountId

public String automationAccountId()

Get the automationAccountId property: The Azure automation account Id which holds this runbook and authenticate to Azure resource.

Returns:

the automationAccountId value.

fromJson

public static AutomationRunbookReceiver fromJson(JsonReader jsonReader)

Reads an instance of AutomationRunbookReceiver from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AutomationRunbookReceiver 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.

isGlobalRunbook

public boolean isGlobalRunbook()

Get the isGlobalRunbook property: Indicates whether this instance is global runbook.

Returns:

the isGlobalRunbook value.

name

public String name()

Get the name property: Indicates name of the webhook.

Returns:

the name value.

runbookName

public String runbookName()

Get the runbookName property: The name for this runbook.

Returns:

the runbookName value.

serviceUri

public String serviceUri()

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

Returns:

the serviceUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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.

webhookResourceId

public String webhookResourceId()

Get the webhookResourceId property: The resource id for webhook linked to this runbook.

Returns:

the webhookResourceId value.

withAutomationAccountId

public AutomationRunbookReceiver withAutomationAccountId(String automationAccountId)

Set the automationAccountId property: The Azure automation account Id which holds this runbook and authenticate to Azure resource.

Parameters:

automationAccountId - the automationAccountId value to set.

Returns:

the AutomationRunbookReceiver object itself.

withIsGlobalRunbook

public AutomationRunbookReceiver withIsGlobalRunbook(boolean isGlobalRunbook)

Set the isGlobalRunbook property: Indicates whether this instance is global runbook.

Parameters:

isGlobalRunbook - the isGlobalRunbook value to set.

Returns:

the AutomationRunbookReceiver object itself.

withName

public AutomationRunbookReceiver withName(String name)

Set the name property: Indicates name of the webhook.

Parameters:

name - the name value to set.

Returns:

the AutomationRunbookReceiver object itself.

withRunbookName

public AutomationRunbookReceiver withRunbookName(String runbookName)

Set the runbookName property: The name for this runbook.

Parameters:

runbookName - the runbookName value to set.

Returns:

the AutomationRunbookReceiver object itself.

withServiceUri

public AutomationRunbookReceiver withServiceUri(String serviceUri)

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

Parameters:

serviceUri - the serviceUri value to set.

Returns:

the AutomationRunbookReceiver object itself.

withUseCommonAlertSchema

public AutomationRunbookReceiver withUseCommonAlertSchema(Boolean useCommonAlertSchema)

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

Parameters:

useCommonAlertSchema - the useCommonAlertSchema value to set.

Returns:

the AutomationRunbookReceiver object itself.

withWebhookResourceId

public AutomationRunbookReceiver withWebhookResourceId(String webhookResourceId)

Set the webhookResourceId property: The resource id for webhook linked to this runbook.

Parameters:

webhookResourceId - the webhookResourceId value to set.

Returns:

the AutomationRunbookReceiver object itself.

Applies to