OutputFieldMappingEntry Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.OutputFieldMappingEntry

Implements

public final class OutputFieldMappingEntry
implements JsonSerializable<OutputFieldMappingEntry>

Output field mapping for a skill.

Constructor Summary

Constructor Description
OutputFieldMappingEntry(String name)

Creates an instance of OutputFieldMappingEntry class.

Method Summary

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

Reads an instance of OutputFieldMappingEntry from the JsonReader.

String getName()

Get the name property: The name of the output defined by the skill.

String getTargetName()

Get the targetName property: The target name of the output.

OutputFieldMappingEntry setTargetName(String targetName)

Set the targetName property: The target name of the output.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

OutputFieldMappingEntry

public OutputFieldMappingEntry(String name)

Creates an instance of OutputFieldMappingEntry class.

Parameters:

name - the name value to set.

Method Details

fromJson

public static OutputFieldMappingEntry fromJson(JsonReader jsonReader)

Reads an instance of OutputFieldMappingEntry from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of OutputFieldMappingEntry 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 output defined by the skill.

Returns:

the name value.

getTargetName

public String getTargetName()

Get the targetName property: The target name of the output. It is optional and default to name.

Returns:

the targetName value.

setTargetName

public OutputFieldMappingEntry setTargetName(String targetName)

Set the targetName property: The target name of the output. It is optional and default to name.

Parameters:

targetName - the targetName value to set.

Returns:

the OutputFieldMappingEntry object itself.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to