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

#pragma once
#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>

#include <utility>

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

/**
 * <p>Contains configurations for a query, each of which defines information about
 * example queries to help the query engine generate appropriate SQL
 * queries.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/bedrock-agent-2023-06-05/CuratedQuery">AWS
 * API Reference</a></p>
 */
class CuratedQuery {
 public:
  AWS_BEDROCKAGENT_API CuratedQuery() = default;
  AWS_BEDROCKAGENT_API CuratedQuery(Aws::Utils::Json::JsonView jsonValue);
  AWS_BEDROCKAGENT_API CuratedQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>An example natural language query.</p>
   */
  inline const Aws::String& GetNaturalLanguage() const { return m_naturalLanguage; }
  inline bool NaturalLanguageHasBeenSet() const { return m_naturalLanguageHasBeenSet; }
  template <typename NaturalLanguageT = Aws::String>
  void SetNaturalLanguage(NaturalLanguageT&& value) {
    m_naturalLanguageHasBeenSet = true;
    m_naturalLanguage = std::forward<NaturalLanguageT>(value);
  }
  template <typename NaturalLanguageT = Aws::String>
  CuratedQuery& WithNaturalLanguage(NaturalLanguageT&& value) {
    SetNaturalLanguage(std::forward<NaturalLanguageT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The SQL equivalent of the natural language query.</p>
   */
  inline const Aws::String& GetSql() const { return m_sql; }
  inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
  template <typename SqlT = Aws::String>
  void SetSql(SqlT&& value) {
    m_sqlHasBeenSet = true;
    m_sql = std::forward<SqlT>(value);
  }
  template <typename SqlT = Aws::String>
  CuratedQuery& WithSql(SqlT&& value) {
    SetSql(std::forward<SqlT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_naturalLanguage;

  Aws::String m_sql;
  bool m_naturalLanguageHasBeenSet = false;
  bool m_sqlHasBeenSet = false;
};

}  // namespace Model
}  // namespace BedrockAgent
}  // namespace Aws
