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

com.pulumi.azurenative.app.BuildArgs 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;

import com.pulumi.azurenative.app.inputs.BuildConfigurationArgs;
import com.pulumi.azurenative.app.inputs.ContainerRegistryWithCustomImageArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BuildArgs Empty = new BuildArgs();

    /**
     * The name of a build.
     * 
     */
    @Import(name="buildName")
    private @Nullable Output buildName;

    /**
     * @return The name of a build.
     * 
     */
    public Optional> buildName() {
        return Optional.ofNullable(this.buildName);
    }

    /**
     * The name of the builder.
     * 
     */
    @Import(name="builderName", required=true)
    private Output builderName;

    /**
     * @return The name of the builder.
     * 
     */
    public Output builderName() {
        return this.builderName;
    }

    /**
     * Configuration of the build.
     * 
     */
    @Import(name="configuration")
    private @Nullable Output configuration;

    /**
     * @return Configuration of the build.
     * 
     */
    public Optional> configuration() {
        return Optional.ofNullable(this.configuration);
    }

    /**
     * Container registry that the final image will be uploaded to.
     * 
     */
    @Import(name="destinationContainerRegistry")
    private @Nullable Output destinationContainerRegistry;

    /**
     * @return Container registry that the final image will be uploaded to.
     * 
     */
    public Optional> destinationContainerRegistry() {
        return Optional.ofNullable(this.destinationContainerRegistry);
    }

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

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private BuildArgs() {}

    private BuildArgs(BuildArgs $) {
        this.buildName = $.buildName;
        this.builderName = $.builderName;
        this.configuration = $.configuration;
        this.destinationContainerRegistry = $.destinationContainerRegistry;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private BuildArgs $;

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

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

        /**
         * @param buildName The name of a build.
         * 
         * @return builder
         * 
         */
        public Builder buildName(@Nullable Output buildName) {
            $.buildName = buildName;
            return this;
        }

        /**
         * @param buildName The name of a build.
         * 
         * @return builder
         * 
         */
        public Builder buildName(String buildName) {
            return buildName(Output.of(buildName));
        }

        /**
         * @param builderName The name of the builder.
         * 
         * @return builder
         * 
         */
        public Builder builderName(Output builderName) {
            $.builderName = builderName;
            return this;
        }

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

        /**
         * @param configuration Configuration of the build.
         * 
         * @return builder
         * 
         */
        public Builder configuration(@Nullable Output configuration) {
            $.configuration = configuration;
            return this;
        }

        /**
         * @param configuration Configuration of the build.
         * 
         * @return builder
         * 
         */
        public Builder configuration(BuildConfigurationArgs configuration) {
            return configuration(Output.of(configuration));
        }

        /**
         * @param destinationContainerRegistry Container registry that the final image will be uploaded to.
         * 
         * @return builder
         * 
         */
        public Builder destinationContainerRegistry(@Nullable Output destinationContainerRegistry) {
            $.destinationContainerRegistry = destinationContainerRegistry;
            return this;
        }

        /**
         * @param destinationContainerRegistry Container registry that the final image will be uploaded to.
         * 
         * @return builder
         * 
         */
        public Builder destinationContainerRegistry(ContainerRegistryWithCustomImageArgs destinationContainerRegistry) {
            return destinationContainerRegistry(Output.of(destinationContainerRegistry));
        }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy