AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ChatResponseConfigurationDetail.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qbusiness/QBusiness_EXPORTS.h>
11#include <aws/qbusiness/model/ChatResponseConfigurationStatus.h>
12#include <aws/qbusiness/model/ErrorDetail.h>
13#include <aws/qbusiness/model/ResponseConfiguration.h>
14#include <aws/qbusiness/model/ResponseConfigurationType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace QBusiness {
26namespace Model {
27
36 public:
37 AWS_QBUSINESS_API ChatResponseConfigurationDetail() = default;
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
49 return m_responseConfigurations;
50 }
51 inline bool ResponseConfigurationsHasBeenSet() const { return m_responseConfigurationsHasBeenSet; }
52 template <typename ResponseConfigurationsT = Aws::Map<ResponseConfigurationType, ResponseConfiguration>>
54 m_responseConfigurationsHasBeenSet = true;
55 m_responseConfigurations = std::forward<ResponseConfigurationsT>(value);
56 }
57 template <typename ResponseConfigurationsT = Aws::Map<ResponseConfigurationType, ResponseConfiguration>>
59 SetResponseConfigurations(std::forward<ResponseConfigurationsT>(value));
60 return *this;
61 }
63 m_responseConfigurationsHasBeenSet = true;
64 m_responseConfigurations.emplace(key, value);
65 return *this;
66 }
68
70
75 inline const Aws::String& GetResponseConfigurationSummary() const { return m_responseConfigurationSummary; }
76 inline bool ResponseConfigurationSummaryHasBeenSet() const { return m_responseConfigurationSummaryHasBeenSet; }
77 template <typename ResponseConfigurationSummaryT = Aws::String>
79 m_responseConfigurationSummaryHasBeenSet = true;
80 m_responseConfigurationSummary = std::forward<ResponseConfigurationSummaryT>(value);
81 }
82 template <typename ResponseConfigurationSummaryT = Aws::String>
84 SetResponseConfigurationSummary(std::forward<ResponseConfigurationSummaryT>(value));
85 return *this;
86 }
88
90
95 inline ChatResponseConfigurationStatus GetStatus() const { return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 m_statusHasBeenSet = true;
99 m_status = value;
100 }
102 SetStatus(value);
103 return *this;
104 }
106
108
109 inline const ErrorDetail& GetError() const { return m_error; }
110 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
111 template <typename ErrorT = ErrorDetail>
112 void SetError(ErrorT&& value) {
113 m_errorHasBeenSet = true;
114 m_error = std::forward<ErrorT>(value);
115 }
116 template <typename ErrorT = ErrorDetail>
118 SetError(std::forward<ErrorT>(value));
119 return *this;
120 }
122
124
129 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
130 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
131 template <typename UpdatedAtT = Aws::Utils::DateTime>
132 void SetUpdatedAt(UpdatedAtT&& value) {
133 m_updatedAtHasBeenSet = true;
134 m_updatedAt = std::forward<UpdatedAtT>(value);
135 }
136 template <typename UpdatedAtT = Aws::Utils::DateTime>
138 SetUpdatedAt(std::forward<UpdatedAtT>(value));
139 return *this;
140 }
142 private:
144
145 Aws::String m_responseConfigurationSummary;
146
148
149 ErrorDetail m_error;
150
151 Aws::Utils::DateTime m_updatedAt{};
152 bool m_responseConfigurationsHasBeenSet = false;
153 bool m_responseConfigurationSummaryHasBeenSet = false;
154 bool m_statusHasBeenSet = false;
155 bool m_errorHasBeenSet = false;
156 bool m_updatedAtHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace QBusiness
161} // namespace Aws
ChatResponseConfigurationDetail & WithUpdatedAt(UpdatedAtT &&value)
ChatResponseConfigurationDetail & WithResponseConfigurationSummary(ResponseConfigurationSummaryT &&value)
AWS_QBUSINESS_API ChatResponseConfigurationDetail()=default
const Aws::Map< ResponseConfigurationType, ResponseConfiguration > & GetResponseConfigurations() const
void SetResponseConfigurationSummary(ResponseConfigurationSummaryT &&value)
ChatResponseConfigurationDetail & WithStatus(ChatResponseConfigurationStatus value)
ChatResponseConfigurationDetail & AddResponseConfigurations(ResponseConfigurationType key, ResponseConfiguration value)
ChatResponseConfigurationDetail & WithError(ErrorT &&value)
AWS_QBUSINESS_API ChatResponseConfigurationDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API ChatResponseConfigurationDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
ChatResponseConfigurationDetail & WithResponseConfigurations(ResponseConfigurationsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue