AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BatchUpdateCustomVocabularyItemResult.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:
33 AWS_LEXMODELSV2_API BatchUpdateCustomVocabularyItemResult() = default;
36
37
39
42 inline const Aws::String& GetBotId() const { return m_botId; }
43 template<typename BotIdT = Aws::String>
44 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
45 template<typename BotIdT = Aws::String>
46 BatchUpdateCustomVocabularyItemResult& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
48
50
54 inline const Aws::String& GetBotVersion() const { return m_botVersion; }
55 template<typename BotVersionT = Aws::String>
56 void SetBotVersion(BotVersionT&& value) { m_botVersionHasBeenSet = true; m_botVersion = std::forward<BotVersionT>(value); }
57 template<typename BotVersionT = Aws::String>
58 BatchUpdateCustomVocabularyItemResult& WithBotVersion(BotVersionT&& value) { SetBotVersion(std::forward<BotVersionT>(value)); return *this;}
60
62
68 inline const Aws::String& GetLocaleId() const { return m_localeId; }
69 template<typename LocaleIdT = Aws::String>
70 void SetLocaleId(LocaleIdT&& value) { m_localeIdHasBeenSet = true; m_localeId = std::forward<LocaleIdT>(value); }
71 template<typename LocaleIdT = Aws::String>
72 BatchUpdateCustomVocabularyItemResult& WithLocaleId(LocaleIdT&& value) { SetLocaleId(std::forward<LocaleIdT>(value)); return *this;}
74
76
80 inline const Aws::Vector<FailedCustomVocabularyItem>& GetErrors() const { return m_errors; }
81 template<typename ErrorsT = Aws::Vector<FailedCustomVocabularyItem>>
82 void SetErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors = std::forward<ErrorsT>(value); }
83 template<typename ErrorsT = Aws::Vector<FailedCustomVocabularyItem>>
84 BatchUpdateCustomVocabularyItemResult& WithErrors(ErrorsT&& value) { SetErrors(std::forward<ErrorsT>(value)); return *this;}
85 template<typename ErrorsT = FailedCustomVocabularyItem>
86 BatchUpdateCustomVocabularyItemResult& AddErrors(ErrorsT&& value) { m_errorsHasBeenSet = true; m_errors.emplace_back(std::forward<ErrorsT>(value)); return *this; }
88
90
94 inline const Aws::Vector<CustomVocabularyItem>& GetResources() const { return m_resources; }
95 template<typename ResourcesT = Aws::Vector<CustomVocabularyItem>>
96 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
97 template<typename ResourcesT = Aws::Vector<CustomVocabularyItem>>
98 BatchUpdateCustomVocabularyItemResult& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
99 template<typename ResourcesT = CustomVocabularyItem>
100 BatchUpdateCustomVocabularyItemResult& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
102
104
105 inline const Aws::String& GetRequestId() const { return m_requestId; }
106 template<typename RequestIdT = Aws::String>
107 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
108 template<typename RequestIdT = Aws::String>
109 BatchUpdateCustomVocabularyItemResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
111 private:
112
113 Aws::String m_botId;
114 bool m_botIdHasBeenSet = false;
115
116 Aws::String m_botVersion;
117 bool m_botVersionHasBeenSet = false;
118
119 Aws::String m_localeId;
120 bool m_localeIdHasBeenSet = false;
121
123 bool m_errorsHasBeenSet = false;
124
126 bool m_resourcesHasBeenSet = false;
127
128 Aws::String m_requestId;
129 bool m_requestIdHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace LexModelsV2
134} // namespace Aws
BatchUpdateCustomVocabularyItemResult & WithRequestId(RequestIdT &&value)
BatchUpdateCustomVocabularyItemResult & AddResources(ResourcesT &&value)
BatchUpdateCustomVocabularyItemResult & WithBotVersion(BotVersionT &&value)
AWS_LEXMODELSV2_API BatchUpdateCustomVocabularyItemResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LEXMODELSV2_API BatchUpdateCustomVocabularyItemResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchUpdateCustomVocabularyItemResult & AddErrors(ErrorsT &&value)
const Aws::Vector< FailedCustomVocabularyItem > & GetErrors() const
BatchUpdateCustomVocabularyItemResult & WithResources(ResourcesT &&value)
BatchUpdateCustomVocabularyItemResult & WithLocaleId(LocaleIdT &&value)
BatchUpdateCustomVocabularyItemResult & WithErrors(ErrorsT &&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