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

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

import com.pulumi.azurenative.scheduler.inputs.JobPropertiesArgs;
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 JobArgs extends com.pulumi.resources.ResourceArgs {

    public static final JobArgs Empty = new JobArgs();

    /**
     * The job collection name.
     * 
     */
    @Import(name="jobCollectionName", required=true)
    private Output jobCollectionName;

    /**
     * @return The job collection name.
     * 
     */
    public Output jobCollectionName() {
        return this.jobCollectionName;
    }

    /**
     * The job name.
     * 
     */
    @Import(name="jobName")
    private @Nullable Output jobName;

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

    /**
     * Gets or sets the job properties.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Gets or sets the job properties.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

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

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

    private JobArgs() {}

    private JobArgs(JobArgs $) {
        this.jobCollectionName = $.jobCollectionName;
        this.jobName = $.jobName;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
    }

    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 jobCollectionName The job collection name.
         * 
         * @return builder
         * 
         */
        public Builder jobCollectionName(Output jobCollectionName) {
            $.jobCollectionName = jobCollectionName;
            return this;
        }

        /**
         * @param jobCollectionName The job collection name.
         * 
         * @return builder
         * 
         */
        public Builder jobCollectionName(String jobCollectionName) {
            return jobCollectionName(Output.of(jobCollectionName));
        }

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

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

        /**
         * @param properties Gets or sets the job properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Gets or sets the job properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(JobPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy