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

com.pulumi.aws.appsync.inputs.FunctionSyncConfigArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.appsync.inputs;

import com.pulumi.aws.appsync.inputs.FunctionSyncConfigLambdaConflictHandlerConfigArgs;
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 FunctionSyncConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final FunctionSyncConfigArgs Empty = new FunctionSyncConfigArgs();

    /**
     * Conflict Detection strategy to use. Valid values are `NONE` and `VERSION`.
     * 
     */
    @Import(name="conflictDetection")
    private @Nullable Output conflictDetection;

    /**
     * @return Conflict Detection strategy to use. Valid values are `NONE` and `VERSION`.
     * 
     */
    public Optional> conflictDetection() {
        return Optional.ofNullable(this.conflictDetection);
    }

    /**
     * Conflict Resolution strategy to perform in the event of a conflict. Valid values are `NONE`, `OPTIMISTIC_CONCURRENCY`, `AUTOMERGE`, and `LAMBDA`.
     * 
     */
    @Import(name="conflictHandler")
    private @Nullable Output conflictHandler;

    /**
     * @return Conflict Resolution strategy to perform in the event of a conflict. Valid values are `NONE`, `OPTIMISTIC_CONCURRENCY`, `AUTOMERGE`, and `LAMBDA`.
     * 
     */
    public Optional> conflictHandler() {
        return Optional.ofNullable(this.conflictHandler);
    }

    /**
     * Lambda Conflict Handler Config when configuring `LAMBDA` as the Conflict Handler. See Lambda Conflict Handler Config.
     * 
     */
    @Import(name="lambdaConflictHandlerConfig")
    private @Nullable Output lambdaConflictHandlerConfig;

    /**
     * @return Lambda Conflict Handler Config when configuring `LAMBDA` as the Conflict Handler. See Lambda Conflict Handler Config.
     * 
     */
    public Optional> lambdaConflictHandlerConfig() {
        return Optional.ofNullable(this.lambdaConflictHandlerConfig);
    }

    private FunctionSyncConfigArgs() {}

    private FunctionSyncConfigArgs(FunctionSyncConfigArgs $) {
        this.conflictDetection = $.conflictDetection;
        this.conflictHandler = $.conflictHandler;
        this.lambdaConflictHandlerConfig = $.lambdaConflictHandlerConfig;
    }

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

    public static final class Builder {
        private FunctionSyncConfigArgs $;

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

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

        /**
         * @param conflictDetection Conflict Detection strategy to use. Valid values are `NONE` and `VERSION`.
         * 
         * @return builder
         * 
         */
        public Builder conflictDetection(@Nullable Output conflictDetection) {
            $.conflictDetection = conflictDetection;
            return this;
        }

        /**
         * @param conflictDetection Conflict Detection strategy to use. Valid values are `NONE` and `VERSION`.
         * 
         * @return builder
         * 
         */
        public Builder conflictDetection(String conflictDetection) {
            return conflictDetection(Output.of(conflictDetection));
        }

        /**
         * @param conflictHandler Conflict Resolution strategy to perform in the event of a conflict. Valid values are `NONE`, `OPTIMISTIC_CONCURRENCY`, `AUTOMERGE`, and `LAMBDA`.
         * 
         * @return builder
         * 
         */
        public Builder conflictHandler(@Nullable Output conflictHandler) {
            $.conflictHandler = conflictHandler;
            return this;
        }

        /**
         * @param conflictHandler Conflict Resolution strategy to perform in the event of a conflict. Valid values are `NONE`, `OPTIMISTIC_CONCURRENCY`, `AUTOMERGE`, and `LAMBDA`.
         * 
         * @return builder
         * 
         */
        public Builder conflictHandler(String conflictHandler) {
            return conflictHandler(Output.of(conflictHandler));
        }

        /**
         * @param lambdaConflictHandlerConfig Lambda Conflict Handler Config when configuring `LAMBDA` as the Conflict Handler. See Lambda Conflict Handler Config.
         * 
         * @return builder
         * 
         */
        public Builder lambdaConflictHandlerConfig(@Nullable Output lambdaConflictHandlerConfig) {
            $.lambdaConflictHandlerConfig = lambdaConflictHandlerConfig;
            return this;
        }

        /**
         * @param lambdaConflictHandlerConfig Lambda Conflict Handler Config when configuring `LAMBDA` as the Conflict Handler. See Lambda Conflict Handler Config.
         * 
         * @return builder
         * 
         */
        public Builder lambdaConflictHandlerConfig(FunctionSyncConfigLambdaConflictHandlerConfigArgs lambdaConflictHandlerConfig) {
            return lambdaConflictHandlerConfig(Output.of(lambdaConflictHandlerConfig));
        }

        public FunctionSyncConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy