Class AutomationRunbookReceiver
java.lang.Object
com.azure.resourcemanager.monitor.models.AutomationRunbookReceiver
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AutomationRunbookReceiver>
public final class AutomationRunbookReceiver
extends Object
implements com.azure.json.JsonSerializable<AutomationRunbookReceiver>
The Azure Automation Runbook notification receiver.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AutomationRunbookReceiver class. -
Method Summary
Modifier and TypeMethodDescriptionGet the automationAccountId property: The Azure automation account Id which holds this runbook and authenticate to Azure resource.static AutomationRunbookReceiver
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AutomationRunbookReceiver from the JsonReader.boolean
Get the isGlobalRunbook property: Indicates whether this instance is global runbook.name()
Get the name property: Indicates name of the webhook.Get the runbookName property: The name for this runbook.Get the serviceUri property: The URI where webhooks should be sent.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Get the useCommonAlertSchema property: Indicates whether to use common alert schema.void
validate()
Validates the instance.Get the webhookResourceId property: The resource id for webhook linked to this runbook.withAutomationAccountId
(String automationAccountId) Set the automationAccountId property: The Azure automation account Id which holds this runbook and authenticate to Azure resource.withIsGlobalRunbook
(boolean isGlobalRunbook) Set the isGlobalRunbook property: Indicates whether this instance is global runbook.Set the name property: Indicates name of the webhook.withRunbookName
(String runbookName) Set the runbookName property: The name for this runbook.withServiceUri
(String serviceUri) Set the serviceUri property: The URI where webhooks should be sent.withUseCommonAlertSchema
(Boolean useCommonAlertSchema) Set the useCommonAlertSchema property: Indicates whether to use common alert schema.withWebhookResourceId
(String webhookResourceId) Set the webhookResourceId property: The resource id for webhook linked to this runbook.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AutomationRunbookReceiver
public AutomationRunbookReceiver()Creates an instance of AutomationRunbookReceiver class.
-
-
Method Details
-
automationAccountId
Get the automationAccountId property: The Azure automation account Id which holds this runbook and authenticate to Azure resource.- Returns:
- the automationAccountId value.
-
withAutomationAccountId
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.
-
runbookName
Get the runbookName property: The name for this runbook.- Returns:
- the runbookName value.
-
withRunbookName
Set the runbookName property: The name for this runbook.- Parameters:
runbookName
- the runbookName value to set.- Returns:
- the AutomationRunbookReceiver object itself.
-
webhookResourceId
Get the webhookResourceId property: The resource id for webhook linked to this runbook.- Returns:
- the webhookResourceId value.
-
withWebhookResourceId
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.
-
isGlobalRunbook
public boolean isGlobalRunbook()Get the isGlobalRunbook property: Indicates whether this instance is global runbook.- Returns:
- the isGlobalRunbook value.
-
withIsGlobalRunbook
Set the isGlobalRunbook property: Indicates whether this instance is global runbook.- Parameters:
isGlobalRunbook
- the isGlobalRunbook value to set.- Returns:
- the AutomationRunbookReceiver object itself.
-
name
Get the name property: Indicates name of the webhook.- Returns:
- the name value.
-
withName
Set the name property: Indicates name of the webhook.- Parameters:
name
- the name value to set.- Returns:
- the AutomationRunbookReceiver 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 AutomationRunbookReceiver 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 AutomationRunbookReceiver object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<AutomationRunbookReceiver>
- Throws:
IOException
-
fromJson
public static AutomationRunbookReceiver fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the AutomationRunbookReceiver.
-