Share via


Target Class

  • java.lang.Object
    • com.azure.ai.projects.models.Target

Implements

public class Target
implements JsonSerializable<Target>

Base class for targets with discriminator support.

Constructor Summary

Constructor Description
Target()

Creates an instance of Target class.

Method Summary

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

Reads an instance of Target from the JsonReader.

String getType()

Get the type property: The type of target.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

Target

public Target()

Creates an instance of Target class.

Method Details

fromJson

public static Target fromJson(JsonReader jsonReader)

Reads an instance of Target from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getType

public String getType()

Get the type property: The type of target.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to