Share via


OutputFileUploadHeader Class

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

Implements

public final class OutputFileUploadHeader
implements JsonSerializable<OutputFileUploadHeader>

An HTTP header name-value pair.

Constructor Summary

Constructor Description
OutputFileUploadHeader(String name)

Creates an instance of OutputFileUploadHeader class.

Method Summary

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

Reads an instance of OutputFileUploadHeader from the JsonReader.

String getName()

Get the name property: The case-insensitive name of the header to be used while uploading output files.

String getValue()

Get the value property: The value of the header to be used while uploading output files.

OutputFileUploadHeader setValue(String value)

Set the value property: The value of the header to be used while uploading output files.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

OutputFileUploadHeader

public OutputFileUploadHeader(String name)

Creates an instance of OutputFileUploadHeader class.

Parameters:

name - the name value to set.

Method Details

fromJson

public static OutputFileUploadHeader fromJson(JsonReader jsonReader)

Reads an instance of OutputFileUploadHeader from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OutputFileUploadHeader 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.

getName

public String getName()

Get the name property: The case-insensitive name of the header to be used while uploading output files.

Returns:

the name value.

getValue

public String getValue()

Get the value property: The value of the header to be used while uploading output files.

Returns:

the value value.

setValue

public OutputFileUploadHeader setValue(String value)

Set the value property: The value of the header to be used while uploading output files.

Parameters:

value - the value value to set.

Returns:

the OutputFileUploadHeader object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to