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

com.pulumi.azurenative.media.Job 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.Utilities;
import com.pulumi.azurenative.media.JobArgs;
import com.pulumi.azurenative.media.outputs.JobInputAssetResponse;
import com.pulumi.azurenative.media.outputs.JobInputClipResponse;
import com.pulumi.azurenative.media.outputs.JobInputHttpResponse;
import com.pulumi.azurenative.media.outputs.JobInputSequenceResponse;
import com.pulumi.azurenative.media.outputs.JobInputsResponse;
import com.pulumi.azurenative.media.outputs.JobOutputAssetResponse;
import com.pulumi.azurenative.media.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid.
 * Azure REST API version: 2022-07-01. Prior API version in Azure Native 1.x: 2020-05-01.
 * 
 * ## Example Usage
 * ### Create a Job
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.media.Job;
 * import com.pulumi.azurenative.media.JobArgs;
 * import com.pulumi.azurenative.media.inputs.JobOutputAssetArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var job = new Job("job", JobArgs.builder()
 *             .accountName("contosomedia")
 *             .correlationData(Map.ofEntries(
 *                 Map.entry("Key 2", "Value 2"),
 *                 Map.entry("key1", "value1")
 *             ))
 *             .input(JobInputAssetArgs.builder()
 *                 .assetName("job1-InputAsset")
 *                 .odataType("#Microsoft.Media.JobInputAsset")
 *                 .build())
 *             .jobName("job1")
 *             .outputs(JobOutputAssetArgs.builder()
 *                 .assetName("job1-OutputAsset")
 *                 .odataType("#Microsoft.Media.JobOutputAsset")
 *                 .build())
 *             .resourceGroupName("contosoresources")
 *             .transformName("exampleTransform")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:media:Job job1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/transforms/{transformName}/jobs/{jobName} * ``` * */ @ResourceType(type="azure-native:media:Job") public class Job extends com.pulumi.resources.CustomResource { /** * Customer provided key, value pairs that will be returned in Job and JobOutput state events. * */ @Export(name="correlationData", refs={Map.class,String.class}, tree="[0,1,1]") private Output> correlationData; /** * @return Customer provided key, value pairs that will be returned in Job and JobOutput state events. * */ public Output>> correlationData() { return Codegen.optional(this.correlationData); } /** * The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. * */ @Export(name="created", refs={String.class}, tree="[0]") private Output created; /** * @return The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. * */ public Output created() { return this.created; } /** * Optional customer supplied description of the Job. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return Optional customer supplied description of the Job. * */ public Output> description() { return Codegen.optional(this.description); } /** * The UTC date and time at which this Job finished processing. * */ @Export(name="endTime", refs={String.class}, tree="[0]") private Output endTime; /** * @return The UTC date and time at which this Job finished processing. * */ public Output endTime() { return this.endTime; } /** * The inputs for the Job. * */ @Export(name="input", refs={Object.class}, tree="[0]") private Output input; /** * @return The inputs for the Job. * */ public Output input() { return this.input; } /** * The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. * */ @Export(name="lastModified", refs={String.class}, tree="[0]") private Output lastModified; /** * @return The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format. * */ public Output lastModified() { return this.lastModified; } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * The outputs for the Job. * */ @Export(name="outputs", refs={List.class,JobOutputAssetResponse.class}, tree="[0,1]") 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. * */ @Export(name="priority", refs={String.class}, tree="[0]") private 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 Output> priority() { return Codegen.optional(this.priority); } /** * The UTC date and time at which this Job began processing. * */ @Export(name="startTime", refs={String.class}, tree="[0]") private Output startTime; /** * @return The UTC date and time at which this Job began processing. * */ public Output startTime() { return this.startTime; } /** * The current state of the job. * */ @Export(name="state", refs={String.class}, tree="[0]") private Output state; /** * @return The current state of the job. * */ public Output state() { return this.state; } /** * The system metadata relating to this resource. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return The system metadata relating to this resource. * */ public Output systemData() { return this.systemData; } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public Job(java.lang.String name) { this(name, JobArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Job(java.lang.String name, JobArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public Job(java.lang.String name, JobArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:media:Job", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Job(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:media:Job", name, null, makeResourceOptions(options, id), false); } private static JobArgs makeArgs(JobArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? JobArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:media/v20180330preview:Job").build()), Output.of(Alias.builder().type("azure-native:media/v20180601preview:Job").build()), Output.of(Alias.builder().type("azure-native:media/v20180701:Job").build()), Output.of(Alias.builder().type("azure-native:media/v20200501:Job").build()), Output.of(Alias.builder().type("azure-native:media/v20210601:Job").build()), Output.of(Alias.builder().type("azure-native:media/v20211101:Job").build()), Output.of(Alias.builder().type("azure-native:media/v20220501preview:Job").build()), Output.of(Alias.builder().type("azure-native:media/v20220701:Job").build()) )) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param options Optional settings to control the behavior of the CustomResource. */ public static Job get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Job(name, id, options); } }