AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ChatResponseConfigurationDetail.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/qbusiness/model/ChatResponseConfigurationStatus.h>
11#include <aws/qbusiness/model/ErrorDetail.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/qbusiness/model/ResponseConfigurationType.h>
14#include <aws/qbusiness/model/ResponseConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace QBusiness
28{
29namespace Model
30{
31
40 {
41 public:
42 AWS_QBUSINESS_API ChatResponseConfigurationDetail() = default;
45 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
54 inline const Aws::Map<ResponseConfigurationType, ResponseConfiguration>& GetResponseConfigurations() const { return m_responseConfigurations; }
55 inline bool ResponseConfigurationsHasBeenSet() const { return m_responseConfigurationsHasBeenSet; }
56 template<typename ResponseConfigurationsT = Aws::Map<ResponseConfigurationType, ResponseConfiguration>>
57 void SetResponseConfigurations(ResponseConfigurationsT&& value) { m_responseConfigurationsHasBeenSet = true; m_responseConfigurations = std::forward<ResponseConfigurationsT>(value); }
58 template<typename ResponseConfigurationsT = Aws::Map<ResponseConfigurationType, ResponseConfiguration>>
59 ChatResponseConfigurationDetail& WithResponseConfigurations(ResponseConfigurationsT&& value) { SetResponseConfigurations(std::forward<ResponseConfigurationsT>(value)); return *this;}
61 m_responseConfigurationsHasBeenSet = true; m_responseConfigurations.emplace(key, value); return *this;
62 }
64
66
71 inline const Aws::String& GetResponseConfigurationSummary() const { return m_responseConfigurationSummary; }
72 inline bool ResponseConfigurationSummaryHasBeenSet() const { return m_responseConfigurationSummaryHasBeenSet; }
73 template<typename ResponseConfigurationSummaryT = Aws::String>
74 void SetResponseConfigurationSummary(ResponseConfigurationSummaryT&& value) { m_responseConfigurationSummaryHasBeenSet = true; m_responseConfigurationSummary = std::forward<ResponseConfigurationSummaryT>(value); }
75 template<typename ResponseConfigurationSummaryT = Aws::String>
76 ChatResponseConfigurationDetail& WithResponseConfigurationSummary(ResponseConfigurationSummaryT&& value) { SetResponseConfigurationSummary(std::forward<ResponseConfigurationSummaryT>(value)); return *this;}
78
80
85 inline ChatResponseConfigurationStatus GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(ChatResponseConfigurationStatus value) { m_statusHasBeenSet = true; m_status = value; }
90
92
93 inline const ErrorDetail& GetError() const { return m_error; }
94 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
95 template<typename ErrorT = ErrorDetail>
96 void SetError(ErrorT&& value) { m_errorHasBeenSet = true; m_error = std::forward<ErrorT>(value); }
97 template<typename ErrorT = ErrorDetail>
98 ChatResponseConfigurationDetail& WithError(ErrorT&& value) { SetError(std::forward<ErrorT>(value)); return *this;}
100
102
107 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
108 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
109 template<typename UpdatedAtT = Aws::Utils::DateTime>
110 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
111 template<typename UpdatedAtT = Aws::Utils::DateTime>
112 ChatResponseConfigurationDetail& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
114 private:
115
117 bool m_responseConfigurationsHasBeenSet = false;
118
119 Aws::String m_responseConfigurationSummary;
120 bool m_responseConfigurationSummaryHasBeenSet = false;
121
123 bool m_statusHasBeenSet = false;
124
125 ErrorDetail m_error;
126 bool m_errorHasBeenSet = false;
127
128 Aws::Utils::DateTime m_updatedAt{};
129 bool m_updatedAtHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace QBusiness
134} // 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