AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SourceApiAssociation.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/SourceApiAssociationConfig.h>
9#include <aws/appsync/model/SourceApiAssociationStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync {
23namespace Model {
24
40 public:
41 AWS_APPSYNC_API SourceApiAssociation() = default;
44 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
50 inline const Aws::String& GetAssociationId() const { return m_associationId; }
51 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
52 template <typename AssociationIdT = Aws::String>
53 void SetAssociationId(AssociationIdT&& value) {
54 m_associationIdHasBeenSet = true;
55 m_associationId = std::forward<AssociationIdT>(value);
56 }
57 template <typename AssociationIdT = Aws::String>
58 SourceApiAssociation& WithAssociationId(AssociationIdT&& value) {
59 SetAssociationId(std::forward<AssociationIdT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetAssociationArn() const { return m_associationArn; }
69 inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
70 template <typename AssociationArnT = Aws::String>
71 void SetAssociationArn(AssociationArnT&& value) {
72 m_associationArnHasBeenSet = true;
73 m_associationArn = std::forward<AssociationArnT>(value);
74 }
75 template <typename AssociationArnT = Aws::String>
76 SourceApiAssociation& WithAssociationArn(AssociationArnT&& value) {
77 SetAssociationArn(std::forward<AssociationArnT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::String& GetSourceApiId() const { return m_sourceApiId; }
87 inline bool SourceApiIdHasBeenSet() const { return m_sourceApiIdHasBeenSet; }
88 template <typename SourceApiIdT = Aws::String>
89 void SetSourceApiId(SourceApiIdT&& value) {
90 m_sourceApiIdHasBeenSet = true;
91 m_sourceApiId = std::forward<SourceApiIdT>(value);
92 }
93 template <typename SourceApiIdT = Aws::String>
94 SourceApiAssociation& WithSourceApiId(SourceApiIdT&& value) {
95 SetSourceApiId(std::forward<SourceApiIdT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetSourceApiArn() const { return m_sourceApiArn; }
105 inline bool SourceApiArnHasBeenSet() const { return m_sourceApiArnHasBeenSet; }
106 template <typename SourceApiArnT = Aws::String>
107 void SetSourceApiArn(SourceApiArnT&& value) {
108 m_sourceApiArnHasBeenSet = true;
109 m_sourceApiArn = std::forward<SourceApiArnT>(value);
110 }
111 template <typename SourceApiArnT = Aws::String>
112 SourceApiAssociation& WithSourceApiArn(SourceApiArnT&& value) {
113 SetSourceApiArn(std::forward<SourceApiArnT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetMergedApiArn() const { return m_mergedApiArn; }
123 inline bool MergedApiArnHasBeenSet() const { return m_mergedApiArnHasBeenSet; }
124 template <typename MergedApiArnT = Aws::String>
125 void SetMergedApiArn(MergedApiArnT&& value) {
126 m_mergedApiArnHasBeenSet = true;
127 m_mergedApiArn = std::forward<MergedApiArnT>(value);
128 }
129 template <typename MergedApiArnT = Aws::String>
130 SourceApiAssociation& WithMergedApiArn(MergedApiArnT&& value) {
131 SetMergedApiArn(std::forward<MergedApiArnT>(value));
132 return *this;
133 }
135
137
140 inline const Aws::String& GetMergedApiId() const { return m_mergedApiId; }
141 inline bool MergedApiIdHasBeenSet() const { return m_mergedApiIdHasBeenSet; }
142 template <typename MergedApiIdT = Aws::String>
143 void SetMergedApiId(MergedApiIdT&& value) {
144 m_mergedApiIdHasBeenSet = true;
145 m_mergedApiId = std::forward<MergedApiIdT>(value);
146 }
147 template <typename MergedApiIdT = Aws::String>
148 SourceApiAssociation& WithMergedApiId(MergedApiIdT&& value) {
149 SetMergedApiId(std::forward<MergedApiIdT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetDescription() const { return m_description; }
159 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
160 template <typename DescriptionT = Aws::String>
161 void SetDescription(DescriptionT&& value) {
162 m_descriptionHasBeenSet = true;
163 m_description = std::forward<DescriptionT>(value);
164 }
165 template <typename DescriptionT = Aws::String>
166 SourceApiAssociation& WithDescription(DescriptionT&& value) {
167 SetDescription(std::forward<DescriptionT>(value));
168 return *this;
169 }
171
173
176 inline const SourceApiAssociationConfig& GetSourceApiAssociationConfig() const { return m_sourceApiAssociationConfig; }
177 inline bool SourceApiAssociationConfigHasBeenSet() const { return m_sourceApiAssociationConfigHasBeenSet; }
178 template <typename SourceApiAssociationConfigT = SourceApiAssociationConfig>
179 void SetSourceApiAssociationConfig(SourceApiAssociationConfigT&& value) {
180 m_sourceApiAssociationConfigHasBeenSet = true;
181 m_sourceApiAssociationConfig = std::forward<SourceApiAssociationConfigT>(value);
182 }
183 template <typename SourceApiAssociationConfigT = SourceApiAssociationConfig>
184 SourceApiAssociation& WithSourceApiAssociationConfig(SourceApiAssociationConfigT&& value) {
185 SetSourceApiAssociationConfig(std::forward<SourceApiAssociationConfigT>(value));
186 return *this;
187 }
189
191
194 inline SourceApiAssociationStatus GetSourceApiAssociationStatus() const { return m_sourceApiAssociationStatus; }
195 inline bool SourceApiAssociationStatusHasBeenSet() const { return m_sourceApiAssociationStatusHasBeenSet; }
197 m_sourceApiAssociationStatusHasBeenSet = true;
198 m_sourceApiAssociationStatus = value;
199 }
202 return *this;
203 }
205
207
211 inline const Aws::String& GetSourceApiAssociationStatusDetail() const { return m_sourceApiAssociationStatusDetail; }
212 inline bool SourceApiAssociationStatusDetailHasBeenSet() const { return m_sourceApiAssociationStatusDetailHasBeenSet; }
213 template <typename SourceApiAssociationStatusDetailT = Aws::String>
214 void SetSourceApiAssociationStatusDetail(SourceApiAssociationStatusDetailT&& value) {
215 m_sourceApiAssociationStatusDetailHasBeenSet = true;
216 m_sourceApiAssociationStatusDetail = std::forward<SourceApiAssociationStatusDetailT>(value);
217 }
218 template <typename SourceApiAssociationStatusDetailT = Aws::String>
219 SourceApiAssociation& WithSourceApiAssociationStatusDetail(SourceApiAssociationStatusDetailT&& value) {
220 SetSourceApiAssociationStatusDetail(std::forward<SourceApiAssociationStatusDetailT>(value));
221 return *this;
222 }
224
226
230 inline const Aws::Utils::DateTime& GetLastSuccessfulMergeDate() const { return m_lastSuccessfulMergeDate; }
231 inline bool LastSuccessfulMergeDateHasBeenSet() const { return m_lastSuccessfulMergeDateHasBeenSet; }
232 template <typename LastSuccessfulMergeDateT = Aws::Utils::DateTime>
233 void SetLastSuccessfulMergeDate(LastSuccessfulMergeDateT&& value) {
234 m_lastSuccessfulMergeDateHasBeenSet = true;
235 m_lastSuccessfulMergeDate = std::forward<LastSuccessfulMergeDateT>(value);
236 }
237 template <typename LastSuccessfulMergeDateT = Aws::Utils::DateTime>
238 SourceApiAssociation& WithLastSuccessfulMergeDate(LastSuccessfulMergeDateT&& value) {
239 SetLastSuccessfulMergeDate(std::forward<LastSuccessfulMergeDateT>(value));
240 return *this;
241 }
243 private:
244 Aws::String m_associationId;
245
246 Aws::String m_associationArn;
247
248 Aws::String m_sourceApiId;
249
250 Aws::String m_sourceApiArn;
251
252 Aws::String m_mergedApiArn;
253
254 Aws::String m_mergedApiId;
255
256 Aws::String m_description;
257
258 SourceApiAssociationConfig m_sourceApiAssociationConfig;
259
261
262 Aws::String m_sourceApiAssociationStatusDetail;
263
264 Aws::Utils::DateTime m_lastSuccessfulMergeDate{};
265 bool m_associationIdHasBeenSet = false;
266 bool m_associationArnHasBeenSet = false;
267 bool m_sourceApiIdHasBeenSet = false;
268 bool m_sourceApiArnHasBeenSet = false;
269 bool m_mergedApiArnHasBeenSet = false;
270 bool m_mergedApiIdHasBeenSet = false;
271 bool m_descriptionHasBeenSet = false;
272 bool m_sourceApiAssociationConfigHasBeenSet = false;
273 bool m_sourceApiAssociationStatusHasBeenSet = false;
274 bool m_sourceApiAssociationStatusDetailHasBeenSet = false;
275 bool m_lastSuccessfulMergeDateHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace AppSync
280} // namespace Aws
SourceApiAssociation & WithAssociationArn(AssociationArnT &&value)
const Aws::String & GetSourceApiAssociationStatusDetail() const
SourceApiAssociation & WithLastSuccessfulMergeDate(LastSuccessfulMergeDateT &&value)
void SetLastSuccessfulMergeDate(LastSuccessfulMergeDateT &&value)
const Aws::Utils::DateTime & GetLastSuccessfulMergeDate() const
SourceApiAssociation & WithDescription(DescriptionT &&value)
SourceApiAssociation & WithSourceApiAssociationStatus(SourceApiAssociationStatus value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
SourceApiAssociation & WithSourceApiId(SourceApiIdT &&value)
SourceApiAssociation & WithSourceApiAssociationConfig(SourceApiAssociationConfigT &&value)
AWS_APPSYNC_API SourceApiAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAssociationArn(AssociationArnT &&value)
SourceApiAssociation & WithMergedApiId(MergedApiIdT &&value)
const SourceApiAssociationConfig & GetSourceApiAssociationConfig() const
SourceApiAssociation & WithMergedApiArn(MergedApiArnT &&value)
SourceApiAssociation & WithSourceApiAssociationStatusDetail(SourceApiAssociationStatusDetailT &&value)
void SetSourceApiAssociationConfig(SourceApiAssociationConfigT &&value)
SourceApiAssociationStatus GetSourceApiAssociationStatus() const
void SetSourceApiAssociationStatusDetail(SourceApiAssociationStatusDetailT &&value)
void SetAssociationId(AssociationIdT &&value)
void SetSourceApiAssociationStatus(SourceApiAssociationStatus value)
AWS_APPSYNC_API SourceApiAssociation(Aws::Utils::Json::JsonView jsonValue)
SourceApiAssociation & WithAssociationId(AssociationIdT &&value)
AWS_APPSYNC_API SourceApiAssociation()=default
SourceApiAssociation & WithSourceApiArn(SourceApiArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue