Share via


BatchMetadataItem Class

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

Implements

public final class BatchMetadataItem
implements JsonSerializable<BatchMetadataItem>

The Batch service does not assign any meaning to this metadata; it is solely for the use of user code.

Constructor Summary

Constructor Description
BatchMetadataItem(String name, String value)

Creates an instance of BatchMetadataItem class.

Method Summary

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

Reads an instance of BatchMetadataItem from the JsonReader.

String getName()

Get the name property: The name of the metadata item.

String getValue()

Get the value property: The value of the metadata item.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

BatchMetadataItem

public BatchMetadataItem(String name, String value)

Creates an instance of BatchMetadataItem class.

Parameters:

name - the name value to set.
value - the value value to set.

Method Details

fromJson

public static BatchMetadataItem fromJson(JsonReader jsonReader)

Reads an instance of BatchMetadataItem from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of BatchMetadataItem 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 name of the metadata item.

Returns:

the name value.

getValue

public String getValue()

Get the value property: The value of the metadata item.

Returns:

the value value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to