NameAndDescription Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.NameAndDescription

Implements

public final class NameAndDescription
implements JsonSerializable<NameAndDescription>

The name and description.

Method Summary

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

Reads an instance of NameAndDescription from the JsonReader.

String getDescription()

Get the description property: The description.

String getName()

Get the name property: The name.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static NameAndDescription fromJson(JsonReader jsonReader)

Reads an instance of NameAndDescription from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getDescription

public String getDescription()

Get the description property: The description.

Returns:

the description value.

getName

public String getName()

Get the name property: The name.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to