SearchIndexerWarning.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.Immutable;
  9. import com.fasterxml.jackson.annotation.JsonCreator;
  10. import com.fasterxml.jackson.annotation.JsonProperty;

  11. /** Represents an item-level warning. */
  12. @Immutable
  13. public final class SearchIndexerWarning {
  14.     /*
  15.      * The key of the item which generated a warning.
  16.      */
  17.     @JsonProperty(value = "key", access = JsonProperty.Access.WRITE_ONLY)
  18.     private String key;

  19.     /*
  20.      * The message describing the warning that occurred while processing the
  21.      * item.
  22.      */
  23.     @JsonProperty(value = "message", required = true, access = JsonProperty.Access.WRITE_ONLY)
  24.     private String message;

  25.     /*
  26.      * The name of the source at which the warning originated. For example,
  27.      * this could refer to a particular skill in the attached skillset. This
  28.      * may not be always available.
  29.      */
  30.     @JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
  31.     private String name;

  32.     /*
  33.      * Additional, verbose details about the warning to assist in debugging the
  34.      * indexer. This may not be always available.
  35.      */
  36.     @JsonProperty(value = "details", access = JsonProperty.Access.WRITE_ONLY)
  37.     private String details;

  38.     /*
  39.      * A link to a troubleshooting guide for these classes of warnings. This
  40.      * may not be always available.
  41.      */
  42.     @JsonProperty(value = "documentationLink", access = JsonProperty.Access.WRITE_ONLY)
  43.     private String documentationLink;

  44.     /**
  45.      * Creates an instance of SearchIndexerWarning class.
  46.      *
  47.      * @param message the message value to set.
  48.      */
  49.     @JsonCreator
  50.     public SearchIndexerWarning(
  51.             @JsonProperty(value = "message", required = true, access = JsonProperty.Access.WRITE_ONLY) String message) {
  52.         this.message = message;
  53.     }

  54.     /**
  55.      * Get the key property: The key of the item which generated a warning.
  56.      *
  57.      * @return the key value.
  58.      */
  59.     public String getKey() {
  60.         return this.key;
  61.     }

  62.     /**
  63.      * Get the message property: The message describing the warning that occurred while processing the item.
  64.      *
  65.      * @return the message value.
  66.      */
  67.     public String getMessage() {
  68.         return this.message;
  69.     }

  70.     /**
  71.      * Get the name property: The name of the source at which the warning originated. For example, this could refer to a
  72.      * particular skill in the attached skillset. This may not be always available.
  73.      *
  74.      * @return the name value.
  75.      */
  76.     public String getName() {
  77.         return this.name;
  78.     }

  79.     /**
  80.      * Get the details property: Additional, verbose details about the warning to assist in debugging the indexer. This
  81.      * may not be always available.
  82.      *
  83.      * @return the details value.
  84.      */
  85.     public String getDetails() {
  86.         return this.details;
  87.     }

  88.     /**
  89.      * Get the documentationLink property: A link to a troubleshooting guide for these classes of warnings. This may not
  90.      * be always available.
  91.      *
  92.      * @return the documentationLink value.
  93.      */
  94.     public String getDocumentationLink() {
  95.         return this.documentationLink;
  96.     }
  97. }