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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.secretmanager.inputs.SecretReplicationUserManagedArgs;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SecretReplicationArgs Empty = new SecretReplicationArgs();

    /**
     * The Secret will automatically be replicated without any restrictions.
     * 
     */
    @Import(name="automatic")
    private @Nullable Output<Boolean> automatic;

    /**
     * @return The Secret will automatically be replicated without any restrictions.
     * 
     */
    public Optional<Output<Boolean>> automatic() {
        return Optional.ofNullable(this.automatic);
    }

    /**
     * The Secret will be replicated to the regions specified by the user.
     * Structure is documented below.
     * 
     */
    @Import(name="userManaged")
    private @Nullable Output<SecretReplicationUserManagedArgs> userManaged;

    /**
     * @return The Secret will be replicated to the regions specified by the user.
     * Structure is documented below.
     * 
     */
    public Optional<Output<SecretReplicationUserManagedArgs>> userManaged() {
        return Optional.ofNullable(this.userManaged);
    }

    private SecretReplicationArgs() {}

    private SecretReplicationArgs(SecretReplicationArgs $) {
        this.automatic = $.automatic;
        this.userManaged = $.userManaged;
    }

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

    public static final class Builder {
        private SecretReplicationArgs $;

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

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

        /**
         * @param automatic The Secret will automatically be replicated without any restrictions.
         * 
         * @return builder
         * 
         */
        public Builder automatic(@Nullable Output<Boolean> automatic) {
            $.automatic = automatic;
            return this;
        }

        /**
         * @param automatic The Secret will automatically be replicated without any restrictions.
         * 
         * @return builder
         * 
         */
        public Builder automatic(Boolean automatic) {
            return automatic(Output.of(automatic));
        }

        /**
         * @param userManaged The Secret will be replicated to the regions specified by the user.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder userManaged(@Nullable Output<SecretReplicationUserManagedArgs> userManaged) {
            $.userManaged = userManaged;
            return this;
        }

        /**
         * @param userManaged The Secret will be replicated to the regions specified by the user.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder userManaged(SecretReplicationUserManagedArgs userManaged) {
            return userManaged(Output.of(userManaged));
        }

        public SecretReplicationArgs build() {
            return $;
        }
    }

}
