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

com.pulumi.azurenative.app.JobArgs 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.JobConfigurationArgs;
import com.pulumi.azurenative.app.inputs.JobTemplateArgs;
import com.pulumi.azurenative.app.inputs.ManagedServiceIdentityArgs;
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 JobArgs extends com.pulumi.resources.ResourceArgs {

    public static final JobArgs Empty = new JobArgs();

    /**
     * Container Apps Job configuration properties.
     * 
     */
    @Import(name="configuration")
    private @Nullable Output configuration;

    /**
     * @return Container Apps Job configuration properties.
     * 
     */
    public Optional> configuration() {
        return Optional.ofNullable(this.configuration);
    }

    /**
     * Resource ID of environment.
     * 
     */
    @Import(name="environmentId")
    private @Nullable Output environmentId;

    /**
     * @return Resource ID of environment.
     * 
     */
    public Optional> environmentId() {
        return Optional.ofNullable(this.environmentId);
    }

    /**
     * Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * Job Name
     * 
     */
    @Import(name="jobName")
    private @Nullable Output jobName;

    /**
     * @return Job Name
     * 
     */
    public Optional> jobName() {
        return Optional.ofNullable(this.jobName);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * 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;
    }

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

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

    /**
     * Container Apps job definition.
     * 
     */
    @Import(name="template")
    private @Nullable Output template;

    /**
     * @return Container Apps job definition.
     * 
     */
    public Optional> template() {
        return Optional.ofNullable(this.template);
    }

    /**
     * Workload profile name to pin for container apps job execution.
     * 
     */
    @Import(name="workloadProfileName")
    private @Nullable Output workloadProfileName;

    /**
     * @return Workload profile name to pin for container apps job execution.
     * 
     */
    public Optional> workloadProfileName() {
        return Optional.ofNullable(this.workloadProfileName);
    }

    private JobArgs() {}

    private JobArgs(JobArgs $) {
        this.configuration = $.configuration;
        this.environmentId = $.environmentId;
        this.identity = $.identity;
        this.jobName = $.jobName;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.template = $.template;
        this.workloadProfileName = $.workloadProfileName;
    }

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

    public static final class Builder {
        private JobArgs $;

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

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

        /**
         * @param configuration Container Apps Job configuration properties.
         * 
         * @return builder
         * 
         */
        public Builder configuration(@Nullable Output configuration) {
            $.configuration = configuration;
            return this;
        }

        /**
         * @param configuration Container Apps Job configuration properties.
         * 
         * @return builder
         * 
         */
        public Builder configuration(JobConfigurationArgs configuration) {
            return configuration(Output.of(configuration));
        }

        /**
         * @param environmentId Resource ID of environment.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(@Nullable Output environmentId) {
            $.environmentId = environmentId;
            return this;
        }

        /**
         * @param environmentId Resource ID of environment.
         * 
         * @return builder
         * 
         */
        public Builder environmentId(String environmentId) {
            return environmentId(Output.of(environmentId));
        }

        /**
         * @param identity Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity Managed identities needed by a container app job to interact with other Azure services to not maintain any secrets or credentials in code.
         * 
         * @return builder
         * 
         */
        public Builder identity(ManagedServiceIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param jobName Job Name
         * 
         * @return builder
         * 
         */
        public Builder jobName(@Nullable Output jobName) {
            $.jobName = jobName;
            return this;
        }

        /**
         * @param jobName Job Name
         * 
         * @return builder
         * 
         */
        public Builder jobName(String jobName) {
            return jobName(Output.of(jobName));
        }

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

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

        /**
         * @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));
        }

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

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

        /**
         * @param template Container Apps job definition.
         * 
         * @return builder
         * 
         */
        public Builder template(@Nullable Output template) {
            $.template = template;
            return this;
        }

        /**
         * @param template Container Apps job definition.
         * 
         * @return builder
         * 
         */
        public Builder template(JobTemplateArgs template) {
            return template(Output.of(template));
        }

        /**
         * @param workloadProfileName Workload profile name to pin for container apps job execution.
         * 
         * @return builder
         * 
         */
        public Builder workloadProfileName(@Nullable Output workloadProfileName) {
            $.workloadProfileName = workloadProfileName;
            return this;
        }

        /**
         * @param workloadProfileName Workload profile name to pin for container apps job execution.
         * 
         * @return builder
         * 
         */
        public Builder workloadProfileName(String workloadProfileName) {
            return workloadProfileName(Output.of(workloadProfileName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy