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 Details

    • WebhookReceiver

      public WebhookReceiver()
      Creates an instance of WebhookReceiver class.
  • Method Details

    • 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.
    • 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.
    • serviceUri

      public String serviceUri()
      Get the serviceUri property: The URI where webhooks should be sent.
      Returns:
      the serviceUri value.
    • 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.
    • useCommonAlertSchema

      public Boolean useCommonAlertSchema()
      Get the useCommonAlertSchema property: Indicates whether to use common alert schema.
      Returns:
      the useCommonAlertSchema value.
    • 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.
    • useAadAuth

      public Boolean useAadAuth()
      Get the useAadAuth property: Indicates whether or not use AAD authentication.
      Returns:
      the useAadAuth value.
    • 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.
    • objectId

      public String objectId()
      Get the objectId property: Indicates the webhook app object Id for aad auth.
      Returns:
      the objectId value.
    • 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.
    • identifierUri

      public String identifierUri()
      Get the identifierUri property: Indicates the identifier uri for aad auth.
      Returns:
      the identifierUri value.
    • 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.
    • tenantId

      public String tenantId()
      Get the tenantId property: Indicates the tenant id for aad auth.
      Returns:
      the tenantId value.
    • 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<WebhookReceiver>
      Throws:
      IOException
    • fromJson

      public static WebhookReceiver fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.