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

com.pulumi.azurenative.datafactory.inputs.MapperConnectionArgs 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.enums.ConnectionType;
import com.pulumi.azurenative.datafactory.inputs.LinkedServiceReferenceArgs;
import com.pulumi.azurenative.datafactory.inputs.MapperDslConnectorPropertiesArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Source connection details.
 * 
 */
public final class MapperConnectionArgs extends com.pulumi.resources.ResourceArgs {

    public static final MapperConnectionArgs Empty = new MapperConnectionArgs();

    /**
     * List of name/value pairs for connection properties.
     * 
     */
    @Import(name="commonDslConnectorProperties")
    private @Nullable Output> commonDslConnectorProperties;

    /**
     * @return List of name/value pairs for connection properties.
     * 
     */
    public Optional>> commonDslConnectorProperties() {
        return Optional.ofNullable(this.commonDslConnectorProperties);
    }

    /**
     * A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported.
     * 
     */
    @Import(name="isInlineDataset")
    private @Nullable Output isInlineDataset;

    /**
     * @return A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported.
     * 
     */
    public Optional> isInlineDataset() {
        return Optional.ofNullable(this.isInlineDataset);
    }

    /**
     * Linked service reference.
     * 
     */
    @Import(name="linkedService")
    private @Nullable Output linkedService;

    /**
     * @return Linked service reference.
     * 
     */
    public Optional> linkedService() {
        return Optional.ofNullable(this.linkedService);
    }

    /**
     * Type of the linked service e.g.: AzureBlobFS.
     * 
     */
    @Import(name="linkedServiceType")
    private @Nullable Output linkedServiceType;

    /**
     * @return Type of the linked service e.g.: AzureBlobFS.
     * 
     */
    public Optional> linkedServiceType() {
        return Optional.ofNullable(this.linkedServiceType);
    }

    /**
     * Type of connection via linked service or dataset.
     * 
     */
    @Import(name="type", required=true)
    private Output> type;

    /**
     * @return Type of connection via linked service or dataset.
     * 
     */
    public Output> type() {
        return this.type;
    }

    private MapperConnectionArgs() {}

    private MapperConnectionArgs(MapperConnectionArgs $) {
        this.commonDslConnectorProperties = $.commonDslConnectorProperties;
        this.isInlineDataset = $.isInlineDataset;
        this.linkedService = $.linkedService;
        this.linkedServiceType = $.linkedServiceType;
        this.type = $.type;
    }

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

    public static final class Builder {
        private MapperConnectionArgs $;

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

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

        /**
         * @param commonDslConnectorProperties List of name/value pairs for connection properties.
         * 
         * @return builder
         * 
         */
        public Builder commonDslConnectorProperties(@Nullable Output> commonDslConnectorProperties) {
            $.commonDslConnectorProperties = commonDslConnectorProperties;
            return this;
        }

        /**
         * @param commonDslConnectorProperties List of name/value pairs for connection properties.
         * 
         * @return builder
         * 
         */
        public Builder commonDslConnectorProperties(List commonDslConnectorProperties) {
            return commonDslConnectorProperties(Output.of(commonDslConnectorProperties));
        }

        /**
         * @param commonDslConnectorProperties List of name/value pairs for connection properties.
         * 
         * @return builder
         * 
         */
        public Builder commonDslConnectorProperties(MapperDslConnectorPropertiesArgs... commonDslConnectorProperties) {
            return commonDslConnectorProperties(List.of(commonDslConnectorProperties));
        }

        /**
         * @param isInlineDataset A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported.
         * 
         * @return builder
         * 
         */
        public Builder isInlineDataset(@Nullable Output isInlineDataset) {
            $.isInlineDataset = isInlineDataset;
            return this;
        }

        /**
         * @param isInlineDataset A boolean indicating whether linked service is of type inline dataset. Currently only inline datasets are supported.
         * 
         * @return builder
         * 
         */
        public Builder isInlineDataset(Boolean isInlineDataset) {
            return isInlineDataset(Output.of(isInlineDataset));
        }

        /**
         * @param linkedService Linked service reference.
         * 
         * @return builder
         * 
         */
        public Builder linkedService(@Nullable Output linkedService) {
            $.linkedService = linkedService;
            return this;
        }

        /**
         * @param linkedService Linked service reference.
         * 
         * @return builder
         * 
         */
        public Builder linkedService(LinkedServiceReferenceArgs linkedService) {
            return linkedService(Output.of(linkedService));
        }

        /**
         * @param linkedServiceType Type of the linked service e.g.: AzureBlobFS.
         * 
         * @return builder
         * 
         */
        public Builder linkedServiceType(@Nullable Output linkedServiceType) {
            $.linkedServiceType = linkedServiceType;
            return this;
        }

        /**
         * @param linkedServiceType Type of the linked service e.g.: AzureBlobFS.
         * 
         * @return builder
         * 
         */
        public Builder linkedServiceType(String linkedServiceType) {
            return linkedServiceType(Output.of(linkedServiceType));
        }

        /**
         * @param type Type of connection via linked service or dataset.
         * 
         * @return builder
         * 
         */
        public Builder type(Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Type of connection via linked service or dataset.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Type of connection via linked service or dataset.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Type of connection via linked service or dataset.
         * 
         * @return builder
         * 
         */
        public Builder type(ConnectionType type) {
            return type(Either.ofRight(type));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy