AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
CancelConnectionResult.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/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
12#include <aws/partnercentral-account/model/ConnectionType.h>
13#include <aws/partnercentral-account/model/ConnectionTypeDetail.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace PartnerCentralAccount {
27namespace Model {
29 public:
30 AWS_PARTNERCENTRALACCOUNT_API CancelConnectionResult() = default;
33
35
38 inline const Aws::String& GetCatalog() const { return m_catalog; }
39 template <typename CatalogT = Aws::String>
40 void SetCatalog(CatalogT&& value) {
41 m_catalogHasBeenSet = true;
42 m_catalog = std::forward<CatalogT>(value);
43 }
44 template <typename CatalogT = Aws::String>
46 SetCatalog(std::forward<CatalogT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetId() const { return m_id; }
56 template <typename IdT = Aws::String>
57 void SetId(IdT&& value) {
58 m_idHasBeenSet = true;
59 m_id = std::forward<IdT>(value);
60 }
61 template <typename IdT = Aws::String>
63 SetId(std::forward<IdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetArn() const { return m_arn; }
73 template <typename ArnT = Aws::String>
74 void SetArn(ArnT&& value) {
75 m_arnHasBeenSet = true;
76 m_arn = std::forward<ArnT>(value);
77 }
78 template <typename ArnT = Aws::String>
80 SetArn(std::forward<ArnT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetOtherParticipantAccountId() const { return m_otherParticipantAccountId; }
90 template <typename OtherParticipantAccountIdT = Aws::String>
91 void SetOtherParticipantAccountId(OtherParticipantAccountIdT&& value) {
92 m_otherParticipantAccountIdHasBeenSet = true;
93 m_otherParticipantAccountId = std::forward<OtherParticipantAccountIdT>(value);
94 }
95 template <typename OtherParticipantAccountIdT = Aws::String>
96 CancelConnectionResult& WithOtherParticipantAccountId(OtherParticipantAccountIdT&& value) {
97 SetOtherParticipantAccountId(std::forward<OtherParticipantAccountIdT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
107 template <typename UpdatedAtT = Aws::Utils::DateTime>
108 void SetUpdatedAt(UpdatedAtT&& value) {
109 m_updatedAtHasBeenSet = true;
110 m_updatedAt = std::forward<UpdatedAtT>(value);
111 }
112 template <typename UpdatedAtT = Aws::Utils::DateTime>
114 SetUpdatedAt(std::forward<UpdatedAtT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Map<ConnectionType, ConnectionTypeDetail>& GetConnectionTypes() const { return m_connectionTypes; }
124 template <typename ConnectionTypesT = Aws::Map<ConnectionType, ConnectionTypeDetail>>
125 void SetConnectionTypes(ConnectionTypesT&& value) {
126 m_connectionTypesHasBeenSet = true;
127 m_connectionTypes = std::forward<ConnectionTypesT>(value);
128 }
129 template <typename ConnectionTypesT = Aws::Map<ConnectionType, ConnectionTypeDetail>>
130 CancelConnectionResult& WithConnectionTypes(ConnectionTypesT&& value) {
131 SetConnectionTypes(std::forward<ConnectionTypesT>(value));
132 return *this;
133 }
135 m_connectionTypesHasBeenSet = true;
136 m_connectionTypes.emplace(key, value);
137 return *this;
138 }
140
142
143 inline const Aws::String& GetRequestId() const { return m_requestId; }
144 template <typename RequestIdT = Aws::String>
145 void SetRequestId(RequestIdT&& value) {
146 m_requestIdHasBeenSet = true;
147 m_requestId = std::forward<RequestIdT>(value);
148 }
149 template <typename RequestIdT = Aws::String>
151 SetRequestId(std::forward<RequestIdT>(value));
152 return *this;
153 }
155 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
156
157 private:
158 Aws::String m_catalog;
159
160 Aws::String m_id;
161
162 Aws::String m_arn;
163
164 Aws::String m_otherParticipantAccountId;
165
166 Aws::Utils::DateTime m_updatedAt{};
167
169
170 Aws::String m_requestId;
171 Aws::Http::HttpResponseCode m_HttpResponseCode;
172 bool m_catalogHasBeenSet = false;
173 bool m_idHasBeenSet = false;
174 bool m_arnHasBeenSet = false;
175 bool m_otherParticipantAccountIdHasBeenSet = false;
176 bool m_updatedAtHasBeenSet = false;
177 bool m_connectionTypesHasBeenSet = false;
178 bool m_requestIdHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace PartnerCentralAccount
183} // namespace Aws
CancelConnectionResult & WithRequestId(RequestIdT &&value)
CancelConnectionResult & WithCatalog(CatalogT &&value)
AWS_PARTNERCENTRALACCOUNT_API CancelConnectionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_PARTNERCENTRALACCOUNT_API CancelConnectionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CancelConnectionResult & WithUpdatedAt(UpdatedAtT &&value)
void SetOtherParticipantAccountId(OtherParticipantAccountIdT &&value)
CancelConnectionResult & WithConnectionTypes(ConnectionTypesT &&value)
AWS_PARTNERCENTRALACCOUNT_API CancelConnectionResult()=default
CancelConnectionResult & WithOtherParticipantAccountId(OtherParticipantAccountIdT &&value)
CancelConnectionResult & AddConnectionTypes(ConnectionType key, ConnectionTypeDetail value)
const Aws::Map< ConnectionType, ConnectionTypeDetail > & GetConnectionTypes() const
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