All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azurenative.securityinsights.inputs.WebhookArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.securityinsights.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Detail about the webhook object.
 * 
 */
public final class WebhookArgs extends com.pulumi.resources.ResourceArgs {

    public static final WebhookArgs Empty = new WebhookArgs();

    /**
     * A flag to instruct the backend service to rotate webhook secret.
     * 
     */
    @Import(name="rotateWebhookSecret")
    private @Nullable Output rotateWebhookSecret;

    /**
     * @return A flag to instruct the backend service to rotate webhook secret.
     * 
     */
    public Optional> rotateWebhookSecret() {
        return Optional.ofNullable(this.rotateWebhookSecret);
    }

    /**
     * Unique identifier for the webhook.
     * 
     */
    @Import(name="webhookId")
    private @Nullable Output webhookId;

    /**
     * @return Unique identifier for the webhook.
     * 
     */
    public Optional> webhookId() {
        return Optional.ofNullable(this.webhookId);
    }

    /**
     * Time when the webhook secret was updated.
     * 
     */
    @Import(name="webhookSecretUpdateTime")
    private @Nullable Output webhookSecretUpdateTime;

    /**
     * @return Time when the webhook secret was updated.
     * 
     */
    public Optional> webhookSecretUpdateTime() {
        return Optional.ofNullable(this.webhookSecretUpdateTime);
    }

    /**
     * URL that gets invoked by the webhook.
     * 
     */
    @Import(name="webhookUrl")
    private @Nullable Output webhookUrl;

    /**
     * @return URL that gets invoked by the webhook.
     * 
     */
    public Optional> webhookUrl() {
        return Optional.ofNullable(this.webhookUrl);
    }

    private WebhookArgs() {}

    private WebhookArgs(WebhookArgs $) {
        this.rotateWebhookSecret = $.rotateWebhookSecret;
        this.webhookId = $.webhookId;
        this.webhookSecretUpdateTime = $.webhookSecretUpdateTime;
        this.webhookUrl = $.webhookUrl;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(WebhookArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private WebhookArgs $;

        public Builder() {
            $ = new WebhookArgs();
        }

        public Builder(WebhookArgs defaults) {
            $ = new WebhookArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param rotateWebhookSecret A flag to instruct the backend service to rotate webhook secret.
         * 
         * @return builder
         * 
         */
        public Builder rotateWebhookSecret(@Nullable Output rotateWebhookSecret) {
            $.rotateWebhookSecret = rotateWebhookSecret;
            return this;
        }

        /**
         * @param rotateWebhookSecret A flag to instruct the backend service to rotate webhook secret.
         * 
         * @return builder
         * 
         */
        public Builder rotateWebhookSecret(Boolean rotateWebhookSecret) {
            return rotateWebhookSecret(Output.of(rotateWebhookSecret));
        }

        /**
         * @param webhookId Unique identifier for the webhook.
         * 
         * @return builder
         * 
         */
        public Builder webhookId(@Nullable Output webhookId) {
            $.webhookId = webhookId;
            return this;
        }

        /**
         * @param webhookId Unique identifier for the webhook.
         * 
         * @return builder
         * 
         */
        public Builder webhookId(String webhookId) {
            return webhookId(Output.of(webhookId));
        }

        /**
         * @param webhookSecretUpdateTime Time when the webhook secret was updated.
         * 
         * @return builder
         * 
         */
        public Builder webhookSecretUpdateTime(@Nullable Output webhookSecretUpdateTime) {
            $.webhookSecretUpdateTime = webhookSecretUpdateTime;
            return this;
        }

        /**
         * @param webhookSecretUpdateTime Time when the webhook secret was updated.
         * 
         * @return builder
         * 
         */
        public Builder webhookSecretUpdateTime(String webhookSecretUpdateTime) {
            return webhookSecretUpdateTime(Output.of(webhookSecretUpdateTime));
        }

        /**
         * @param webhookUrl URL that gets invoked by the webhook.
         * 
         * @return builder
         * 
         */
        public Builder webhookUrl(@Nullable Output webhookUrl) {
            $.webhookUrl = webhookUrl;
            return this;
        }

        /**
         * @param webhookUrl URL that gets invoked by the webhook.
         * 
         * @return builder
         * 
         */
        public Builder webhookUrl(String webhookUrl) {
            return webhookUrl(Output.of(webhookUrl));
        }

        public WebhookArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy