Share via


OutputFileUploadConfig Class

  • java.lang.Object
    • com.azure.compute.batch.models.OutputFileUploadConfig

Implements

public final class OutputFileUploadConfig
implements JsonSerializable<OutputFileUploadConfig>

Options for an output file upload operation, including under what conditions to perform the upload.

Constructor Summary

Constructor Description
OutputFileUploadConfig(OutputFileUploadCondition uploadCondition)

Creates an instance of OutputFileUploadConfig class.

Method Summary

Modifier and Type Method and Description
static OutputFileUploadConfig fromJson(JsonReader jsonReader)

Reads an instance of OutputFileUploadConfig from the JsonReader.

OutputFileUploadCondition getUploadCondition()

Get the uploadCondition property: The conditions under which the Task output file or set of files should be uploaded.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

OutputFileUploadConfig

public OutputFileUploadConfig(OutputFileUploadCondition uploadCondition)

Creates an instance of OutputFileUploadConfig class.

Parameters:

uploadCondition - the uploadCondition value to set.

Method Details

fromJson

public static OutputFileUploadConfig fromJson(JsonReader jsonReader)

Reads an instance of OutputFileUploadConfig from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OutputFileUploadConfig if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getUploadCondition

public OutputFileUploadCondition getUploadCondition()

Get the uploadCondition property: The conditions under which the Task output file or set of files should be uploaded. The default is taskcompletion.

Returns:

the uploadCondition value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to