Package com.azure.compute.batch.models
Class OutputFileUploadConfig
java.lang.Object
com.azure.compute.batch.models.OutputFileUploadConfig
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OutputFileUploadConfig>
public final class OutputFileUploadConfig
extends Object
implements com.azure.json.JsonSerializable<OutputFileUploadConfig>
Options for an output file upload operation, including under what conditions
to perform the upload.
-
Constructor Summary
ConstructorsConstructorDescriptionOutputFileUploadConfig
(OutputFileUploadCondition uploadCondition) Creates an instance of OutputFileUploadConfig class. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputFileUploadConfig
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of OutputFileUploadConfig from the JsonReader.Get the uploadCondition property: The conditions under which the Task output file or set of files should be uploaded.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OutputFileUploadConfig
Creates an instance of OutputFileUploadConfig class.- Parameters:
uploadCondition
- the uploadCondition value to set.
-
-
Method Details
-
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<OutputFileUploadConfig>
- Throws:
IOException
-
fromJson
public static OutputFileUploadConfig fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the OutputFileUploadConfig.
-