ShaperSkill.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 reshaping the outputs. It creates a complex type to support composite fields (also known as multipart
  17.  * fields).
  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.Util.ShaperSkill")
  25. @Fluent
  26. public final class ShaperSkill 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.Util.ShaperSkill";

  33.     /**
  34.      * Creates an instance of ShaperSkill class.
  35.      *
  36.      * @param inputs the inputs value to set.
  37.      * @param outputs the outputs value to set.
  38.      */
  39.     @JsonCreator
  40.     public ShaperSkill(
  41.             @JsonProperty(value = "inputs", required = true) List<InputFieldMappingEntry> inputs,
  42.             @JsonProperty(value = "outputs", required = true) List<OutputFieldMappingEntry> outputs) {
  43.         super(inputs, outputs);
  44.     }
  45. }