Class OutputFieldMappingEntry
java.lang.Object
com.azure.search.documents.indexes.models.OutputFieldMappingEntry
- All Implemented Interfaces:
com.azure.json.JsonSerializable<OutputFieldMappingEntry>
public final class OutputFieldMappingEntry
extends Object
implements com.azure.json.JsonSerializable<OutputFieldMappingEntry>
Output field mapping for a skill.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of OutputFieldMappingEntry class. -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputFieldMappingEntryfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of OutputFieldMappingEntry from the JsonReader.getName()Get the name property: The name of the output defined by the skill.Get the targetName property: The target name of the output.setTargetName(String targetName) Set the targetName property: The target name of the output.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
OutputFieldMappingEntry
Creates an instance of OutputFieldMappingEntry class.- Parameters:
name- the name value to set.
-
-
Method Details
-
getName
Get the name property: The name of the output defined by the skill.- Returns:
- the name value.
-
getTargetName
Get the targetName property: The target name of the output. It is optional and default to name.- Returns:
- the targetName value.
-
setTargetName
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<OutputFieldMappingEntry>- Throws:
IOException
-
fromJson
public static OutputFieldMappingEntry fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the OutputFieldMappingEntry.
-