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

com.pulumi.azurenative.datafactory.inputs.MapperAttributeMappingArgs Maven / Gradle / Ivy

// *** 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.enums.MappingType;
import com.pulumi.azurenative.datafactory.inputs.MapperAttributeReferenceArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Source and target column mapping details.
 * 
 */
public final class MapperAttributeMappingArgs extends com.pulumi.resources.ResourceArgs {

    public static final MapperAttributeMappingArgs Empty = new MapperAttributeMappingArgs();

    /**
     * Reference of the source column used in the mapping. It is used for 'Direct' mapping type only.
     * 
     */
    @Import(name="attributeReference")
    private @Nullable Output attributeReference;

    /**
     * @return Reference of the source column used in the mapping. It is used for 'Direct' mapping type only.
     * 
     */
    public Optional> attributeReference() {
        return Optional.ofNullable(this.attributeReference);
    }

    /**
     * List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only.
     * 
     */
    @Import(name="attributeReferences")
    private @Nullable Output> attributeReferences;

    /**
     * @return List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only.
     * 
     */
    public Optional>> attributeReferences() {
        return Optional.ofNullable(this.attributeReferences);
    }

    /**
     * Expression used for 'Aggregate' and 'Derived' type mapping.
     * 
     */
    @Import(name="expression")
    private @Nullable Output expression;

    /**
     * @return Expression used for 'Aggregate' and 'Derived' type mapping.
     * 
     */
    public Optional> expression() {
        return Optional.ofNullable(this.expression);
    }

    /**
     * Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping.
     * 
     */
    @Import(name="functionName")
    private @Nullable Output functionName;

    /**
     * @return Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping.
     * 
     */
    public Optional> functionName() {
        return Optional.ofNullable(this.functionName);
    }

    /**
     * Name of the target column.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the target column.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'.
     * 
     */
    @Import(name="type")
    private @Nullable Output> type;

    /**
     * @return Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'.
     * 
     */
    public Optional>> type() {
        return Optional.ofNullable(this.type);
    }

    private MapperAttributeMappingArgs() {}

    private MapperAttributeMappingArgs(MapperAttributeMappingArgs $) {
        this.attributeReference = $.attributeReference;
        this.attributeReferences = $.attributeReferences;
        this.expression = $.expression;
        this.functionName = $.functionName;
        this.name = $.name;
        this.type = $.type;
    }

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

    public static final class Builder {
        private MapperAttributeMappingArgs $;

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

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

        /**
         * @param attributeReference Reference of the source column used in the mapping. It is used for 'Direct' mapping type only.
         * 
         * @return builder
         * 
         */
        public Builder attributeReference(@Nullable Output attributeReference) {
            $.attributeReference = attributeReference;
            return this;
        }

        /**
         * @param attributeReference Reference of the source column used in the mapping. It is used for 'Direct' mapping type only.
         * 
         * @return builder
         * 
         */
        public Builder attributeReference(MapperAttributeReferenceArgs attributeReference) {
            return attributeReference(Output.of(attributeReference));
        }

        /**
         * @param attributeReferences List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only.
         * 
         * @return builder
         * 
         */
        public Builder attributeReferences(@Nullable Output> attributeReferences) {
            $.attributeReferences = attributeReferences;
            return this;
        }

        /**
         * @param attributeReferences List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only.
         * 
         * @return builder
         * 
         */
        public Builder attributeReferences(List attributeReferences) {
            return attributeReferences(Output.of(attributeReferences));
        }

        /**
         * @param attributeReferences List of references for source columns. It is used for 'Derived' and 'Aggregate' type mappings only.
         * 
         * @return builder
         * 
         */
        public Builder attributeReferences(MapperAttributeReferenceArgs... attributeReferences) {
            return attributeReferences(List.of(attributeReferences));
        }

        /**
         * @param expression Expression used for 'Aggregate' and 'Derived' type mapping.
         * 
         * @return builder
         * 
         */
        public Builder expression(@Nullable Output expression) {
            $.expression = expression;
            return this;
        }

        /**
         * @param expression Expression used for 'Aggregate' and 'Derived' type mapping.
         * 
         * @return builder
         * 
         */
        public Builder expression(String expression) {
            return expression(Output.of(expression));
        }

        /**
         * @param functionName Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping.
         * 
         * @return builder
         * 
         */
        public Builder functionName(@Nullable Output functionName) {
            $.functionName = functionName;
            return this;
        }

        /**
         * @param functionName Name of the function used for 'Aggregate' and 'Derived' (except 'Advanced') type mapping.
         * 
         * @return builder
         * 
         */
        public Builder functionName(String functionName) {
            return functionName(Output.of(functionName));
        }

        /**
         * @param name Name of the target column.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the target column.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param type Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Type of the CDC attribute mapping. Note: 'Advanced' mapping type is also saved as 'Derived'.
         * 
         * @return builder
         * 
         */
        public Builder type(MappingType type) {
            return type(Either.ofRight(type));
        }

        public MapperAttributeMappingArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy