Class InputFieldMappingEntry

java.lang.Object
com.azure.search.documents.indexes.models.InputFieldMappingEntry
All Implemented Interfaces:
com.azure.json.JsonSerializable<InputFieldMappingEntry>

public final class InputFieldMappingEntry extends Object implements com.azure.json.JsonSerializable<InputFieldMappingEntry>
Input field mapping for a skill.
  • Constructor Details

    • InputFieldMappingEntry

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

    • getName

      public String getName()
      Get the name property: The name of the input.
      Returns:
      the name value.
    • getSource

      public String getSource()
      Get the source property: The source of the input.
      Returns:
      the source value.
    • setSource

      public InputFieldMappingEntry setSource(String source)
      Set the source property: The source of the input.
      Parameters:
      source - the source value to set.
      Returns:
      the InputFieldMappingEntry object itself.
    • getSourceContext

      public String getSourceContext()
      Get the sourceContext property: The source context used for selecting recursive inputs.
      Returns:
      the sourceContext value.
    • setSourceContext

      public InputFieldMappingEntry setSourceContext(String sourceContext)
      Set the sourceContext property: The source context used for selecting recursive inputs.
      Parameters:
      sourceContext - the sourceContext value to set.
      Returns:
      the InputFieldMappingEntry object itself.
    • getInputs

      public List<InputFieldMappingEntry> getInputs()
      Get the inputs property: The recursive inputs used when creating a complex type.
      Returns:
      the inputs value.
    • setInputs

      Set the inputs property: The recursive inputs used when creating a complex type.
      Parameters:
      inputs - the inputs value to set.
      Returns:
      the InputFieldMappingEntry 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<InputFieldMappingEntry>
      Throws:
      IOException
    • fromJson

      public static InputFieldMappingEntry fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of InputFieldMappingEntry from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of InputFieldMappingEntry 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 InputFieldMappingEntry.
    • setInputs

      public InputFieldMappingEntry setInputs(InputFieldMappingEntry... inputs)
      Set the inputs property: The recursive inputs used when creating a complex type.
      Parameters:
      inputs - the inputs value to set.
      Returns:
      the InputFieldMappingEntry object itself.