AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SourceApiAssociation.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appsync/model/SourceApiAssociationConfig.h>
10#include <aws/appsync/model/SourceApiAssociationStatus.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppSync
25{
26namespace Model
27{
28
44 {
45 public:
46 AWS_APPSYNC_API SourceApiAssociation() = default;
49 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
56 inline const Aws::String& GetAssociationId() const { return m_associationId; }
57 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
58 template<typename AssociationIdT = Aws::String>
59 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
60 template<typename AssociationIdT = Aws::String>
61 SourceApiAssociation& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
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) { m_associationArnHasBeenSet = true; m_associationArn = std::forward<AssociationArnT>(value); }
72 template<typename AssociationArnT = Aws::String>
73 SourceApiAssociation& WithAssociationArn(AssociationArnT&& value) { SetAssociationArn(std::forward<AssociationArnT>(value)); return *this;}
75
77
80 inline const Aws::String& GetSourceApiId() const { return m_sourceApiId; }
81 inline bool SourceApiIdHasBeenSet() const { return m_sourceApiIdHasBeenSet; }
82 template<typename SourceApiIdT = Aws::String>
83 void SetSourceApiId(SourceApiIdT&& value) { m_sourceApiIdHasBeenSet = true; m_sourceApiId = std::forward<SourceApiIdT>(value); }
84 template<typename SourceApiIdT = Aws::String>
85 SourceApiAssociation& WithSourceApiId(SourceApiIdT&& value) { SetSourceApiId(std::forward<SourceApiIdT>(value)); return *this;}
87
89
92 inline const Aws::String& GetSourceApiArn() const { return m_sourceApiArn; }
93 inline bool SourceApiArnHasBeenSet() const { return m_sourceApiArnHasBeenSet; }
94 template<typename SourceApiArnT = Aws::String>
95 void SetSourceApiArn(SourceApiArnT&& value) { m_sourceApiArnHasBeenSet = true; m_sourceApiArn = std::forward<SourceApiArnT>(value); }
96 template<typename SourceApiArnT = Aws::String>
97 SourceApiAssociation& WithSourceApiArn(SourceApiArnT&& value) { SetSourceApiArn(std::forward<SourceApiArnT>(value)); return *this;}
99
101
104 inline const Aws::String& GetMergedApiArn() const { return m_mergedApiArn; }
105 inline bool MergedApiArnHasBeenSet() const { return m_mergedApiArnHasBeenSet; }
106 template<typename MergedApiArnT = Aws::String>
107 void SetMergedApiArn(MergedApiArnT&& value) { m_mergedApiArnHasBeenSet = true; m_mergedApiArn = std::forward<MergedApiArnT>(value); }
108 template<typename MergedApiArnT = Aws::String>
109 SourceApiAssociation& WithMergedApiArn(MergedApiArnT&& value) { SetMergedApiArn(std::forward<MergedApiArnT>(value)); return *this;}
111
113
116 inline const Aws::String& GetMergedApiId() const { return m_mergedApiId; }
117 inline bool MergedApiIdHasBeenSet() const { return m_mergedApiIdHasBeenSet; }
118 template<typename MergedApiIdT = Aws::String>
119 void SetMergedApiId(MergedApiIdT&& value) { m_mergedApiIdHasBeenSet = true; m_mergedApiId = std::forward<MergedApiIdT>(value); }
120 template<typename MergedApiIdT = Aws::String>
121 SourceApiAssociation& WithMergedApiId(MergedApiIdT&& value) { SetMergedApiId(std::forward<MergedApiIdT>(value)); return *this;}
123
125
128 inline const Aws::String& GetDescription() const { return m_description; }
129 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
130 template<typename DescriptionT = Aws::String>
131 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
132 template<typename DescriptionT = Aws::String>
133 SourceApiAssociation& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
135
137
140 inline const SourceApiAssociationConfig& GetSourceApiAssociationConfig() const { return m_sourceApiAssociationConfig; }
141 inline bool SourceApiAssociationConfigHasBeenSet() const { return m_sourceApiAssociationConfigHasBeenSet; }
142 template<typename SourceApiAssociationConfigT = SourceApiAssociationConfig>
143 void SetSourceApiAssociationConfig(SourceApiAssociationConfigT&& value) { m_sourceApiAssociationConfigHasBeenSet = true; m_sourceApiAssociationConfig = std::forward<SourceApiAssociationConfigT>(value); }
144 template<typename SourceApiAssociationConfigT = SourceApiAssociationConfig>
145 SourceApiAssociation& WithSourceApiAssociationConfig(SourceApiAssociationConfigT&& value) { SetSourceApiAssociationConfig(std::forward<SourceApiAssociationConfigT>(value)); return *this;}
147
149
152 inline SourceApiAssociationStatus GetSourceApiAssociationStatus() const { return m_sourceApiAssociationStatus; }
153 inline bool SourceApiAssociationStatusHasBeenSet() const { return m_sourceApiAssociationStatusHasBeenSet; }
154 inline void SetSourceApiAssociationStatus(SourceApiAssociationStatus value) { m_sourceApiAssociationStatusHasBeenSet = true; m_sourceApiAssociationStatus = value; }
157
159
163 inline const Aws::String& GetSourceApiAssociationStatusDetail() const { return m_sourceApiAssociationStatusDetail; }
164 inline bool SourceApiAssociationStatusDetailHasBeenSet() const { return m_sourceApiAssociationStatusDetailHasBeenSet; }
165 template<typename SourceApiAssociationStatusDetailT = Aws::String>
166 void SetSourceApiAssociationStatusDetail(SourceApiAssociationStatusDetailT&& value) { m_sourceApiAssociationStatusDetailHasBeenSet = true; m_sourceApiAssociationStatusDetail = std::forward<SourceApiAssociationStatusDetailT>(value); }
167 template<typename SourceApiAssociationStatusDetailT = Aws::String>
168 SourceApiAssociation& WithSourceApiAssociationStatusDetail(SourceApiAssociationStatusDetailT&& value) { SetSourceApiAssociationStatusDetail(std::forward<SourceApiAssociationStatusDetailT>(value)); return *this;}
170
172
176 inline const Aws::Utils::DateTime& GetLastSuccessfulMergeDate() const { return m_lastSuccessfulMergeDate; }
177 inline bool LastSuccessfulMergeDateHasBeenSet() const { return m_lastSuccessfulMergeDateHasBeenSet; }
178 template<typename LastSuccessfulMergeDateT = Aws::Utils::DateTime>
179 void SetLastSuccessfulMergeDate(LastSuccessfulMergeDateT&& value) { m_lastSuccessfulMergeDateHasBeenSet = true; m_lastSuccessfulMergeDate = std::forward<LastSuccessfulMergeDateT>(value); }
180 template<typename LastSuccessfulMergeDateT = Aws::Utils::DateTime>
181 SourceApiAssociation& WithLastSuccessfulMergeDate(LastSuccessfulMergeDateT&& value) { SetLastSuccessfulMergeDate(std::forward<LastSuccessfulMergeDateT>(value)); return *this;}
183 private:
184
185 Aws::String m_associationId;
186 bool m_associationIdHasBeenSet = false;
187
188 Aws::String m_associationArn;
189 bool m_associationArnHasBeenSet = false;
190
191 Aws::String m_sourceApiId;
192 bool m_sourceApiIdHasBeenSet = false;
193
194 Aws::String m_sourceApiArn;
195 bool m_sourceApiArnHasBeenSet = false;
196
197 Aws::String m_mergedApiArn;
198 bool m_mergedApiArnHasBeenSet = false;
199
200 Aws::String m_mergedApiId;
201 bool m_mergedApiIdHasBeenSet = false;
202
203 Aws::String m_description;
204 bool m_descriptionHasBeenSet = false;
205
206 SourceApiAssociationConfig m_sourceApiAssociationConfig;
207 bool m_sourceApiAssociationConfigHasBeenSet = false;
208
210 bool m_sourceApiAssociationStatusHasBeenSet = false;
211
212 Aws::String m_sourceApiAssociationStatusDetail;
213 bool m_sourceApiAssociationStatusDetailHasBeenSet = false;
214
215 Aws::Utils::DateTime m_lastSuccessfulMergeDate{};
216 bool m_lastSuccessfulMergeDateHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace AppSync
221} // 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