AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
GetAccountAssociationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
11#include <aws/iot-managed-integrations/model/AssociationState.h>
12#include <aws/iot-managed-integrations/model/GeneralAuthorizationName.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 IoTManagedIntegrations {
26namespace Model {
28 public:
29 AWS_IOTMANAGEDINTEGRATIONS_API GetAccountAssociationResult() = default;
31 AWS_IOTMANAGEDINTEGRATIONS_API GetAccountAssociationResult& operator=(
33
35
38 inline const Aws::String& GetAccountAssociationId() const { return m_accountAssociationId; }
39 template <typename AccountAssociationIdT = Aws::String>
40 void SetAccountAssociationId(AccountAssociationIdT&& value) {
41 m_accountAssociationIdHasBeenSet = true;
42 m_accountAssociationId = std::forward<AccountAssociationIdT>(value);
43 }
44 template <typename AccountAssociationIdT = Aws::String>
45 GetAccountAssociationResult& WithAccountAssociationId(AccountAssociationIdT&& value) {
46 SetAccountAssociationId(std::forward<AccountAssociationIdT>(value));
47 return *this;
48 }
50
52
55 inline AssociationState GetAssociationState() const { return m_associationState; }
57 m_associationStateHasBeenSet = true;
58 m_associationState = value;
59 }
65
67
70 inline const Aws::String& GetErrorMessage() const { return m_errorMessage; }
71 template <typename ErrorMessageT = Aws::String>
72 void SetErrorMessage(ErrorMessageT&& value) {
73 m_errorMessageHasBeenSet = true;
74 m_errorMessage = std::forward<ErrorMessageT>(value);
75 }
76 template <typename ErrorMessageT = Aws::String>
78 SetErrorMessage(std::forward<ErrorMessageT>(value));
79 return *this;
80 }
82
84
88 inline const Aws::String& GetConnectorDestinationId() const { return m_connectorDestinationId; }
89 template <typename ConnectorDestinationIdT = Aws::String>
90 void SetConnectorDestinationId(ConnectorDestinationIdT&& value) {
91 m_connectorDestinationIdHasBeenSet = true;
92 m_connectorDestinationId = std::forward<ConnectorDestinationIdT>(value);
93 }
94 template <typename ConnectorDestinationIdT = Aws::String>
95 GetAccountAssociationResult& WithConnectorDestinationId(ConnectorDestinationIdT&& value) {
96 SetConnectorDestinationId(std::forward<ConnectorDestinationIdT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetName() const { return m_name; }
106 template <typename NameT = Aws::String>
107 void SetName(NameT&& value) {
108 m_nameHasBeenSet = true;
109 m_name = std::forward<NameT>(value);
110 }
111 template <typename NameT = Aws::String>
113 SetName(std::forward<NameT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetDescription() const { return m_description; }
123 template <typename DescriptionT = Aws::String>
124 void SetDescription(DescriptionT&& value) {
125 m_descriptionHasBeenSet = true;
126 m_description = std::forward<DescriptionT>(value);
127 }
128 template <typename DescriptionT = Aws::String>
130 SetDescription(std::forward<DescriptionT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::String& GetArn() const { return m_arn; }
140 template <typename ArnT = Aws::String>
141 void SetArn(ArnT&& value) {
142 m_arnHasBeenSet = true;
143 m_arn = std::forward<ArnT>(value);
144 }
145 template <typename ArnT = Aws::String>
147 SetArn(std::forward<ArnT>(value));
148 return *this;
149 }
151
153
158 inline const Aws::String& GetOAuthAuthorizationUrl() const { return m_oAuthAuthorizationUrl; }
159 template <typename OAuthAuthorizationUrlT = Aws::String>
160 void SetOAuthAuthorizationUrl(OAuthAuthorizationUrlT&& value) {
161 m_oAuthAuthorizationUrlHasBeenSet = true;
162 m_oAuthAuthorizationUrl = std::forward<OAuthAuthorizationUrlT>(value);
163 }
164 template <typename OAuthAuthorizationUrlT = Aws::String>
166 SetOAuthAuthorizationUrl(std::forward<OAuthAuthorizationUrlT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
176 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
177 void SetTags(TagsT&& value) {
178 m_tagsHasBeenSet = true;
179 m_tags = std::forward<TagsT>(value);
180 }
181 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
183 SetTags(std::forward<TagsT>(value));
184 return *this;
185 }
186 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
187 GetAccountAssociationResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
188 m_tagsHasBeenSet = true;
189 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
190 return *this;
191 }
193
195
198 inline const GeneralAuthorizationName& GetGeneralAuthorization() const { return m_generalAuthorization; }
199 template <typename GeneralAuthorizationT = GeneralAuthorizationName>
200 void SetGeneralAuthorization(GeneralAuthorizationT&& value) {
201 m_generalAuthorizationHasBeenSet = true;
202 m_generalAuthorization = std::forward<GeneralAuthorizationT>(value);
203 }
204 template <typename GeneralAuthorizationT = GeneralAuthorizationName>
206 SetGeneralAuthorization(std::forward<GeneralAuthorizationT>(value));
207 return *this;
208 }
210
212
213 inline const Aws::String& GetRequestId() const { return m_requestId; }
214 template <typename RequestIdT = Aws::String>
215 void SetRequestId(RequestIdT&& value) {
216 m_requestIdHasBeenSet = true;
217 m_requestId = std::forward<RequestIdT>(value);
218 }
219 template <typename RequestIdT = Aws::String>
221 SetRequestId(std::forward<RequestIdT>(value));
222 return *this;
223 }
225 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
226
227 private:
228 Aws::String m_accountAssociationId;
229
231
232 Aws::String m_errorMessage;
233
234 Aws::String m_connectorDestinationId;
235
236 Aws::String m_name;
237
238 Aws::String m_description;
239
240 Aws::String m_arn;
241
242 Aws::String m_oAuthAuthorizationUrl;
243
245
246 GeneralAuthorizationName m_generalAuthorization;
247
248 Aws::String m_requestId;
249 Aws::Http::HttpResponseCode m_HttpResponseCode;
250 bool m_accountAssociationIdHasBeenSet = false;
251 bool m_associationStateHasBeenSet = false;
252 bool m_errorMessageHasBeenSet = false;
253 bool m_connectorDestinationIdHasBeenSet = false;
254 bool m_nameHasBeenSet = false;
255 bool m_descriptionHasBeenSet = false;
256 bool m_arnHasBeenSet = false;
257 bool m_oAuthAuthorizationUrlHasBeenSet = false;
258 bool m_tagsHasBeenSet = false;
259 bool m_generalAuthorizationHasBeenSet = false;
260 bool m_requestIdHasBeenSet = false;
261};
262
263} // namespace Model
264} // namespace IoTManagedIntegrations
265} // namespace Aws
GetAccountAssociationResult & WithAssociationState(AssociationState value)
GetAccountAssociationResult & WithRequestId(RequestIdT &&value)
GetAccountAssociationResult & WithGeneralAuthorization(GeneralAuthorizationT &&value)
GetAccountAssociationResult & WithConnectorDestinationId(ConnectorDestinationIdT &&value)
GetAccountAssociationResult & WithDescription(DescriptionT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetAccountAssociationResult & WithOAuthAuthorizationUrl(OAuthAuthorizationUrlT &&value)
GetAccountAssociationResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API GetAccountAssociationResult()=default
GetAccountAssociationResult & WithAccountAssociationId(AccountAssociationIdT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API GetAccountAssociationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_IOTMANAGEDINTEGRATIONS_API GetAccountAssociationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAccountAssociationResult & WithErrorMessage(ErrorMessageT &&value)
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