AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
CancelConnectionResult.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/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
11#include <aws/partnercentral-account/model/ConnectionType.h>
12#include <aws/partnercentral-account/model/ConnectionTypeDetail.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 PartnerCentralAccount {
26namespace Model {
28 public:
29 AWS_PARTNERCENTRALACCOUNT_API CancelConnectionResult() = default;
32
34
37 inline const Aws::String& GetCatalog() const { return m_catalog; }
38 template <typename CatalogT = Aws::String>
39 void SetCatalog(CatalogT&& value) {
40 m_catalogHasBeenSet = true;
41 m_catalog = std::forward<CatalogT>(value);
42 }
43 template <typename CatalogT = Aws::String>
45 SetCatalog(std::forward<CatalogT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetId() const { return m_id; }
55 template <typename IdT = Aws::String>
56 void SetId(IdT&& value) {
57 m_idHasBeenSet = true;
58 m_id = std::forward<IdT>(value);
59 }
60 template <typename IdT = Aws::String>
62 SetId(std::forward<IdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetArn() const { return m_arn; }
72 template <typename ArnT = Aws::String>
73 void SetArn(ArnT&& value) {
74 m_arnHasBeenSet = true;
75 m_arn = std::forward<ArnT>(value);
76 }
77 template <typename ArnT = Aws::String>
79 SetArn(std::forward<ArnT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetOtherParticipantAccountId() const { return m_otherParticipantAccountId; }
89 template <typename OtherParticipantAccountIdT = Aws::String>
90 void SetOtherParticipantAccountId(OtherParticipantAccountIdT&& value) {
91 m_otherParticipantAccountIdHasBeenSet = true;
92 m_otherParticipantAccountId = std::forward<OtherParticipantAccountIdT>(value);
93 }
94 template <typename OtherParticipantAccountIdT = Aws::String>
95 CancelConnectionResult& WithOtherParticipantAccountId(OtherParticipantAccountIdT&& value) {
96 SetOtherParticipantAccountId(std::forward<OtherParticipantAccountIdT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
106 template <typename UpdatedAtT = Aws::Utils::DateTime>
107 void SetUpdatedAt(UpdatedAtT&& value) {
108 m_updatedAtHasBeenSet = true;
109 m_updatedAt = std::forward<UpdatedAtT>(value);
110 }
111 template <typename UpdatedAtT = Aws::Utils::DateTime>
113 SetUpdatedAt(std::forward<UpdatedAtT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::Map<ConnectionType, ConnectionTypeDetail>& GetConnectionTypes() const { return m_connectionTypes; }
123 template <typename ConnectionTypesT = Aws::Map<ConnectionType, ConnectionTypeDetail>>
124 void SetConnectionTypes(ConnectionTypesT&& value) {
125 m_connectionTypesHasBeenSet = true;
126 m_connectionTypes = std::forward<ConnectionTypesT>(value);
127 }
128 template <typename ConnectionTypesT = Aws::Map<ConnectionType, ConnectionTypeDetail>>
129 CancelConnectionResult& WithConnectionTypes(ConnectionTypesT&& value) {
130 SetConnectionTypes(std::forward<ConnectionTypesT>(value));
131 return *this;
132 }
134 m_connectionTypesHasBeenSet = true;
135 m_connectionTypes.emplace(key, value);
136 return *this;
137 }
139
141
142 inline const Aws::String& GetRequestId() const { return m_requestId; }
143 template <typename RequestIdT = Aws::String>
144 void SetRequestId(RequestIdT&& value) {
145 m_requestIdHasBeenSet = true;
146 m_requestId = std::forward<RequestIdT>(value);
147 }
148 template <typename RequestIdT = Aws::String>
150 SetRequestId(std::forward<RequestIdT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_catalog;
156
157 Aws::String m_id;
158
159 Aws::String m_arn;
160
161 Aws::String m_otherParticipantAccountId;
162
163 Aws::Utils::DateTime m_updatedAt{};
164
166
167 Aws::String m_requestId;
168 bool m_catalogHasBeenSet = false;
169 bool m_idHasBeenSet = false;
170 bool m_arnHasBeenSet = false;
171 bool m_otherParticipantAccountIdHasBeenSet = false;
172 bool m_updatedAtHasBeenSet = false;
173 bool m_connectionTypesHasBeenSet = false;
174 bool m_requestIdHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace PartnerCentralAccount
179} // 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