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

com.pulumi.azurenative.documentdb.inputs.ConflictResolutionPolicyArgs 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.documentdb.inputs;

import com.pulumi.azurenative.documentdb.enums.ConflictResolutionMode;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The conflict resolution policy for the container.
 * 
 */
public final class ConflictResolutionPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConflictResolutionPolicyArgs Empty = new ConflictResolutionPolicyArgs();

    /**
     * The conflict resolution path in the case of LastWriterWins mode.
     * 
     */
    @Import(name="conflictResolutionPath")
    private @Nullable Output conflictResolutionPath;

    /**
     * @return The conflict resolution path in the case of LastWriterWins mode.
     * 
     */
    public Optional> conflictResolutionPath() {
        return Optional.ofNullable(this.conflictResolutionPath);
    }

    /**
     * The procedure to resolve conflicts in the case of custom mode.
     * 
     */
    @Import(name="conflictResolutionProcedure")
    private @Nullable Output conflictResolutionProcedure;

    /**
     * @return The procedure to resolve conflicts in the case of custom mode.
     * 
     */
    public Optional> conflictResolutionProcedure() {
        return Optional.ofNullable(this.conflictResolutionProcedure);
    }

    /**
     * Indicates the conflict resolution mode.
     * 
     */
    @Import(name="mode")
    private @Nullable Output> mode;

    /**
     * @return Indicates the conflict resolution mode.
     * 
     */
    public Optional>> mode() {
        return Optional.ofNullable(this.mode);
    }

    private ConflictResolutionPolicyArgs() {}

    private ConflictResolutionPolicyArgs(ConflictResolutionPolicyArgs $) {
        this.conflictResolutionPath = $.conflictResolutionPath;
        this.conflictResolutionProcedure = $.conflictResolutionProcedure;
        this.mode = $.mode;
    }

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

    public static final class Builder {
        private ConflictResolutionPolicyArgs $;

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

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

        /**
         * @param conflictResolutionPath The conflict resolution path in the case of LastWriterWins mode.
         * 
         * @return builder
         * 
         */
        public Builder conflictResolutionPath(@Nullable Output conflictResolutionPath) {
            $.conflictResolutionPath = conflictResolutionPath;
            return this;
        }

        /**
         * @param conflictResolutionPath The conflict resolution path in the case of LastWriterWins mode.
         * 
         * @return builder
         * 
         */
        public Builder conflictResolutionPath(String conflictResolutionPath) {
            return conflictResolutionPath(Output.of(conflictResolutionPath));
        }

        /**
         * @param conflictResolutionProcedure The procedure to resolve conflicts in the case of custom mode.
         * 
         * @return builder
         * 
         */
        public Builder conflictResolutionProcedure(@Nullable Output conflictResolutionProcedure) {
            $.conflictResolutionProcedure = conflictResolutionProcedure;
            return this;
        }

        /**
         * @param conflictResolutionProcedure The procedure to resolve conflicts in the case of custom mode.
         * 
         * @return builder
         * 
         */
        public Builder conflictResolutionProcedure(String conflictResolutionProcedure) {
            return conflictResolutionProcedure(Output.of(conflictResolutionProcedure));
        }

        /**
         * @param mode Indicates the conflict resolution mode.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output> mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode Indicates the conflict resolution mode.
         * 
         * @return builder
         * 
         */
        public Builder mode(Either mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param mode Indicates the conflict resolution mode.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Either.ofLeft(mode));
        }

        /**
         * @param mode Indicates the conflict resolution mode.
         * 
         * @return builder
         * 
         */
        public Builder mode(ConflictResolutionMode mode) {
            return mode(Either.ofRight(mode));
        }

        public ConflictResolutionPolicyArgs build() {
            $.mode = Codegen.stringProp("mode").left(ConflictResolutionMode.class).output().arg($.mode).def("LastWriterWins").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy