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

com.pulumi.azurenative.appplatform.inputs.BuildPropertiesArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.appplatform.inputs.ApmReferenceArgs;
import com.pulumi.azurenative.appplatform.inputs.BuildResourceRequestsArgs;
import com.pulumi.azurenative.appplatform.inputs.CertificateReferenceArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Build resource properties payload
 * 
 */
public final class BuildPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final BuildPropertiesArgs Empty = new BuildPropertiesArgs();

    /**
     * The resource id of agent pool
     * 
     */
    @Import(name="agentPool")
    private @Nullable Output agentPool;

    /**
     * @return The resource id of agent pool
     * 
     */
    public Optional> agentPool() {
        return Optional.ofNullable(this.agentPool);
    }

    /**
     * The APMs for this build
     * 
     */
    @Import(name="apms")
    private @Nullable Output> apms;

    /**
     * @return The APMs for this build
     * 
     */
    public Optional>> apms() {
        return Optional.ofNullable(this.apms);
    }

    /**
     * The resource id of builder to build the source code
     * 
     */
    @Import(name="builder")
    private @Nullable Output builder;

    /**
     * @return The resource id of builder to build the source code
     * 
     */
    public Optional> builder_() {
        return Optional.ofNullable(this.builder);
    }

    /**
     * The CA Certificates for this build
     * 
     */
    @Import(name="certificates")
    private @Nullable Output> certificates;

    /**
     * @return The CA Certificates for this build
     * 
     */
    public Optional>> certificates() {
        return Optional.ofNullable(this.certificates);
    }

    /**
     * The environment variables for this build
     * 
     */
    @Import(name="env")
    private @Nullable Output> env;

    /**
     * @return The environment variables for this build
     * 
     */
    public Optional>> env() {
        return Optional.ofNullable(this.env);
    }

    /**
     * The relative path of source code
     * 
     */
    @Import(name="relativePath")
    private @Nullable Output relativePath;

    /**
     * @return The relative path of source code
     * 
     */
    public Optional> relativePath() {
        return Optional.ofNullable(this.relativePath);
    }

    /**
     * The customized build resource for this build
     * 
     */
    @Import(name="resourceRequests")
    private @Nullable Output resourceRequests;

    /**
     * @return The customized build resource for this build
     * 
     */
    public Optional> resourceRequests() {
        return Optional.ofNullable(this.resourceRequests);
    }

    private BuildPropertiesArgs() {}

    private BuildPropertiesArgs(BuildPropertiesArgs $) {
        this.agentPool = $.agentPool;
        this.apms = $.apms;
        this.builder = $.builder;
        this.certificates = $.certificates;
        this.env = $.env;
        this.relativePath = $.relativePath;
        this.resourceRequests = $.resourceRequests;
    }

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

    public static final class Builder {
        private BuildPropertiesArgs $;

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

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

        /**
         * @param agentPool The resource id of agent pool
         * 
         * @return builder
         * 
         */
        public Builder agentPool(@Nullable Output agentPool) {
            $.agentPool = agentPool;
            return this;
        }

        /**
         * @param agentPool The resource id of agent pool
         * 
         * @return builder
         * 
         */
        public Builder agentPool(String agentPool) {
            return agentPool(Output.of(agentPool));
        }

        /**
         * @param apms The APMs for this build
         * 
         * @return builder
         * 
         */
        public Builder apms(@Nullable Output> apms) {
            $.apms = apms;
            return this;
        }

        /**
         * @param apms The APMs for this build
         * 
         * @return builder
         * 
         */
        public Builder apms(List apms) {
            return apms(Output.of(apms));
        }

        /**
         * @param apms The APMs for this build
         * 
         * @return builder
         * 
         */
        public Builder apms(ApmReferenceArgs... apms) {
            return apms(List.of(apms));
        }

        /**
         * @param builder The resource id of builder to build the source code
         * 
         * @return builder
         * 
         */
        public Builder builder_(@Nullable Output builder) {
            $.builder = builder;
            return this;
        }

        /**
         * @param builder The resource id of builder to build the source code
         * 
         * @return builder
         * 
         */
        public Builder builder_(String builder) {
            return builder_(Output.of(builder));
        }

        /**
         * @param certificates The CA Certificates for this build
         * 
         * @return builder
         * 
         */
        public Builder certificates(@Nullable Output> certificates) {
            $.certificates = certificates;
            return this;
        }

        /**
         * @param certificates The CA Certificates for this build
         * 
         * @return builder
         * 
         */
        public Builder certificates(List certificates) {
            return certificates(Output.of(certificates));
        }

        /**
         * @param certificates The CA Certificates for this build
         * 
         * @return builder
         * 
         */
        public Builder certificates(CertificateReferenceArgs... certificates) {
            return certificates(List.of(certificates));
        }

        /**
         * @param env The environment variables for this build
         * 
         * @return builder
         * 
         */
        public Builder env(@Nullable Output> env) {
            $.env = env;
            return this;
        }

        /**
         * @param env The environment variables for this build
         * 
         * @return builder
         * 
         */
        public Builder env(Map env) {
            return env(Output.of(env));
        }

        /**
         * @param relativePath The relative path of source code
         * 
         * @return builder
         * 
         */
        public Builder relativePath(@Nullable Output relativePath) {
            $.relativePath = relativePath;
            return this;
        }

        /**
         * @param relativePath The relative path of source code
         * 
         * @return builder
         * 
         */
        public Builder relativePath(String relativePath) {
            return relativePath(Output.of(relativePath));
        }

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

        /**
         * @param resourceRequests The customized build resource for this build
         * 
         * @return builder
         * 
         */
        public Builder resourceRequests(BuildResourceRequestsArgs resourceRequests) {
            return resourceRequests(Output.of(resourceRequests));
        }

        public BuildPropertiesArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy