/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace LexModelsV2 {
namespace Model {

/**
 * <p>Provides configuration information for the
 * <code>AMAZON.KendraSearchIntent</code> intent. When you use this intent, Amazon
 * Lex searches the specified Amazon Kendra index and returns documents from the
 * index that match the user's utterance.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/KendraConfiguration">AWS
 * API Reference</a></p>
 */
class KendraConfiguration {
 public:
  AWS_LEXMODELSV2_API KendraConfiguration() = default;
  AWS_LEXMODELSV2_API KendraConfiguration(Aws::Utils::Json::JsonView jsonValue);
  AWS_LEXMODELSV2_API KendraConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The Amazon Resource Name (ARN) of the Amazon Kendra index that you want the
   * <code>AMAZON.KendraSearchIntent</code> intent to search. The index must be in
   * the same account and Region as the Amazon Lex bot.</p>
   */
  inline const Aws::String& GetKendraIndex() const { return m_kendraIndex; }
  inline bool KendraIndexHasBeenSet() const { return m_kendraIndexHasBeenSet; }
  template <typename KendraIndexT = Aws::String>
  void SetKendraIndex(KendraIndexT&& value) {
    m_kendraIndexHasBeenSet = true;
    m_kendraIndex = std::forward<KendraIndexT>(value);
  }
  template <typename KendraIndexT = Aws::String>
  KendraConfiguration& WithKendraIndex(KendraIndexT&& value) {
    SetKendraIndex(std::forward<KendraIndexT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>Determines whether the <code>AMAZON.KendraSearchIntent</code> intent uses a
   * custom query string to query the Amazon Kendra index.</p>
   */
  inline bool GetQueryFilterStringEnabled() const { return m_queryFilterStringEnabled; }
  inline bool QueryFilterStringEnabledHasBeenSet() const { return m_queryFilterStringEnabledHasBeenSet; }
  inline void SetQueryFilterStringEnabled(bool value) {
    m_queryFilterStringEnabledHasBeenSet = true;
    m_queryFilterStringEnabled = value;
  }
  inline KendraConfiguration& WithQueryFilterStringEnabled(bool value) {
    SetQueryFilterStringEnabled(value);
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>A query filter that Amazon Lex sends to Amazon Kendra to filter the response
   * from a query. The filter is in the format defined by Amazon Kendra. For more
   * information, see <a
   * href="https://docs.aws.amazon.com/kendra/latest/dg/filtering.html">Filtering
   * queries</a>.</p>
   */
  inline const Aws::String& GetQueryFilterString() const { return m_queryFilterString; }
  inline bool QueryFilterStringHasBeenSet() const { return m_queryFilterStringHasBeenSet; }
  template <typename QueryFilterStringT = Aws::String>
  void SetQueryFilterString(QueryFilterStringT&& value) {
    m_queryFilterStringHasBeenSet = true;
    m_queryFilterString = std::forward<QueryFilterStringT>(value);
  }
  template <typename QueryFilterStringT = Aws::String>
  KendraConfiguration& WithQueryFilterString(QueryFilterStringT&& value) {
    SetQueryFilterString(std::forward<QueryFilterStringT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_kendraIndex;

  bool m_queryFilterStringEnabled{false};

  Aws::String m_queryFilterString;
  bool m_kendraIndexHasBeenSet = false;
  bool m_queryFilterStringEnabledHasBeenSet = false;
  bool m_queryFilterStringHasBeenSet = false;
};

}  // namespace Model
}  // namespace LexModelsV2
}  // namespace Aws
