AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchCreateCustomVocabularyItemResult.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-models/model/FailedCustomVocabularyItem.h>
11#include <aws/lexv2-models/model/CustomVocabularyItem.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace LexModelsV2
27{
28namespace Model
29{
31 {
32 public:
36
37
39
42 inline const Aws::String& GetBotId() const{ return m_botId; }
43 inline void SetBotId(const Aws::String& value) { m_botId = value; }
44 inline void SetBotId(Aws::String&& value) { m_botId = std::move(value); }
45 inline void SetBotId(const char* value) { m_botId.assign(value); }
46 inline BatchCreateCustomVocabularyItemResult& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
47 inline BatchCreateCustomVocabularyItemResult& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
48 inline BatchCreateCustomVocabularyItemResult& WithBotId(const char* value) { SetBotId(value); return *this;}
50
52
56 inline const Aws::String& GetBotVersion() const{ return m_botVersion; }
57 inline void SetBotVersion(const Aws::String& value) { m_botVersion = value; }
58 inline void SetBotVersion(Aws::String&& value) { m_botVersion = std::move(value); }
59 inline void SetBotVersion(const char* value) { m_botVersion.assign(value); }
61 inline BatchCreateCustomVocabularyItemResult& WithBotVersion(Aws::String&& value) { SetBotVersion(std::move(value)); return *this;}
62 inline BatchCreateCustomVocabularyItemResult& WithBotVersion(const char* value) { SetBotVersion(value); return *this;}
64
66
72 inline const Aws::String& GetLocaleId() const{ return m_localeId; }
73 inline void SetLocaleId(const Aws::String& value) { m_localeId = value; }
74 inline void SetLocaleId(Aws::String&& value) { m_localeId = std::move(value); }
75 inline void SetLocaleId(const char* value) { m_localeId.assign(value); }
76 inline BatchCreateCustomVocabularyItemResult& WithLocaleId(const Aws::String& value) { SetLocaleId(value); return *this;}
77 inline BatchCreateCustomVocabularyItemResult& WithLocaleId(Aws::String&& value) { SetLocaleId(std::move(value)); return *this;}
78 inline BatchCreateCustomVocabularyItemResult& WithLocaleId(const char* value) { SetLocaleId(value); return *this;}
80
82
86 inline const Aws::Vector<FailedCustomVocabularyItem>& GetErrors() const{ return m_errors; }
87 inline void SetErrors(const Aws::Vector<FailedCustomVocabularyItem>& value) { m_errors = value; }
88 inline void SetErrors(Aws::Vector<FailedCustomVocabularyItem>&& value) { m_errors = std::move(value); }
91 inline BatchCreateCustomVocabularyItemResult& AddErrors(const FailedCustomVocabularyItem& value) { m_errors.push_back(value); return *this; }
92 inline BatchCreateCustomVocabularyItemResult& AddErrors(FailedCustomVocabularyItem&& value) { m_errors.push_back(std::move(value)); return *this; }
94
96
100 inline const Aws::Vector<CustomVocabularyItem>& GetResources() const{ return m_resources; }
101 inline void SetResources(const Aws::Vector<CustomVocabularyItem>& value) { m_resources = value; }
102 inline void SetResources(Aws::Vector<CustomVocabularyItem>&& value) { m_resources = std::move(value); }
105 inline BatchCreateCustomVocabularyItemResult& AddResources(const CustomVocabularyItem& value) { m_resources.push_back(value); return *this; }
106 inline BatchCreateCustomVocabularyItemResult& AddResources(CustomVocabularyItem&& value) { m_resources.push_back(std::move(value)); return *this; }
108
110
111 inline const Aws::String& GetRequestId() const{ return m_requestId; }
112 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
113 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
114 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
116 inline BatchCreateCustomVocabularyItemResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
117 inline BatchCreateCustomVocabularyItemResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
119 private:
120
121 Aws::String m_botId;
122
123 Aws::String m_botVersion;
124
125 Aws::String m_localeId;
126
128
130
131 Aws::String m_requestId;
132 };
133
134} // namespace Model
135} // namespace LexModelsV2
136} // namespace Aws
BatchCreateCustomVocabularyItemResult & WithBotVersion(Aws::String &&value)
BatchCreateCustomVocabularyItemResult & AddResources(CustomVocabularyItem &&value)
BatchCreateCustomVocabularyItemResult & AddErrors(FailedCustomVocabularyItem &&value)
BatchCreateCustomVocabularyItemResult & WithBotId(Aws::String &&value)
BatchCreateCustomVocabularyItemResult & WithBotVersion(const Aws::String &value)
BatchCreateCustomVocabularyItemResult & WithBotId(const Aws::String &value)
const Aws::Vector< FailedCustomVocabularyItem > & GetErrors() const
BatchCreateCustomVocabularyItemResult & WithBotVersion(const char *value)
void SetErrors(const Aws::Vector< FailedCustomVocabularyItem > &value)
BatchCreateCustomVocabularyItemResult & WithLocaleId(const Aws::String &value)
BatchCreateCustomVocabularyItemResult & WithResources(const Aws::Vector< CustomVocabularyItem > &value)
AWS_LEXMODELSV2_API BatchCreateCustomVocabularyItemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchCreateCustomVocabularyItemResult & WithRequestId(const Aws::String &value)
AWS_LEXMODELSV2_API BatchCreateCustomVocabularyItemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchCreateCustomVocabularyItemResult & WithBotId(const char *value)
BatchCreateCustomVocabularyItemResult & WithRequestId(const char *value)
BatchCreateCustomVocabularyItemResult & WithErrors(Aws::Vector< FailedCustomVocabularyItem > &&value)
BatchCreateCustomVocabularyItemResult & AddResources(const CustomVocabularyItem &value)
BatchCreateCustomVocabularyItemResult & WithLocaleId(Aws::String &&value)
BatchCreateCustomVocabularyItemResult & WithRequestId(Aws::String &&value)
BatchCreateCustomVocabularyItemResult & WithErrors(const Aws::Vector< FailedCustomVocabularyItem > &value)
BatchCreateCustomVocabularyItemResult & WithResources(Aws::Vector< CustomVocabularyItem > &&value)
BatchCreateCustomVocabularyItemResult & AddErrors(const FailedCustomVocabularyItem &value)
BatchCreateCustomVocabularyItemResult & WithLocaleId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue