AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CuratedQuery.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_BEDROCKAGENT_API CuratedQuery() = default;
37 AWS_BEDROCKAGENT_API CuratedQuery(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BEDROCKAGENT_API CuratedQuery& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetNaturalLanguage() const { return m_naturalLanguage; }
47 inline bool NaturalLanguageHasBeenSet() const { return m_naturalLanguageHasBeenSet; }
48 template<typename NaturalLanguageT = Aws::String>
49 void SetNaturalLanguage(NaturalLanguageT&& value) { m_naturalLanguageHasBeenSet = true; m_naturalLanguage = std::forward<NaturalLanguageT>(value); }
50 template<typename NaturalLanguageT = Aws::String>
51 CuratedQuery& WithNaturalLanguage(NaturalLanguageT&& value) { SetNaturalLanguage(std::forward<NaturalLanguageT>(value)); return *this;}
53
55
58 inline const Aws::String& GetSql() const { return m_sql; }
59 inline bool SqlHasBeenSet() const { return m_sqlHasBeenSet; }
60 template<typename SqlT = Aws::String>
61 void SetSql(SqlT&& value) { m_sqlHasBeenSet = true; m_sql = std::forward<SqlT>(value); }
62 template<typename SqlT = Aws::String>
63 CuratedQuery& WithSql(SqlT&& value) { SetSql(std::forward<SqlT>(value)); return *this;}
65 private:
66
67 Aws::String m_naturalLanguage;
68 bool m_naturalLanguageHasBeenSet = false;
69
70 Aws::String m_sql;
71 bool m_sqlHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace BedrockAgent
76} // namespace Aws
AWS_BEDROCKAGENT_API CuratedQuery(Aws::Utils::Json::JsonView jsonValue)
void SetNaturalLanguage(NaturalLanguageT &&value)
CuratedQuery & WithSql(SqlT &&value)
AWS_BEDROCKAGENT_API CuratedQuery & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSql() const
AWS_BEDROCKAGENT_API CuratedQuery()=default
const Aws::String & GetNaturalLanguage() const
CuratedQuery & WithNaturalLanguage(NaturalLanguageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue