AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Webhook.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Amplify
23{
24namespace Model
25{
26
33 class Webhook
34 {
35 public:
36 AWS_AMPLIFY_API Webhook() = default;
37 AWS_AMPLIFY_API Webhook(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AMPLIFY_API Webhook& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetWebhookArn() const { return m_webhookArn; }
47 inline bool WebhookArnHasBeenSet() const { return m_webhookArnHasBeenSet; }
48 template<typename WebhookArnT = Aws::String>
49 void SetWebhookArn(WebhookArnT&& value) { m_webhookArnHasBeenSet = true; m_webhookArn = std::forward<WebhookArnT>(value); }
50 template<typename WebhookArnT = Aws::String>
51 Webhook& WithWebhookArn(WebhookArnT&& value) { SetWebhookArn(std::forward<WebhookArnT>(value)); return *this;}
53
55
58 inline const Aws::String& GetWebhookId() const { return m_webhookId; }
59 inline bool WebhookIdHasBeenSet() const { return m_webhookIdHasBeenSet; }
60 template<typename WebhookIdT = Aws::String>
61 void SetWebhookId(WebhookIdT&& value) { m_webhookIdHasBeenSet = true; m_webhookId = std::forward<WebhookIdT>(value); }
62 template<typename WebhookIdT = Aws::String>
63 Webhook& WithWebhookId(WebhookIdT&& value) { SetWebhookId(std::forward<WebhookIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetWebhookUrl() const { return m_webhookUrl; }
71 inline bool WebhookUrlHasBeenSet() const { return m_webhookUrlHasBeenSet; }
72 template<typename WebhookUrlT = Aws::String>
73 void SetWebhookUrl(WebhookUrlT&& value) { m_webhookUrlHasBeenSet = true; m_webhookUrl = std::forward<WebhookUrlT>(value); }
74 template<typename WebhookUrlT = Aws::String>
75 Webhook& WithWebhookUrl(WebhookUrlT&& value) { SetWebhookUrl(std::forward<WebhookUrlT>(value)); return *this;}
77
79
82 inline const Aws::String& GetAppId() const { return m_appId; }
83 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
84 template<typename AppIdT = Aws::String>
85 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
86 template<typename AppIdT = Aws::String>
87 Webhook& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
89
91
94 inline const Aws::String& GetBranchName() const { return m_branchName; }
95 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
96 template<typename BranchNameT = Aws::String>
97 void SetBranchName(BranchNameT&& value) { m_branchNameHasBeenSet = true; m_branchName = std::forward<BranchNameT>(value); }
98 template<typename BranchNameT = Aws::String>
99 Webhook& WithBranchName(BranchNameT&& value) { SetBranchName(std::forward<BranchNameT>(value)); return *this;}
101
103
106 inline const Aws::String& GetDescription() const { return m_description; }
107 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
108 template<typename DescriptionT = Aws::String>
109 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
110 template<typename DescriptionT = Aws::String>
111 Webhook& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
113
115
118 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
119 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
120 template<typename CreateTimeT = Aws::Utils::DateTime>
121 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
122 template<typename CreateTimeT = Aws::Utils::DateTime>
123 Webhook& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
125
127
130 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
131 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
132 template<typename UpdateTimeT = Aws::Utils::DateTime>
133 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
134 template<typename UpdateTimeT = Aws::Utils::DateTime>
135 Webhook& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
137 private:
138
139 Aws::String m_webhookArn;
140 bool m_webhookArnHasBeenSet = false;
141
142 Aws::String m_webhookId;
143 bool m_webhookIdHasBeenSet = false;
144
145 Aws::String m_webhookUrl;
146 bool m_webhookUrlHasBeenSet = false;
147
148 Aws::String m_appId;
149 bool m_appIdHasBeenSet = false;
150
151 Aws::String m_branchName;
152 bool m_branchNameHasBeenSet = false;
153
154 Aws::String m_description;
155 bool m_descriptionHasBeenSet = false;
156
157 Aws::Utils::DateTime m_createTime{};
158 bool m_createTimeHasBeenSet = false;
159
160 Aws::Utils::DateTime m_updateTime{};
161 bool m_updateTimeHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Amplify
166} // namespace Aws
bool WebhookIdHasBeenSet() const
Definition Webhook.h:59
void SetBranchName(BranchNameT &&value)
Definition Webhook.h:97
void SetUpdateTime(UpdateTimeT &&value)
Definition Webhook.h:133
AWS_AMPLIFY_API Webhook()=default
bool DescriptionHasBeenSet() const
Definition Webhook.h:107
Webhook & WithBranchName(BranchNameT &&value)
Definition Webhook.h:99
const Aws::String & GetBranchName() const
Definition Webhook.h:94
Webhook & WithCreateTime(CreateTimeT &&value)
Definition Webhook.h:123
bool BranchNameHasBeenSet() const
Definition Webhook.h:95
void SetDescription(DescriptionT &&value)
Definition Webhook.h:109
Webhook & WithUpdateTime(UpdateTimeT &&value)
Definition Webhook.h:135
Webhook & WithWebhookUrl(WebhookUrlT &&value)
Definition Webhook.h:75
bool WebhookUrlHasBeenSet() const
Definition Webhook.h:71
const Aws::String & GetWebhookId() const
Definition Webhook.h:58
void SetWebhookArn(WebhookArnT &&value)
Definition Webhook.h:49
AWS_AMPLIFY_API Webhook(Aws::Utils::Json::JsonView jsonValue)
void SetAppId(AppIdT &&value)
Definition Webhook.h:85
bool AppIdHasBeenSet() const
Definition Webhook.h:83
void SetWebhookUrl(WebhookUrlT &&value)
Definition Webhook.h:73
Webhook & WithAppId(AppIdT &&value)
Definition Webhook.h:87
Webhook & WithWebhookArn(WebhookArnT &&value)
Definition Webhook.h:51
const Aws::Utils::DateTime & GetCreateTime() const
Definition Webhook.h:118
const Aws::String & GetWebhookArn() const
Definition Webhook.h:46
bool WebhookArnHasBeenSet() const
Definition Webhook.h:47
bool UpdateTimeHasBeenSet() const
Definition Webhook.h:131
bool CreateTimeHasBeenSet() const
Definition Webhook.h:119
const Aws::String & GetDescription() const
Definition Webhook.h:106
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetWebhookUrl() const
Definition Webhook.h:70
Webhook & WithWebhookId(WebhookIdT &&value)
Definition Webhook.h:63
const Aws::String & GetAppId() const
Definition Webhook.h:82
void SetWebhookId(WebhookIdT &&value)
Definition Webhook.h:61
Webhook & WithDescription(DescriptionT &&value)
Definition Webhook.h:111
const Aws::Utils::DateTime & GetUpdateTime() const
Definition Webhook.h:130
void SetCreateTime(CreateTimeT &&value)
Definition Webhook.h:121
AWS_AMPLIFY_API Webhook & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue