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

com.pulumi.azurenative.datafactory.FactoryArgs Maven / Gradle / Ivy

The 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;

import com.pulumi.azurenative.datafactory.enums.PublicNetworkAccess;
import com.pulumi.azurenative.datafactory.inputs.EncryptionConfigurationArgs;
import com.pulumi.azurenative.datafactory.inputs.FactoryGitHubConfigurationArgs;
import com.pulumi.azurenative.datafactory.inputs.FactoryIdentityArgs;
import com.pulumi.azurenative.datafactory.inputs.FactoryVSTSConfigurationArgs;
import com.pulumi.azurenative.datafactory.inputs.GlobalParameterSpecificationArgs;
import com.pulumi.azurenative.datafactory.inputs.PurviewConfigurationArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class FactoryArgs extends com.pulumi.resources.ResourceArgs {

    public static final FactoryArgs Empty = new FactoryArgs();

    /**
     * Properties to enable Customer Managed Key for the factory.
     * 
     */
    @Import(name="encryption")
    private @Nullable Output encryption;

    /**
     * @return Properties to enable Customer Managed Key for the factory.
     * 
     */
    public Optional> encryption() {
        return Optional.ofNullable(this.encryption);
    }

    /**
     * The factory name.
     * 
     */
    @Import(name="factoryName")
    private @Nullable Output factoryName;

    /**
     * @return The factory name.
     * 
     */
    public Optional> factoryName() {
        return Optional.ofNullable(this.factoryName);
    }

    /**
     * List of parameters for factory.
     * 
     */
    @Import(name="globalParameters")
    private @Nullable Output> globalParameters;

    /**
     * @return List of parameters for factory.
     * 
     */
    public Optional>> globalParameters() {
        return Optional.ofNullable(this.globalParameters);
    }

    /**
     * Managed service identity of the factory.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return Managed service identity of the factory.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The resource location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Whether or not public network access is allowed for the data factory.
     * 
     */
    @Import(name="publicNetworkAccess")
    private @Nullable Output> publicNetworkAccess;

    /**
     * @return Whether or not public network access is allowed for the data factory.
     * 
     */
    public Optional>> publicNetworkAccess() {
        return Optional.ofNullable(this.publicNetworkAccess);
    }

    /**
     * Purview information of the factory.
     * 
     */
    @Import(name="purviewConfiguration")
    private @Nullable Output purviewConfiguration;

    /**
     * @return Purview information of the factory.
     * 
     */
    public Optional> purviewConfiguration() {
        return Optional.ofNullable(this.purviewConfiguration);
    }

    /**
     * Git repo information of the factory.
     * 
     */
    @Import(name="repoConfiguration")
    private @Nullable Output> repoConfiguration;

    /**
     * @return Git repo information of the factory.
     * 
     */
    public Optional>> repoConfiguration() {
        return Optional.ofNullable(this.repoConfiguration);
    }

    /**
     * The resource group name.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The resource group name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private FactoryArgs() {}

    private FactoryArgs(FactoryArgs $) {
        this.encryption = $.encryption;
        this.factoryName = $.factoryName;
        this.globalParameters = $.globalParameters;
        this.identity = $.identity;
        this.location = $.location;
        this.publicNetworkAccess = $.publicNetworkAccess;
        this.purviewConfiguration = $.purviewConfiguration;
        this.repoConfiguration = $.repoConfiguration;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private FactoryArgs $;

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

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

        /**
         * @param encryption Properties to enable Customer Managed Key for the factory.
         * 
         * @return builder
         * 
         */
        public Builder encryption(@Nullable Output encryption) {
            $.encryption = encryption;
            return this;
        }

        /**
         * @param encryption Properties to enable Customer Managed Key for the factory.
         * 
         * @return builder
         * 
         */
        public Builder encryption(EncryptionConfigurationArgs encryption) {
            return encryption(Output.of(encryption));
        }

        /**
         * @param factoryName The factory name.
         * 
         * @return builder
         * 
         */
        public Builder factoryName(@Nullable Output factoryName) {
            $.factoryName = factoryName;
            return this;
        }

        /**
         * @param factoryName The factory name.
         * 
         * @return builder
         * 
         */
        public Builder factoryName(String factoryName) {
            return factoryName(Output.of(factoryName));
        }

        /**
         * @param globalParameters List of parameters for factory.
         * 
         * @return builder
         * 
         */
        public Builder globalParameters(@Nullable Output> globalParameters) {
            $.globalParameters = globalParameters;
            return this;
        }

        /**
         * @param globalParameters List of parameters for factory.
         * 
         * @return builder
         * 
         */
        public Builder globalParameters(Map globalParameters) {
            return globalParameters(Output.of(globalParameters));
        }

        /**
         * @param identity Managed service identity of the factory.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Managed service identity of the factory.
         * 
         * @return builder
         * 
         */
        public Builder identity(FactoryIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param location The resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The resource location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for the data factory.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(@Nullable Output> publicNetworkAccess) {
            $.publicNetworkAccess = publicNetworkAccess;
            return this;
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for the data factory.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(Either publicNetworkAccess) {
            return publicNetworkAccess(Output.of(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for the data factory.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(String publicNetworkAccess) {
            return publicNetworkAccess(Either.ofLeft(publicNetworkAccess));
        }

        /**
         * @param publicNetworkAccess Whether or not public network access is allowed for the data factory.
         * 
         * @return builder
         * 
         */
        public Builder publicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
            return publicNetworkAccess(Either.ofRight(publicNetworkAccess));
        }

        /**
         * @param purviewConfiguration Purview information of the factory.
         * 
         * @return builder
         * 
         */
        public Builder purviewConfiguration(@Nullable Output purviewConfiguration) {
            $.purviewConfiguration = purviewConfiguration;
            return this;
        }

        /**
         * @param purviewConfiguration Purview information of the factory.
         * 
         * @return builder
         * 
         */
        public Builder purviewConfiguration(PurviewConfigurationArgs purviewConfiguration) {
            return purviewConfiguration(Output.of(purviewConfiguration));
        }

        /**
         * @param repoConfiguration Git repo information of the factory.
         * 
         * @return builder
         * 
         */
        public Builder repoConfiguration(@Nullable Output> repoConfiguration) {
            $.repoConfiguration = repoConfiguration;
            return this;
        }

        /**
         * @param repoConfiguration Git repo information of the factory.
         * 
         * @return builder
         * 
         */
        public Builder repoConfiguration(Either repoConfiguration) {
            return repoConfiguration(Output.of(repoConfiguration));
        }

        /**
         * @param repoConfiguration Git repo information of the factory.
         * 
         * @return builder
         * 
         */
        public Builder repoConfiguration(FactoryGitHubConfigurationArgs repoConfiguration) {
            return repoConfiguration(Either.ofLeft(repoConfiguration));
        }

        /**
         * @param repoConfiguration Git repo information of the factory.
         * 
         * @return builder
         * 
         */
        public Builder repoConfiguration(FactoryVSTSConfigurationArgs repoConfiguration) {
            return repoConfiguration(Either.ofRight(repoConfiguration));
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The resource group name.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags The resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags The resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy