com.pulumi.azurenative.media.outputs.GetJobResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.outputs;
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.annotations.CustomType;
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;
@CustomType
public final class GetJobResult {
/**
* @return Customer provided key, value pairs that will be returned in Job and JobOutput state events.
*
*/
private @Nullable Map correlationData;
/**
* @return The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.
*
*/
private String created;
/**
* @return Optional customer supplied description of the Job.
*
*/
private @Nullable String description;
/**
* @return The UTC date and time at which this Job finished processing.
*
*/
private String endTime;
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
private String id;
/**
* @return The inputs for the Job.
*
*/
private Object input;
/**
* @return The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.
*
*/
private String lastModified;
/**
* @return The name of the resource
*
*/
private String name;
/**
* @return The outputs for the Job.
*
*/
private List outputs;
/**
* @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.
*
*/
private @Nullable String priority;
/**
* @return The UTC date and time at which this Job began processing.
*
*/
private String startTime;
/**
* @return The current state of the job.
*
*/
private String state;
/**
* @return The system metadata relating to this resource.
*
*/
private SystemDataResponse systemData;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
private String type;
private GetJobResult() {}
/**
* @return Customer provided key, value pairs that will be returned in Job and JobOutput state events.
*
*/
public Map correlationData() {
return this.correlationData == null ? Map.of() : this.correlationData;
}
/**
* @return The UTC date and time when the customer has created the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.
*
*/
public String created() {
return this.created;
}
/**
* @return Optional customer supplied description of the Job.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The UTC date and time at which this Job finished processing.
*
*/
public String endTime() {
return this.endTime;
}
/**
* @return Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*
*/
public String id() {
return this.id;
}
/**
* @return The inputs for the Job.
*
*/
public Object input() {
return this.input;
}
/**
* @return The UTC date and time when the customer has last updated the Job, in 'YYYY-MM-DDThh:mm:ssZ' format.
*
*/
public String lastModified() {
return this.lastModified;
}
/**
* @return The name of the resource
*
*/
public String name() {
return this.name;
}
/**
* @return The outputs for the Job.
*
*/
public List outputs() {
return this.outputs;
}
/**
* @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);
}
/**
* @return The UTC date and time at which this Job began processing.
*
*/
public String startTime() {
return this.startTime;
}
/**
* @return The current state of the job.
*
*/
public String state() {
return this.state;
}
/**
* @return The system metadata relating to this resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetJobResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Map correlationData;
private String created;
private @Nullable String description;
private String endTime;
private String id;
private Object input;
private String lastModified;
private String name;
private List outputs;
private @Nullable String priority;
private String startTime;
private String state;
private SystemDataResponse systemData;
private String type;
public Builder() {}
public Builder(GetJobResult defaults) {
Objects.requireNonNull(defaults);
this.correlationData = defaults.correlationData;
this.created = defaults.created;
this.description = defaults.description;
this.endTime = defaults.endTime;
this.id = defaults.id;
this.input = defaults.input;
this.lastModified = defaults.lastModified;
this.name = defaults.name;
this.outputs = defaults.outputs;
this.priority = defaults.priority;
this.startTime = defaults.startTime;
this.state = defaults.state;
this.systemData = defaults.systemData;
this.type = defaults.type;
}
@CustomType.Setter
public Builder correlationData(@Nullable Map correlationData) {
this.correlationData = correlationData;
return this;
}
@CustomType.Setter
public Builder created(String created) {
if (created == null) {
throw new MissingRequiredPropertyException("GetJobResult", "created");
}
this.created = created;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder endTime(String endTime) {
if (endTime == null) {
throw new MissingRequiredPropertyException("GetJobResult", "endTime");
}
this.endTime = endTime;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetJobResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder input(Object input) {
if (input == null) {
throw new MissingRequiredPropertyException("GetJobResult", "input");
}
this.input = input;
return this;
}
@CustomType.Setter
public Builder lastModified(String lastModified) {
if (lastModified == null) {
throw new MissingRequiredPropertyException("GetJobResult", "lastModified");
}
this.lastModified = lastModified;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetJobResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder outputs(List outputs) {
if (outputs == null) {
throw new MissingRequiredPropertyException("GetJobResult", "outputs");
}
this.outputs = outputs;
return this;
}
public Builder outputs(JobOutputAssetResponse... outputs) {
return outputs(List.of(outputs));
}
@CustomType.Setter
public Builder priority(@Nullable String priority) {
this.priority = priority;
return this;
}
@CustomType.Setter
public Builder startTime(String startTime) {
if (startTime == null) {
throw new MissingRequiredPropertyException("GetJobResult", "startTime");
}
this.startTime = startTime;
return this;
}
@CustomType.Setter
public Builder state(String state) {
if (state == null) {
throw new MissingRequiredPropertyException("GetJobResult", "state");
}
this.state = state;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetJobResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetJobResult", "type");
}
this.type = type;
return this;
}
public GetJobResult build() {
final var _resultValue = new GetJobResult();
_resultValue.correlationData = correlationData;
_resultValue.created = created;
_resultValue.description = description;
_resultValue.endTime = endTime;
_resultValue.id = id;
_resultValue.input = input;
_resultValue.lastModified = lastModified;
_resultValue.name = name;
_resultValue.outputs = outputs;
_resultValue.priority = priority;
_resultValue.startTime = startTime;
_resultValue.state = state;
_resultValue.systemData = systemData;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy