MergeSkill.java

  1. // Copyright (c) Microsoft Corporation. All rights reserved.
  2. // Licensed under the MIT License.
  3. //
  4. // Code generated by Microsoft (R) AutoRest Code Generator.
  5. // Changes may cause incorrect behavior and will be lost if the code is
  6. // regenerated.
  7. package com.azure.search.documents.indexes.models;

  8. import com.azure.core.annotation.Fluent;
  9. import com.fasterxml.jackson.annotation.JsonCreator;
  10. import com.fasterxml.jackson.annotation.JsonProperty;
  11. import com.fasterxml.jackson.annotation.JsonTypeId;
  12. import com.fasterxml.jackson.annotation.JsonTypeInfo;
  13. import com.fasterxml.jackson.annotation.JsonTypeName;
  14. import java.util.List;

  15. /**
  16.  * A skill for merging two or more strings into a single unified string, with an optional user-defined delimiter
  17.  * separating each component part.
  18.  */
  19. @JsonTypeInfo(
  20.         use = JsonTypeInfo.Id.NAME,
  21.         include = JsonTypeInfo.As.EXISTING_PROPERTY,
  22.         property = "@odata.type",
  23.         visible = true)
  24. @JsonTypeName("#Microsoft.Skills.Text.MergeSkill")
  25. @Fluent
  26. public final class MergeSkill extends SearchIndexerSkill {

  27.     /*
  28.      * Identifies the concrete type of the skill.
  29.      */
  30.     @JsonTypeId
  31.     @JsonProperty(value = "@odata.type", required = true)
  32.     private String odataType = "#Microsoft.Skills.Text.MergeSkill";

  33.     /*
  34.      * The tag indicates the start of the merged text. By default, the tag is
  35.      * an empty space.
  36.      */
  37.     @JsonProperty(value = "insertPreTag")
  38.     private String insertPreTag;

  39.     /*
  40.      * The tag indicates the end of the merged text. By default, the tag is an
  41.      * empty space.
  42.      */
  43.     @JsonProperty(value = "insertPostTag")
  44.     private String insertPostTag;

  45.     /**
  46.      * Creates an instance of MergeSkill class.
  47.      *
  48.      * @param inputs the inputs value to set.
  49.      * @param outputs the outputs value to set.
  50.      */
  51.     @JsonCreator
  52.     public MergeSkill(
  53.             @JsonProperty(value = "inputs", required = true) List<InputFieldMappingEntry> inputs,
  54.             @JsonProperty(value = "outputs", required = true) List<OutputFieldMappingEntry> outputs) {
  55.         super(inputs, outputs);
  56.     }

  57.     /**
  58.      * Get the insertPreTag property: The tag indicates the start of the merged text. By default, the tag is an empty
  59.      * space.
  60.      *
  61.      * @return the insertPreTag value.
  62.      */
  63.     public String getInsertPreTag() {
  64.         return this.insertPreTag;
  65.     }

  66.     /**
  67.      * Set the insertPreTag property: The tag indicates the start of the merged text. By default, the tag is an empty
  68.      * space.
  69.      *
  70.      * @param insertPreTag the insertPreTag value to set.
  71.      * @return the MergeSkill object itself.
  72.      */
  73.     public MergeSkill setInsertPreTag(String insertPreTag) {
  74.         this.insertPreTag = insertPreTag;
  75.         return this;
  76.     }

  77.     /**
  78.      * Get the insertPostTag property: The tag indicates the end of the merged text. By default, the tag is an empty
  79.      * space.
  80.      *
  81.      * @return the insertPostTag value.
  82.      */
  83.     public String getInsertPostTag() {
  84.         return this.insertPostTag;
  85.     }

  86.     /**
  87.      * Set the insertPostTag property: The tag indicates the end of the merged text. By default, the tag is an empty
  88.      * space.
  89.      *
  90.      * @param insertPostTag the insertPostTag value to set.
  91.      * @return the MergeSkill object itself.
  92.      */
  93.     public MergeSkill setInsertPostTag(String insertPostTag) {
  94.         this.insertPostTag = insertPostTag;
  95.         return this;
  96.     }
  97. }