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 Details

    • OutputFieldMappingEntry

      public OutputFieldMappingEntry(String name)
      Creates an instance of OutputFieldMappingEntry class.
      Parameters:
      name - the name value to set.
  • Method Details

    • 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 com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.