// *** 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.gcp.cloudbuild.inputs;

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


public final class TriggerWebhookConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final TriggerWebhookConfigArgs Empty = new TriggerWebhookConfigArgs();

    /**
     * Resource name for the secret required as a URL parameter.
     * 
     */
    @Import(name="secret", required=true)
    private Output<String> secret;

    /**
     * @return Resource name for the secret required as a URL parameter.
     * 
     */
    public Output<String> secret() {
        return this.secret;
    }

    /**
     * (Output)
     * Potential issues with the underlying Pub/Sub subscription configuration.
     * Only populated on get requests.
     * 
     */
    @Import(name="state")
    private @Nullable Output<String> state;

    /**
     * @return (Output)
     * Potential issues with the underlying Pub/Sub subscription configuration.
     * Only populated on get requests.
     * 
     */
    public Optional<Output<String>> state() {
        return Optional.ofNullable(this.state);
    }

    private TriggerWebhookConfigArgs() {}

    private TriggerWebhookConfigArgs(TriggerWebhookConfigArgs $) {
        this.secret = $.secret;
        this.state = $.state;
    }

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

    public static final class Builder {
        private TriggerWebhookConfigArgs $;

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

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

        /**
         * @param secret Resource name for the secret required as a URL parameter.
         * 
         * @return builder
         * 
         */
        public Builder secret(Output<String> secret) {
            $.secret = secret;
            return this;
        }

        /**
         * @param secret Resource name for the secret required as a URL parameter.
         * 
         * @return builder
         * 
         */
        public Builder secret(String secret) {
            return secret(Output.of(secret));
        }

        /**
         * @param state (Output)
         * Potential issues with the underlying Pub/Sub subscription configuration.
         * Only populated on get requests.
         * 
         * @return builder
         * 
         */
        public Builder state(@Nullable Output<String> state) {
            $.state = state;
            return this;
        }

        /**
         * @param state (Output)
         * Potential issues with the underlying Pub/Sub subscription configuration.
         * Only populated on get requests.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Output.of(state));
        }

        public TriggerWebhookConfigArgs build() {
            $.secret = Objects.requireNonNull($.secret, "expected parameter 'secret' to be non-null");
            return $;
        }
    }

}
