AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
Connection.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 {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace PartnerCentralAccount {
24namespace Model {
25
33 public:
34 AWS_PARTNERCENTRALACCOUNT_API Connection() = default;
35 AWS_PARTNERCENTRALACCOUNT_API Connection(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALACCOUNT_API Connection& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PARTNERCENTRALACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetCatalog() const { return m_catalog; }
44 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
45 template <typename CatalogT = Aws::String>
46 void SetCatalog(CatalogT&& value) {
47 m_catalogHasBeenSet = true;
48 m_catalog = std::forward<CatalogT>(value);
49 }
50 template <typename CatalogT = Aws::String>
51 Connection& WithCatalog(CatalogT&& value) {
52 SetCatalog(std::forward<CatalogT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetId() const { return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 template <typename IdT = Aws::String>
64 void SetId(IdT&& value) {
65 m_idHasBeenSet = true;
66 m_id = std::forward<IdT>(value);
67 }
68 template <typename IdT = Aws::String>
69 Connection& WithId(IdT&& value) {
70 SetId(std::forward<IdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetArn() const { return m_arn; }
80 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
81 template <typename ArnT = Aws::String>
82 void SetArn(ArnT&& value) {
83 m_arnHasBeenSet = true;
84 m_arn = std::forward<ArnT>(value);
85 }
86 template <typename ArnT = Aws::String>
87 Connection& WithArn(ArnT&& value) {
88 SetArn(std::forward<ArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetOtherParticipantAccountId() const { return m_otherParticipantAccountId; }
98 inline bool OtherParticipantAccountIdHasBeenSet() const { return m_otherParticipantAccountIdHasBeenSet; }
99 template <typename OtherParticipantAccountIdT = Aws::String>
100 void SetOtherParticipantAccountId(OtherParticipantAccountIdT&& value) {
101 m_otherParticipantAccountIdHasBeenSet = true;
102 m_otherParticipantAccountId = std::forward<OtherParticipantAccountIdT>(value);
103 }
104 template <typename OtherParticipantAccountIdT = Aws::String>
105 Connection& WithOtherParticipantAccountId(OtherParticipantAccountIdT&& value) {
106 SetOtherParticipantAccountId(std::forward<OtherParticipantAccountIdT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
116 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
117 template <typename UpdatedAtT = Aws::Utils::DateTime>
118 void SetUpdatedAt(UpdatedAtT&& value) {
119 m_updatedAtHasBeenSet = true;
120 m_updatedAt = std::forward<UpdatedAtT>(value);
121 }
122 template <typename UpdatedAtT = Aws::Utils::DateTime>
123 Connection& WithUpdatedAt(UpdatedAtT&& value) {
124 SetUpdatedAt(std::forward<UpdatedAtT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Map<ConnectionType, ConnectionTypeDetail>& GetConnectionTypes() const { return m_connectionTypes; }
134 inline bool ConnectionTypesHasBeenSet() const { return m_connectionTypesHasBeenSet; }
135 template <typename ConnectionTypesT = Aws::Map<ConnectionType, ConnectionTypeDetail>>
136 void SetConnectionTypes(ConnectionTypesT&& value) {
137 m_connectionTypesHasBeenSet = true;
138 m_connectionTypes = std::forward<ConnectionTypesT>(value);
139 }
140 template <typename ConnectionTypesT = Aws::Map<ConnectionType, ConnectionTypeDetail>>
141 Connection& WithConnectionTypes(ConnectionTypesT&& value) {
142 SetConnectionTypes(std::forward<ConnectionTypesT>(value));
143 return *this;
144 }
146 m_connectionTypesHasBeenSet = true;
147 m_connectionTypes.emplace(key, value);
148 return *this;
149 }
151 private:
152 Aws::String m_catalog;
153
154 Aws::String m_id;
155
156 Aws::String m_arn;
157
158 Aws::String m_otherParticipantAccountId;
159
160 Aws::Utils::DateTime m_updatedAt{};
161
163 bool m_catalogHasBeenSet = false;
164 bool m_idHasBeenSet = false;
165 bool m_arnHasBeenSet = false;
166 bool m_otherParticipantAccountIdHasBeenSet = false;
167 bool m_updatedAtHasBeenSet = false;
168 bool m_connectionTypesHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace PartnerCentralAccount
173} // namespace Aws
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Connection.h:115
Connection & WithConnectionTypes(ConnectionTypesT &&value)
Definition Connection.h:141
const Aws::String & GetCatalog() const
Definition Connection.h:43
AWS_PARTNERCENTRALACCOUNT_API Connection & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< ConnectionType, ConnectionTypeDetail > & GetConnectionTypes() const
Definition Connection.h:133
Connection & WithOtherParticipantAccountId(OtherParticipantAccountIdT &&value)
Definition Connection.h:105
AWS_PARTNERCENTRALACCOUNT_API Connection()=default
Connection & WithCatalog(CatalogT &&value)
Definition Connection.h:51
Connection & WithUpdatedAt(UpdatedAtT &&value)
Definition Connection.h:123
void SetOtherParticipantAccountId(OtherParticipantAccountIdT &&value)
Definition Connection.h:100
AWS_PARTNERCENTRALACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetOtherParticipantAccountId() const
Definition Connection.h:97
AWS_PARTNERCENTRALACCOUNT_API Connection(Aws::Utils::Json::JsonView jsonValue)
void SetConnectionTypes(ConnectionTypesT &&value)
Definition Connection.h:136
Connection & AddConnectionTypes(ConnectionType key, ConnectionTypeDetail value)
Definition Connection.h:145
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