OutputFieldMappingEntry.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. /** Output field mapping for a skill. */
  12. @Fluent
  13. public final class OutputFieldMappingEntry {
  14.     /*
  15.      * The name of the output defined by the skill.
  16.      */
  17.     @JsonProperty(value = "name", required = true)
  18.     private String name;

  19.     /*
  20.      * The target name of the output. It is optional and default to name.
  21.      */
  22.     @JsonProperty(value = "targetName")
  23.     private String targetName;

  24.     /**
  25.      * Creates an instance of OutputFieldMappingEntry class.
  26.      *
  27.      * @param name the name value to set.
  28.      */
  29.     @JsonCreator
  30.     public OutputFieldMappingEntry(@JsonProperty(value = "name", required = true) String name) {
  31.         this.name = name;
  32.     }

  33.     /**
  34.      * Get the name property: The name of the output defined by the skill.
  35.      *
  36.      * @return the name value.
  37.      */
  38.     public String getName() {
  39.         return this.name;
  40.     }

  41.     /**
  42.      * Get the targetName property: The target name of the output. It is optional and default to name.
  43.      *
  44.      * @return the targetName value.
  45.      */
  46.     public String getTargetName() {
  47.         return this.targetName;
  48.     }

  49.     /**
  50.      * Set the targetName property: The target name of the output. It is optional and default to name.
  51.      *
  52.      * @param targetName the targetName value to set.
  53.      * @return the OutputFieldMappingEntry object itself.
  54.      */
  55.     public OutputFieldMappingEntry setTargetName(String targetName) {
  56.         this.targetName = targetName;
  57.         return this;
  58.     }
  59. }