AWS SDK for C++  1.9.157
AWS SDK for C++
Webhook.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Amplify
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetWebhookArn() const{ return m_webhookArn; }
46 
50  inline bool WebhookArnHasBeenSet() const { return m_webhookArnHasBeenSet; }
51 
55  inline void SetWebhookArn(const Aws::String& value) { m_webhookArnHasBeenSet = true; m_webhookArn = value; }
56 
60  inline void SetWebhookArn(Aws::String&& value) { m_webhookArnHasBeenSet = true; m_webhookArn = std::move(value); }
61 
65  inline void SetWebhookArn(const char* value) { m_webhookArnHasBeenSet = true; m_webhookArn.assign(value); }
66 
70  inline Webhook& WithWebhookArn(const Aws::String& value) { SetWebhookArn(value); return *this;}
71 
75  inline Webhook& WithWebhookArn(Aws::String&& value) { SetWebhookArn(std::move(value)); return *this;}
76 
80  inline Webhook& WithWebhookArn(const char* value) { SetWebhookArn(value); return *this;}
81 
82 
86  inline const Aws::String& GetWebhookId() const{ return m_webhookId; }
87 
91  inline bool WebhookIdHasBeenSet() const { return m_webhookIdHasBeenSet; }
92 
96  inline void SetWebhookId(const Aws::String& value) { m_webhookIdHasBeenSet = true; m_webhookId = value; }
97 
101  inline void SetWebhookId(Aws::String&& value) { m_webhookIdHasBeenSet = true; m_webhookId = std::move(value); }
102 
106  inline void SetWebhookId(const char* value) { m_webhookIdHasBeenSet = true; m_webhookId.assign(value); }
107 
111  inline Webhook& WithWebhookId(const Aws::String& value) { SetWebhookId(value); return *this;}
112 
116  inline Webhook& WithWebhookId(Aws::String&& value) { SetWebhookId(std::move(value)); return *this;}
117 
121  inline Webhook& WithWebhookId(const char* value) { SetWebhookId(value); return *this;}
122 
123 
127  inline const Aws::String& GetWebhookUrl() const{ return m_webhookUrl; }
128 
132  inline bool WebhookUrlHasBeenSet() const { return m_webhookUrlHasBeenSet; }
133 
137  inline void SetWebhookUrl(const Aws::String& value) { m_webhookUrlHasBeenSet = true; m_webhookUrl = value; }
138 
142  inline void SetWebhookUrl(Aws::String&& value) { m_webhookUrlHasBeenSet = true; m_webhookUrl = std::move(value); }
143 
147  inline void SetWebhookUrl(const char* value) { m_webhookUrlHasBeenSet = true; m_webhookUrl.assign(value); }
148 
152  inline Webhook& WithWebhookUrl(const Aws::String& value) { SetWebhookUrl(value); return *this;}
153 
157  inline Webhook& WithWebhookUrl(Aws::String&& value) { SetWebhookUrl(std::move(value)); return *this;}
158 
162  inline Webhook& WithWebhookUrl(const char* value) { SetWebhookUrl(value); return *this;}
163 
164 
168  inline const Aws::String& GetBranchName() const{ return m_branchName; }
169 
173  inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
174 
178  inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
179 
183  inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
184 
188  inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
189 
193  inline Webhook& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
194 
198  inline Webhook& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
199 
203  inline Webhook& WithBranchName(const char* value) { SetBranchName(value); return *this;}
204 
205 
209  inline const Aws::String& GetDescription() const{ return m_description; }
210 
214  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
215 
219  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
220 
224  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
225 
229  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
230 
234  inline Webhook& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
235 
239  inline Webhook& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
240 
244  inline Webhook& WithDescription(const char* value) { SetDescription(value); return *this;}
245 
246 
250  inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
251 
255  inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
256 
260  inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
261 
265  inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
266 
270  inline Webhook& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
271 
275  inline Webhook& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
276 
277 
281  inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
282 
286  inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
287 
291  inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
292 
296  inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
297 
301  inline Webhook& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
302 
306  inline Webhook& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
307 
308  private:
309 
310  Aws::String m_webhookArn;
311  bool m_webhookArnHasBeenSet;
312 
313  Aws::String m_webhookId;
314  bool m_webhookIdHasBeenSet;
315 
316  Aws::String m_webhookUrl;
317  bool m_webhookUrlHasBeenSet;
318 
319  Aws::String m_branchName;
320  bool m_branchNameHasBeenSet;
321 
322  Aws::String m_description;
323  bool m_descriptionHasBeenSet;
324 
325  Aws::Utils::DateTime m_createTime;
326  bool m_createTimeHasBeenSet;
327 
328  Aws::Utils::DateTime m_updateTime;
329  bool m_updateTimeHasBeenSet;
330  };
331 
332 } // namespace Model
333 } // namespace Amplify
334 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Amplify_EXPORTS.h
Aws::Amplify::Model::Webhook::Webhook
Webhook(Aws::Utils::Json::JsonView jsonValue)
Aws::Amplify::Model::Webhook::SetDescription
void SetDescription(const Aws::String &value)
Definition: Webhook.h:219
Aws::Amplify::Model::Webhook::WithBranchName
Webhook & WithBranchName(const char *value)
Definition: Webhook.h:203
Aws::Amplify::Model::Webhook::SetWebhookId
void SetWebhookId(Aws::String &&value)
Definition: Webhook.h:101
Aws::Amplify::Model::Webhook::GetWebhookId
const Aws::String & GetWebhookId() const
Definition: Webhook.h:86
Aws::Amplify::Model::Webhook::SetUpdateTime
void SetUpdateTime(Aws::Utils::DateTime &&value)
Definition: Webhook.h:296
Aws::Amplify::Model::Webhook::UpdateTimeHasBeenSet
bool UpdateTimeHasBeenSet() const
Definition: Webhook.h:286
Aws::Amplify::Model::Webhook::GetWebhookArn
const Aws::String & GetWebhookArn() const
Definition: Webhook.h:45
DateTime.h
Aws::Amplify::Model::Webhook::WebhookIdHasBeenSet
bool WebhookIdHasBeenSet() const
Definition: Webhook.h:91
Aws::Amplify::Model::Webhook::WithWebhookArn
Webhook & WithWebhookArn(Aws::String &&value)
Definition: Webhook.h:75
Aws::Amplify::Model::Webhook::WithWebhookArn
Webhook & WithWebhookArn(const Aws::String &value)
Definition: Webhook.h:70
Aws::Amplify::Model::Webhook::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: Webhook.h:214
Aws::Amplify::Model::Webhook::WithWebhookArn
Webhook & WithWebhookArn(const char *value)
Definition: Webhook.h:80
Aws::Amplify::Model::Webhook::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Amplify::Model::Webhook::SetCreateTime
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition: Webhook.h:265
Aws::Amplify::Model::Webhook::WebhookUrlHasBeenSet
bool WebhookUrlHasBeenSet() const
Definition: Webhook.h:132
Aws::Amplify::Model::Webhook::SetWebhookArn
void SetWebhookArn(const Aws::String &value)
Definition: Webhook.h:55
Aws::Amplify::Model::Webhook::WithWebhookUrl
Webhook & WithWebhookUrl(const Aws::String &value)
Definition: Webhook.h:152
Aws::Amplify::Model::Webhook::SetWebhookId
void SetWebhookId(const char *value)
Definition: Webhook.h:106
Aws::Amplify::Model::Webhook::SetBranchName
void SetBranchName(const Aws::String &value)
Definition: Webhook.h:178
Aws::Amplify::Model::Webhook::SetWebhookUrl
void SetWebhookUrl(const char *value)
Definition: Webhook.h:147
Aws::Amplify::Model::Webhook::operator=
Webhook & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Amplify::Model::Webhook::SetDescription
void SetDescription(Aws::String &&value)
Definition: Webhook.h:224
Aws::Amplify::Model::Webhook::WithBranchName
Webhook & WithBranchName(const Aws::String &value)
Definition: Webhook.h:193
Aws::Amplify::Model::Webhook::WebhookArnHasBeenSet
bool WebhookArnHasBeenSet() const
Definition: Webhook.h:50
Aws::Amplify::Model::Webhook::WithDescription
Webhook & WithDescription(const char *value)
Definition: Webhook.h:244
Aws::Amplify::Model::Webhook::GetDescription
const Aws::String & GetDescription() const
Definition: Webhook.h:209
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Amplify::Model::Webhook::SetWebhookId
void SetWebhookId(const Aws::String &value)
Definition: Webhook.h:96
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Amplify::Model::Webhook::SetBranchName
void SetBranchName(Aws::String &&value)
Definition: Webhook.h:183
Aws::Amplify::Model::Webhook::WithBranchName
Webhook & WithBranchName(Aws::String &&value)
Definition: Webhook.h:198
Aws::Amplify::Model::Webhook::SetWebhookArn
void SetWebhookArn(Aws::String &&value)
Definition: Webhook.h:60
Aws::Amplify::Model::Webhook::SetCreateTime
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition: Webhook.h:260
Aws::Amplify::Model::Webhook
Definition: Webhook.h:34
Aws::Amplify::Model::Webhook::GetUpdateTime
const Aws::Utils::DateTime & GetUpdateTime() const
Definition: Webhook.h:281
Aws::Amplify::Model::Webhook::WithWebhookId
Webhook & WithWebhookId(const char *value)
Definition: Webhook.h:121
Aws::Amplify::Model::Webhook::SetBranchName
void SetBranchName(const char *value)
Definition: Webhook.h:188
Aws::Amplify::Model::Webhook::WithCreateTime
Webhook & WithCreateTime(Aws::Utils::DateTime &&value)
Definition: Webhook.h:275
Aws::Amplify::Model::Webhook::WithUpdateTime
Webhook & WithUpdateTime(Aws::Utils::DateTime &&value)
Definition: Webhook.h:306
Aws::Amplify::Model::Webhook::SetDescription
void SetDescription(const char *value)
Definition: Webhook.h:229
Aws::Amplify::Model::Webhook::BranchNameHasBeenSet
bool BranchNameHasBeenSet() const
Definition: Webhook.h:173
Aws::Amplify::Model::Webhook::SetWebhookUrl
void SetWebhookUrl(const Aws::String &value)
Definition: Webhook.h:137
Aws::Amplify::Model::Webhook::GetWebhookUrl
const Aws::String & GetWebhookUrl() const
Definition: Webhook.h:127
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Amplify::Model::Webhook::GetCreateTime
const Aws::Utils::DateTime & GetCreateTime() const
Definition: Webhook.h:250
Aws::Amplify::Model::Webhook::SetWebhookArn
void SetWebhookArn(const char *value)
Definition: Webhook.h:65
Aws::Amplify::Model::Webhook::WithWebhookUrl
Webhook & WithWebhookUrl(const char *value)
Definition: Webhook.h:162
Aws::Amplify::Model::Webhook::WithDescription
Webhook & WithDescription(Aws::String &&value)
Definition: Webhook.h:239
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Amplify::Model::Webhook::WithWebhookId
Webhook & WithWebhookId(Aws::String &&value)
Definition: Webhook.h:116
Aws::Amplify::Model::Webhook::WithDescription
Webhook & WithDescription(const Aws::String &value)
Definition: Webhook.h:234
Aws::Amplify::Model::Webhook::WithCreateTime
Webhook & WithCreateTime(const Aws::Utils::DateTime &value)
Definition: Webhook.h:270
Aws::Amplify::Model::Webhook::Webhook
Webhook()
Aws::Amplify::Model::Webhook::SetWebhookUrl
void SetWebhookUrl(Aws::String &&value)
Definition: Webhook.h:142
Aws::Amplify::Model::Webhook::WithUpdateTime
Webhook & WithUpdateTime(const Aws::Utils::DateTime &value)
Definition: Webhook.h:301
Aws::Amplify::Model::Webhook::CreateTimeHasBeenSet
bool CreateTimeHasBeenSet() const
Definition: Webhook.h:255
AWS_AMPLIFY_API
#define AWS_AMPLIFY_API
Definition: Amplify_EXPORTS.h:28
Aws::Amplify::Model::Webhook::WithWebhookUrl
Webhook & WithWebhookUrl(Aws::String &&value)
Definition: Webhook.h:157
Aws::Amplify::Model::Webhook::SetUpdateTime
void SetUpdateTime(const Aws::Utils::DateTime &value)
Definition: Webhook.h:291
Aws::Amplify::Model::Webhook::WithWebhookId
Webhook & WithWebhookId(const Aws::String &value)
Definition: Webhook.h:111
Aws::Amplify::Model::Webhook::GetBranchName
const Aws::String & GetBranchName() const
Definition: Webhook.h:168