Share via


BatchErrorDetail Class

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

Implements

public final class BatchErrorDetail
implements JsonSerializable<BatchErrorDetail>

An item of additional information included in an Azure Batch error response.

Method Summary

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

Reads an instance of BatchErrorDetail from the JsonReader.

String getKey()

Get the key property: An identifier specifying the meaning of the Value property.

String getValue()

Get the value property: The additional information included with the error response.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static BatchErrorDetail fromJson(JsonReader jsonReader)

Reads an instance of BatchErrorDetail from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the BatchErrorDetail.

getKey

public String getKey()

Get the key property: An identifier specifying the meaning of the Value property.

Returns:

the key value.

getValue

public String getValue()

Get the value property: The additional information included with the error response.

Returns:

the value value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to