AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
DescribeBotReplicaResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
12#include <aws/lexv2-models/model/BotReplicaStatus.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace LexModelsV2 {
26namespace Model {
28 public:
29 AWS_LEXMODELSV2_API DescribeBotReplicaResult() = default;
32
34
37 inline const Aws::String& GetBotId() const { return m_botId; }
38 template <typename BotIdT = Aws::String>
39 void SetBotId(BotIdT&& value) {
40 m_botIdHasBeenSet = true;
41 m_botId = std::forward<BotIdT>(value);
42 }
43 template <typename BotIdT = Aws::String>
45 SetBotId(std::forward<BotIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetReplicaRegion() const { return m_replicaRegion; }
55 template <typename ReplicaRegionT = Aws::String>
56 void SetReplicaRegion(ReplicaRegionT&& value) {
57 m_replicaRegionHasBeenSet = true;
58 m_replicaRegion = std::forward<ReplicaRegionT>(value);
59 }
60 template <typename ReplicaRegionT = Aws::String>
62 SetReplicaRegion(std::forward<ReplicaRegionT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetSourceRegion() const { return m_sourceRegion; }
72 template <typename SourceRegionT = Aws::String>
73 void SetSourceRegion(SourceRegionT&& value) {
74 m_sourceRegionHasBeenSet = true;
75 m_sourceRegion = std::forward<SourceRegionT>(value);
76 }
77 template <typename SourceRegionT = Aws::String>
79 SetSourceRegion(std::forward<SourceRegionT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::Utils::DateTime& GetCreationDateTime() const { return m_creationDateTime; }
89 template <typename CreationDateTimeT = Aws::Utils::DateTime>
90 void SetCreationDateTime(CreationDateTimeT&& value) {
91 m_creationDateTimeHasBeenSet = true;
92 m_creationDateTime = std::forward<CreationDateTimeT>(value);
93 }
94 template <typename CreationDateTimeT = Aws::Utils::DateTime>
95 DescribeBotReplicaResult& WithCreationDateTime(CreationDateTimeT&& value) {
96 SetCreationDateTime(std::forward<CreationDateTimeT>(value));
97 return *this;
98 }
100
102
105 inline BotReplicaStatus GetBotReplicaStatus() const { return m_botReplicaStatus; }
107 m_botReplicaStatusHasBeenSet = true;
108 m_botReplicaStatus = value;
109 }
111 SetBotReplicaStatus(value);
112 return *this;
113 }
115
117
120 inline const Aws::Vector<Aws::String>& GetFailureReasons() const { return m_failureReasons; }
121 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
122 void SetFailureReasons(FailureReasonsT&& value) {
123 m_failureReasonsHasBeenSet = true;
124 m_failureReasons = std::forward<FailureReasonsT>(value);
125 }
126 template <typename FailureReasonsT = Aws::Vector<Aws::String>>
128 SetFailureReasons(std::forward<FailureReasonsT>(value));
129 return *this;
130 }
131 template <typename FailureReasonsT = Aws::String>
132 DescribeBotReplicaResult& AddFailureReasons(FailureReasonsT&& value) {
133 m_failureReasonsHasBeenSet = true;
134 m_failureReasons.emplace_back(std::forward<FailureReasonsT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template <typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) {
144 m_requestIdHasBeenSet = true;
145 m_requestId = std::forward<RequestIdT>(value);
146 }
147 template <typename RequestIdT = Aws::String>
149 SetRequestId(std::forward<RequestIdT>(value));
150 return *this;
151 }
153 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
154
155 private:
156 Aws::String m_botId;
157
158 Aws::String m_replicaRegion;
159
160 Aws::String m_sourceRegion;
161
162 Aws::Utils::DateTime m_creationDateTime{};
163
165
166 Aws::Vector<Aws::String> m_failureReasons;
167
168 Aws::String m_requestId;
169 Aws::Http::HttpResponseCode m_HttpResponseCode;
170 bool m_botIdHasBeenSet = false;
171 bool m_replicaRegionHasBeenSet = false;
172 bool m_sourceRegionHasBeenSet = false;
173 bool m_creationDateTimeHasBeenSet = false;
174 bool m_botReplicaStatusHasBeenSet = false;
175 bool m_failureReasonsHasBeenSet = false;
176 bool m_requestIdHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace LexModelsV2
181} // namespace Aws
DescribeBotReplicaResult & WithSourceRegion(SourceRegionT &&value)
AWS_LEXMODELSV2_API DescribeBotReplicaResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LEXMODELSV2_API DescribeBotReplicaResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeBotReplicaResult & AddFailureReasons(FailureReasonsT &&value)
DescribeBotReplicaResult & WithBotId(BotIdT &&value)
const Aws::Vector< Aws::String > & GetFailureReasons() const
DescribeBotReplicaResult & WithBotReplicaStatus(BotReplicaStatus value)
DescribeBotReplicaResult & WithReplicaRegion(ReplicaRegionT &&value)
DescribeBotReplicaResult & WithFailureReasons(FailureReasonsT &&value)
DescribeBotReplicaResult & WithRequestId(RequestIdT &&value)
DescribeBotReplicaResult & WithCreationDateTime(CreationDateTimeT &&value)
AWS_LEXMODELSV2_API DescribeBotReplicaResult()=default
const Aws::Utils::DateTime & GetCreationDateTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue