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

com.pulumi.azurenative.datafactory.inputs.MapperPolicyArgs 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.datafactory.inputs;

import com.pulumi.azurenative.datafactory.inputs.MapperPolicyRecurrenceArgs;
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;


/**
 * CDC Policy.
 * 
 */
public final class MapperPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final MapperPolicyArgs Empty = new MapperPolicyArgs();

    /**
     * Mode of running the CDC: batch vs continuous.
     * 
     */
    @Import(name="mode")
    private @Nullable Output mode;

    /**
     * @return Mode of running the CDC: batch vs continuous.
     * 
     */
    public Optional> mode() {
        return Optional.ofNullable(this.mode);
    }

    /**
     * Defines the frequency and interval for running the CDC for batch mode.
     * 
     */
    @Import(name="recurrence")
    private @Nullable Output recurrence;

    /**
     * @return Defines the frequency and interval for running the CDC for batch mode.
     * 
     */
    public Optional> recurrence() {
        return Optional.ofNullable(this.recurrence);
    }

    private MapperPolicyArgs() {}

    private MapperPolicyArgs(MapperPolicyArgs $) {
        this.mode = $.mode;
        this.recurrence = $.recurrence;
    }

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

    public static final class Builder {
        private MapperPolicyArgs $;

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

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

        /**
         * @param mode Mode of running the CDC: batch vs continuous.
         * 
         * @return builder
         * 
         */
        public Builder mode(@Nullable Output mode) {
            $.mode = mode;
            return this;
        }

        /**
         * @param mode Mode of running the CDC: batch vs continuous.
         * 
         * @return builder
         * 
         */
        public Builder mode(String mode) {
            return mode(Output.of(mode));
        }

        /**
         * @param recurrence Defines the frequency and interval for running the CDC for batch mode.
         * 
         * @return builder
         * 
         */
        public Builder recurrence(@Nullable Output recurrence) {
            $.recurrence = recurrence;
            return this;
        }

        /**
         * @param recurrence Defines the frequency and interval for running the CDC for batch mode.
         * 
         * @return builder
         * 
         */
        public Builder recurrence(MapperPolicyRecurrenceArgs recurrence) {
            return recurrence(Output.of(recurrence));
        }

        public MapperPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy