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

com.pulumi.azurenative.scheduler.JobCollectionArgs 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.JobCollectionPropertiesArgs;
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 JobCollectionArgs extends com.pulumi.resources.ResourceArgs {

    public static final JobCollectionArgs Empty = new JobCollectionArgs();

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

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

    /**
     * Gets or sets the storage account location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Gets or sets the storage account location.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

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

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

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

    /**
     * @return Gets or sets the job collection 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;
    }

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

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

    private JobCollectionArgs() {}

    private JobCollectionArgs(JobCollectionArgs $) {
        this.jobCollectionName = $.jobCollectionName;
        this.location = $.location;
        this.name = $.name;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private JobCollectionArgs $;

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

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

        /**
         * @param jobCollectionName The job collection name.
         * 
         * @return builder
         * 
         */
        public Builder jobCollectionName(@Nullable 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 location Gets or sets the storage account location.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Gets or sets the storage account location.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

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

        /**
         * @param name Gets or sets the job collection resource name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

        /**
         * @param properties Gets or sets the job collection properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(JobCollectionPropertiesArgs 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));
        }

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

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy