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

com.pulumi.azurenative.customerinsights.inputs.ConnectorMappingErrorManagementArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.customerinsights.inputs;

import com.pulumi.azurenative.customerinsights.enums.ErrorManagementTypes;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * The error management.
 * 
 */
public final class ConnectorMappingErrorManagementArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectorMappingErrorManagementArgs Empty = new ConnectorMappingErrorManagementArgs();

    /**
     * The error limit allowed while importing data.
     * 
     */
    @Import(name="errorLimit")
    private @Nullable Output errorLimit;

    /**
     * @return The error limit allowed while importing data.
     * 
     */
    public Optional> errorLimit() {
        return Optional.ofNullable(this.errorLimit);
    }

    /**
     * The type of error management to use for the mapping.
     * 
     */
    @Import(name="errorManagementType", required=true)
    private Output errorManagementType;

    /**
     * @return The type of error management to use for the mapping.
     * 
     */
    public Output errorManagementType() {
        return this.errorManagementType;
    }

    private ConnectorMappingErrorManagementArgs() {}

    private ConnectorMappingErrorManagementArgs(ConnectorMappingErrorManagementArgs $) {
        this.errorLimit = $.errorLimit;
        this.errorManagementType = $.errorManagementType;
    }

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

    public static final class Builder {
        private ConnectorMappingErrorManagementArgs $;

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

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

        /**
         * @param errorLimit The error limit allowed while importing data.
         * 
         * @return builder
         * 
         */
        public Builder errorLimit(@Nullable Output errorLimit) {
            $.errorLimit = errorLimit;
            return this;
        }

        /**
         * @param errorLimit The error limit allowed while importing data.
         * 
         * @return builder
         * 
         */
        public Builder errorLimit(Integer errorLimit) {
            return errorLimit(Output.of(errorLimit));
        }

        /**
         * @param errorManagementType The type of error management to use for the mapping.
         * 
         * @return builder
         * 
         */
        public Builder errorManagementType(Output errorManagementType) {
            $.errorManagementType = errorManagementType;
            return this;
        }

        /**
         * @param errorManagementType The type of error management to use for the mapping.
         * 
         * @return builder
         * 
         */
        public Builder errorManagementType(ErrorManagementTypes errorManagementType) {
            return errorManagementType(Output.of(errorManagementType));
        }

        public ConnectorMappingErrorManagementArgs build() {
            if ($.errorManagementType == null) {
                throw new MissingRequiredPropertyException("ConnectorMappingErrorManagementArgs", "errorManagementType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy