Class WebhookReceiver


  • public final class WebhookReceiver
    extends Object
    A webhook receiver.
    • Constructor Detail

      • WebhookReceiver

        public WebhookReceiver()
    • Method Detail

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