AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Webhook.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Amplify {
21namespace Model {
22
29class Webhook {
30 public:
31 AWS_AMPLIFY_API Webhook() = default;
32 AWS_AMPLIFY_API Webhook(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFY_API Webhook& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetWebhookArn() const { return m_webhookArn; }
41 inline bool WebhookArnHasBeenSet() const { return m_webhookArnHasBeenSet; }
42 template <typename WebhookArnT = Aws::String>
43 void SetWebhookArn(WebhookArnT&& value) {
44 m_webhookArnHasBeenSet = true;
45 m_webhookArn = std::forward<WebhookArnT>(value);
46 }
47 template <typename WebhookArnT = Aws::String>
48 Webhook& WithWebhookArn(WebhookArnT&& value) {
49 SetWebhookArn(std::forward<WebhookArnT>(value));
50 return *this;
51 }
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) {
62 m_webhookIdHasBeenSet = true;
63 m_webhookId = std::forward<WebhookIdT>(value);
64 }
65 template <typename WebhookIdT = Aws::String>
66 Webhook& WithWebhookId(WebhookIdT&& value) {
67 SetWebhookId(std::forward<WebhookIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetWebhookUrl() const { return m_webhookUrl; }
77 inline bool WebhookUrlHasBeenSet() const { return m_webhookUrlHasBeenSet; }
78 template <typename WebhookUrlT = Aws::String>
79 void SetWebhookUrl(WebhookUrlT&& value) {
80 m_webhookUrlHasBeenSet = true;
81 m_webhookUrl = std::forward<WebhookUrlT>(value);
82 }
83 template <typename WebhookUrlT = Aws::String>
84 Webhook& WithWebhookUrl(WebhookUrlT&& value) {
85 SetWebhookUrl(std::forward<WebhookUrlT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetAppId() const { return m_appId; }
95 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
96 template <typename AppIdT = Aws::String>
97 void SetAppId(AppIdT&& value) {
98 m_appIdHasBeenSet = true;
99 m_appId = std::forward<AppIdT>(value);
100 }
101 template <typename AppIdT = Aws::String>
102 Webhook& WithAppId(AppIdT&& value) {
103 SetAppId(std::forward<AppIdT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetBranchName() const { return m_branchName; }
113 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
114 template <typename BranchNameT = Aws::String>
115 void SetBranchName(BranchNameT&& value) {
116 m_branchNameHasBeenSet = true;
117 m_branchName = std::forward<BranchNameT>(value);
118 }
119 template <typename BranchNameT = Aws::String>
120 Webhook& WithBranchName(BranchNameT&& value) {
121 SetBranchName(std::forward<BranchNameT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::String& GetDescription() const { return m_description; }
131 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
132 template <typename DescriptionT = Aws::String>
133 void SetDescription(DescriptionT&& value) {
134 m_descriptionHasBeenSet = true;
135 m_description = std::forward<DescriptionT>(value);
136 }
137 template <typename DescriptionT = Aws::String>
138 Webhook& WithDescription(DescriptionT&& value) {
139 SetDescription(std::forward<DescriptionT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
149 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
150 template <typename CreateTimeT = Aws::Utils::DateTime>
151 void SetCreateTime(CreateTimeT&& value) {
152 m_createTimeHasBeenSet = true;
153 m_createTime = std::forward<CreateTimeT>(value);
154 }
155 template <typename CreateTimeT = Aws::Utils::DateTime>
156 Webhook& WithCreateTime(CreateTimeT&& value) {
157 SetCreateTime(std::forward<CreateTimeT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
167 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
168 template <typename UpdateTimeT = Aws::Utils::DateTime>
169 void SetUpdateTime(UpdateTimeT&& value) {
170 m_updateTimeHasBeenSet = true;
171 m_updateTime = std::forward<UpdateTimeT>(value);
172 }
173 template <typename UpdateTimeT = Aws::Utils::DateTime>
174 Webhook& WithUpdateTime(UpdateTimeT&& value) {
175 SetUpdateTime(std::forward<UpdateTimeT>(value));
176 return *this;
177 }
179 private:
180 Aws::String m_webhookArn;
181
182 Aws::String m_webhookId;
183
184 Aws::String m_webhookUrl;
185
186 Aws::String m_appId;
187
188 Aws::String m_branchName;
189
190 Aws::String m_description;
191
192 Aws::Utils::DateTime m_createTime{};
193
194 Aws::Utils::DateTime m_updateTime{};
195 bool m_webhookArnHasBeenSet = false;
196 bool m_webhookIdHasBeenSet = false;
197 bool m_webhookUrlHasBeenSet = false;
198 bool m_appIdHasBeenSet = false;
199 bool m_branchNameHasBeenSet = false;
200 bool m_descriptionHasBeenSet = false;
201 bool m_createTimeHasBeenSet = false;
202 bool m_updateTimeHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace Amplify
207} // namespace Aws
bool WebhookIdHasBeenSet() const
Definition Webhook.h:59
void SetBranchName(BranchNameT &&value)
Definition Webhook.h:115
void SetUpdateTime(UpdateTimeT &&value)
Definition Webhook.h:169
AWS_AMPLIFY_API Webhook()=default
bool DescriptionHasBeenSet() const
Definition Webhook.h:131
Webhook & WithBranchName(BranchNameT &&value)
Definition Webhook.h:120
const Aws::String & GetBranchName() const
Definition Webhook.h:112
Webhook & WithCreateTime(CreateTimeT &&value)
Definition Webhook.h:156
bool BranchNameHasBeenSet() const
Definition Webhook.h:113
void SetDescription(DescriptionT &&value)
Definition Webhook.h:133
Webhook & WithUpdateTime(UpdateTimeT &&value)
Definition Webhook.h:174
Webhook & WithWebhookUrl(WebhookUrlT &&value)
Definition Webhook.h:84
bool WebhookUrlHasBeenSet() const
Definition Webhook.h:77
const Aws::String & GetWebhookId() const
Definition Webhook.h:58
void SetWebhookArn(WebhookArnT &&value)
Definition Webhook.h:43
AWS_AMPLIFY_API Webhook(Aws::Utils::Json::JsonView jsonValue)
void SetAppId(AppIdT &&value)
Definition Webhook.h:97
bool AppIdHasBeenSet() const
Definition Webhook.h:95
void SetWebhookUrl(WebhookUrlT &&value)
Definition Webhook.h:79
Webhook & WithAppId(AppIdT &&value)
Definition Webhook.h:102
Webhook & WithWebhookArn(WebhookArnT &&value)
Definition Webhook.h:48
const Aws::Utils::DateTime & GetCreateTime() const
Definition Webhook.h:148
const Aws::String & GetWebhookArn() const
Definition Webhook.h:40
bool WebhookArnHasBeenSet() const
Definition Webhook.h:41
bool UpdateTimeHasBeenSet() const
Definition Webhook.h:167
bool CreateTimeHasBeenSet() const
Definition Webhook.h:149
const Aws::String & GetDescription() const
Definition Webhook.h:130
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetWebhookUrl() const
Definition Webhook.h:76
Webhook & WithWebhookId(WebhookIdT &&value)
Definition Webhook.h:66
const Aws::String & GetAppId() const
Definition Webhook.h:94
void SetWebhookId(WebhookIdT &&value)
Definition Webhook.h:61
Webhook & WithDescription(DescriptionT &&value)
Definition Webhook.h:138
const Aws::Utils::DateTime & GetUpdateTime() const
Definition Webhook.h:166
void SetCreateTime(CreateTimeT &&value)
Definition Webhook.h:151
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