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

com.pulumi.azurenative.app.inputs.BuildConfigurationArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.app.inputs.EnvironmentVariableArgs;
import com.pulumi.azurenative.app.inputs.PreBuildStepArgs;
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;


/**
 * Configuration of the build.
 * 
 */
public final class BuildConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final BuildConfigurationArgs Empty = new BuildConfigurationArgs();

    /**
     * Base OS used to build and run the app.
     * 
     */
    @Import(name="baseOs")
    private @Nullable Output baseOs;

    /**
     * @return Base OS used to build and run the app.
     * 
     */
    public Optional> baseOs() {
        return Optional.ofNullable(this.baseOs);
    }

    /**
     * List of environment variables to be passed to the build.
     * 
     */
    @Import(name="environmentVariables")
    private @Nullable Output> environmentVariables;

    /**
     * @return List of environment variables to be passed to the build.
     * 
     */
    public Optional>> environmentVariables() {
        return Optional.ofNullable(this.environmentVariables);
    }

    /**
     * Platform to be used to build and run the app.
     * 
     */
    @Import(name="platform")
    private @Nullable Output platform;

    /**
     * @return Platform to be used to build and run the app.
     * 
     */
    public Optional> platform() {
        return Optional.ofNullable(this.platform);
    }

    /**
     * Platform version to be used to build and run the app.
     * 
     */
    @Import(name="platformVersion")
    private @Nullable Output platformVersion;

    /**
     * @return Platform version to be used to build and run the app.
     * 
     */
    public Optional> platformVersion() {
        return Optional.ofNullable(this.platformVersion);
    }

    /**
     * List of steps to perform before the build.
     * 
     */
    @Import(name="preBuildSteps")
    private @Nullable Output> preBuildSteps;

    /**
     * @return List of steps to perform before the build.
     * 
     */
    public Optional>> preBuildSteps() {
        return Optional.ofNullable(this.preBuildSteps);
    }

    private BuildConfigurationArgs() {}

    private BuildConfigurationArgs(BuildConfigurationArgs $) {
        this.baseOs = $.baseOs;
        this.environmentVariables = $.environmentVariables;
        this.platform = $.platform;
        this.platformVersion = $.platformVersion;
        this.preBuildSteps = $.preBuildSteps;
    }

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

    public static final class Builder {
        private BuildConfigurationArgs $;

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

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

        /**
         * @param baseOs Base OS used to build and run the app.
         * 
         * @return builder
         * 
         */
        public Builder baseOs(@Nullable Output baseOs) {
            $.baseOs = baseOs;
            return this;
        }

        /**
         * @param baseOs Base OS used to build and run the app.
         * 
         * @return builder
         * 
         */
        public Builder baseOs(String baseOs) {
            return baseOs(Output.of(baseOs));
        }

        /**
         * @param environmentVariables List of environment variables to be passed to the build.
         * 
         * @return builder
         * 
         */
        public Builder environmentVariables(@Nullable Output> environmentVariables) {
            $.environmentVariables = environmentVariables;
            return this;
        }

        /**
         * @param environmentVariables List of environment variables to be passed to the build.
         * 
         * @return builder
         * 
         */
        public Builder environmentVariables(List environmentVariables) {
            return environmentVariables(Output.of(environmentVariables));
        }

        /**
         * @param environmentVariables List of environment variables to be passed to the build.
         * 
         * @return builder
         * 
         */
        public Builder environmentVariables(EnvironmentVariableArgs... environmentVariables) {
            return environmentVariables(List.of(environmentVariables));
        }

        /**
         * @param platform Platform to be used to build and run the app.
         * 
         * @return builder
         * 
         */
        public Builder platform(@Nullable Output platform) {
            $.platform = platform;
            return this;
        }

        /**
         * @param platform Platform to be used to build and run the app.
         * 
         * @return builder
         * 
         */
        public Builder platform(String platform) {
            return platform(Output.of(platform));
        }

        /**
         * @param platformVersion Platform version to be used to build and run the app.
         * 
         * @return builder
         * 
         */
        public Builder platformVersion(@Nullable Output platformVersion) {
            $.platformVersion = platformVersion;
            return this;
        }

        /**
         * @param platformVersion Platform version to be used to build and run the app.
         * 
         * @return builder
         * 
         */
        public Builder platformVersion(String platformVersion) {
            return platformVersion(Output.of(platformVersion));
        }

        /**
         * @param preBuildSteps List of steps to perform before the build.
         * 
         * @return builder
         * 
         */
        public Builder preBuildSteps(@Nullable Output> preBuildSteps) {
            $.preBuildSteps = preBuildSteps;
            return this;
        }

        /**
         * @param preBuildSteps List of steps to perform before the build.
         * 
         * @return builder
         * 
         */
        public Builder preBuildSteps(List preBuildSteps) {
            return preBuildSteps(Output.of(preBuildSteps));
        }

        /**
         * @param preBuildSteps List of steps to perform before the build.
         * 
         * @return builder
         * 
         */
        public Builder preBuildSteps(PreBuildStepArgs... preBuildSteps) {
            return preBuildSteps(List.of(preBuildSteps));
        }

        public BuildConfigurationArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy