AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
ConnectionSummary.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/ConnectionTypeSummary.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 ConnectionSummary() = default;
35 AWS_PARTNERCENTRALACCOUNT_API ConnectionSummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PARTNERCENTRALACCOUNT_API ConnectionSummary& 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 ConnectionSummary& 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 ConnectionSummary& 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 ConnectionSummary& 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 ConnectionSummary& 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 ConnectionSummary& WithUpdatedAt(UpdatedAtT&& value) {
124 SetUpdatedAt(std::forward<UpdatedAtT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::Map<ConnectionType, ConnectionTypeSummary>& GetConnectionTypes() const { return m_connectionTypes; }
135 inline bool ConnectionTypesHasBeenSet() const { return m_connectionTypesHasBeenSet; }
136 template <typename ConnectionTypesT = Aws::Map<ConnectionType, ConnectionTypeSummary>>
137 void SetConnectionTypes(ConnectionTypesT&& value) {
138 m_connectionTypesHasBeenSet = true;
139 m_connectionTypes = std::forward<ConnectionTypesT>(value);
140 }
141 template <typename ConnectionTypesT = Aws::Map<ConnectionType, ConnectionTypeSummary>>
142 ConnectionSummary& WithConnectionTypes(ConnectionTypesT&& value) {
143 SetConnectionTypes(std::forward<ConnectionTypesT>(value));
144 return *this;
145 }
147 m_connectionTypesHasBeenSet = true;
148 m_connectionTypes.emplace(key, value);
149 return *this;
150 }
152 private:
153 Aws::String m_catalog;
154
155 Aws::String m_id;
156
157 Aws::String m_arn;
158
159 Aws::String m_otherParticipantAccountId;
160
161 Aws::Utils::DateTime m_updatedAt{};
162
164 bool m_catalogHasBeenSet = false;
165 bool m_idHasBeenSet = false;
166 bool m_arnHasBeenSet = false;
167 bool m_otherParticipantAccountIdHasBeenSet = false;
168 bool m_updatedAtHasBeenSet = false;
169 bool m_connectionTypesHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace PartnerCentralAccount
174} // namespace Aws
AWS_PARTNERCENTRALACCOUNT_API ConnectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectionSummary & WithOtherParticipantAccountId(OtherParticipantAccountIdT &&value)
void SetOtherParticipantAccountId(OtherParticipantAccountIdT &&value)
const Aws::Map< ConnectionType, ConnectionTypeSummary > & GetConnectionTypes() const
ConnectionSummary & WithCatalog(CatalogT &&value)
AWS_PARTNERCENTRALACCOUNT_API ConnectionSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_PARTNERCENTRALACCOUNT_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectionSummary & WithConnectionTypes(ConnectionTypesT &&value)
AWS_PARTNERCENTRALACCOUNT_API ConnectionSummary()=default
ConnectionSummary & WithUpdatedAt(UpdatedAtT &&value)
ConnectionSummary & AddConnectionTypes(ConnectionType key, ConnectionTypeSummary 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