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

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

import com.pulumi.azurenative.media.enums.Priority;
import com.pulumi.azurenative.media.inputs.JobInputAssetArgs;
import com.pulumi.azurenative.media.inputs.JobInputClipArgs;
import com.pulumi.azurenative.media.inputs.JobInputHttpArgs;
import com.pulumi.azurenative.media.inputs.JobInputSequenceArgs;
import com.pulumi.azurenative.media.inputs.JobInputsArgs;
import com.pulumi.azurenative.media.inputs.JobOutputAssetArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
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();

    /**
     * The Media Services account name.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The Media Services account name.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * Customer provided key, value pairs that will be returned in Job and JobOutput state events.
     * 
     */
    @Import(name="correlationData")
    private @Nullable Output> correlationData;

    /**
     * @return Customer provided key, value pairs that will be returned in Job and JobOutput state events.
     * 
     */
    public Optional>> correlationData() {
        return Optional.ofNullable(this.correlationData);
    }

    /**
     * Optional customer supplied description of the Job.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Optional customer supplied description of the Job.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The inputs for the Job.
     * 
     */
    @Import(name="input", required=true)
    private Output input;

    /**
     * @return The inputs for the Job.
     * 
     */
    public Output input() {
        return this.input;
    }

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

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

    /**
     * The outputs for the Job.
     * 
     */
    @Import(name="outputs", required=true)
    private Output> outputs;

    /**
     * @return The outputs for the Job.
     * 
     */
    public Output> outputs() {
        return this.outputs;
    }

    /**
     * Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal.
     * 
     */
    @Import(name="priority")
    private @Nullable Output> priority;

    /**
     * @return Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal.
     * 
     */
    public Optional>> priority() {
        return Optional.ofNullable(this.priority);
    }

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

    /**
     * @return The name of the resource group within the Azure subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The Transform name.
     * 
     */
    @Import(name="transformName", required=true)
    private Output transformName;

    /**
     * @return The Transform name.
     * 
     */
    public Output transformName() {
        return this.transformName;
    }

    private JobArgs() {}

    private JobArgs(JobArgs $) {
        this.accountName = $.accountName;
        this.correlationData = $.correlationData;
        this.description = $.description;
        this.input = $.input;
        this.jobName = $.jobName;
        this.outputs = $.outputs;
        this.priority = $.priority;
        this.resourceGroupName = $.resourceGroupName;
        this.transformName = $.transformName;
    }

    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 accountName The Media Services account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The Media Services account name.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param correlationData Customer provided key, value pairs that will be returned in Job and JobOutput state events.
         * 
         * @return builder
         * 
         */
        public Builder correlationData(@Nullable Output> correlationData) {
            $.correlationData = correlationData;
            return this;
        }

        /**
         * @param correlationData Customer provided key, value pairs that will be returned in Job and JobOutput state events.
         * 
         * @return builder
         * 
         */
        public Builder correlationData(Map correlationData) {
            return correlationData(Output.of(correlationData));
        }

        /**
         * @param description Optional customer supplied description of the Job.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Optional customer supplied description of the Job.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param input The inputs for the Job.
         * 
         * @return builder
         * 
         */
        public Builder input(Output input) {
            $.input = input;
            return this;
        }

        /**
         * @param input The inputs for the Job.
         * 
         * @return builder
         * 
         */
        public Builder input(Object input) {
            return input(Output.of(input));
        }

        /**
         * @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 outputs The outputs for the Job.
         * 
         * @return builder
         * 
         */
        public Builder outputs(Output> outputs) {
            $.outputs = outputs;
            return this;
        }

        /**
         * @param outputs The outputs for the Job.
         * 
         * @return builder
         * 
         */
        public Builder outputs(List outputs) {
            return outputs(Output.of(outputs));
        }

        /**
         * @param outputs The outputs for the Job.
         * 
         * @return builder
         * 
         */
        public Builder outputs(JobOutputAssetArgs... outputs) {
            return outputs(List.of(outputs));
        }

        /**
         * @param priority Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output> priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal.
         * 
         * @return builder
         * 
         */
        public Builder priority(Either priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param priority Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal.
         * 
         * @return builder
         * 
         */
        public Builder priority(String priority) {
            return priority(Either.ofLeft(priority));
        }

        /**
         * @param priority Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. If not set, the default is normal.
         * 
         * @return builder
         * 
         */
        public Builder priority(Priority priority) {
            return priority(Either.ofRight(priority));
        }

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

        /**
         * @param resourceGroupName The name of the resource group within the Azure subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

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

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

}