AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
UtteranceList.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
10#include <aws/lex-models/model/UtteranceData.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelBuildingService {
22namespace Model {
23
32 public:
33 AWS_LEXMODELBUILDINGSERVICE_API UtteranceList() = default;
34 AWS_LEXMODELBUILDINGSERVICE_API UtteranceList(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXMODELBUILDINGSERVICE_API UtteranceList& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
43 inline bool BotVersionHasBeenSet() const { return m_botVersionHasBeenSet; }
44 template <typename BotVersionT = Aws::String>
45 void SetBotVersion(BotVersionT&& value) {
46 m_botVersionHasBeenSet = true;
47 m_botVersion = std::forward<BotVersionT>(value);
48 }
49 template <typename BotVersionT = Aws::String>
50 UtteranceList& WithBotVersion(BotVersionT&& value) {
51 SetBotVersion(std::forward<BotVersionT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::Vector<UtteranceData>& GetUtterances() const { return m_utterances; }
63 inline bool UtterancesHasBeenSet() const { return m_utterancesHasBeenSet; }
64 template <typename UtterancesT = Aws::Vector<UtteranceData>>
65 void SetUtterances(UtterancesT&& value) {
66 m_utterancesHasBeenSet = true;
67 m_utterances = std::forward<UtterancesT>(value);
68 }
69 template <typename UtterancesT = Aws::Vector<UtteranceData>>
70 UtteranceList& WithUtterances(UtterancesT&& value) {
71 SetUtterances(std::forward<UtterancesT>(value));
72 return *this;
73 }
74 template <typename UtterancesT = UtteranceData>
75 UtteranceList& AddUtterances(UtterancesT&& value) {
76 m_utterancesHasBeenSet = true;
77 m_utterances.emplace_back(std::forward<UtterancesT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_botVersion;
83
84 Aws::Vector<UtteranceData> m_utterances;
85 bool m_botVersionHasBeenSet = false;
86 bool m_utterancesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace LexModelBuildingService
91} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API UtteranceList & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELBUILDINGSERVICE_API UtteranceList()=default
UtteranceList & AddUtterances(UtterancesT &&value)
UtteranceList & WithUtterances(UtterancesT &&value)
UtteranceList & WithBotVersion(BotVersionT &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< UtteranceData > & GetUtterances() const
AWS_LEXMODELBUILDINGSERVICE_API UtteranceList(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue