AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetWebhookArn(const Aws::String& value) { m_webhookArnHasBeenSet = true; m_webhookArn = value; }
49 inline void SetWebhookArn(Aws::String&& value) { m_webhookArnHasBeenSet = true; m_webhookArn = std::move(value); }
50 inline void SetWebhookArn(const char* value) { m_webhookArnHasBeenSet = true; m_webhookArn.assign(value); }
51 inline Webhook& WithWebhookArn(const Aws::String& value) { SetWebhookArn(value); return *this;}
52 inline Webhook& WithWebhookArn(Aws::String&& value) { SetWebhookArn(std::move(value)); return *this;}
53 inline Webhook& WithWebhookArn(const char* value) { SetWebhookArn(value); return *this;}
55
57
60 inline const Aws::String& GetWebhookId() const{ return m_webhookId; }
61 inline bool WebhookIdHasBeenSet() const { return m_webhookIdHasBeenSet; }
62 inline void SetWebhookId(const Aws::String& value) { m_webhookIdHasBeenSet = true; m_webhookId = value; }
63 inline void SetWebhookId(Aws::String&& value) { m_webhookIdHasBeenSet = true; m_webhookId = std::move(value); }
64 inline void SetWebhookId(const char* value) { m_webhookIdHasBeenSet = true; m_webhookId.assign(value); }
65 inline Webhook& WithWebhookId(const Aws::String& value) { SetWebhookId(value); return *this;}
66 inline Webhook& WithWebhookId(Aws::String&& value) { SetWebhookId(std::move(value)); return *this;}
67 inline Webhook& WithWebhookId(const char* value) { SetWebhookId(value); return *this;}
69
71
74 inline const Aws::String& GetWebhookUrl() const{ return m_webhookUrl; }
75 inline bool WebhookUrlHasBeenSet() const { return m_webhookUrlHasBeenSet; }
76 inline void SetWebhookUrl(const Aws::String& value) { m_webhookUrlHasBeenSet = true; m_webhookUrl = value; }
77 inline void SetWebhookUrl(Aws::String&& value) { m_webhookUrlHasBeenSet = true; m_webhookUrl = std::move(value); }
78 inline void SetWebhookUrl(const char* value) { m_webhookUrlHasBeenSet = true; m_webhookUrl.assign(value); }
79 inline Webhook& WithWebhookUrl(const Aws::String& value) { SetWebhookUrl(value); return *this;}
80 inline Webhook& WithWebhookUrl(Aws::String&& value) { SetWebhookUrl(std::move(value)); return *this;}
81 inline Webhook& WithWebhookUrl(const char* value) { SetWebhookUrl(value); return *this;}
83
85
88 inline const Aws::String& GetBranchName() const{ return m_branchName; }
89 inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; }
90 inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; }
91 inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); }
92 inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); }
93 inline Webhook& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;}
94 inline Webhook& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;}
95 inline Webhook& WithBranchName(const char* value) { SetBranchName(value); return *this;}
97
99
102 inline const Aws::String& GetDescription() const{ return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
105 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
106 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
107 inline Webhook& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
108 inline Webhook& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
109 inline Webhook& WithDescription(const char* value) { SetDescription(value); return *this;}
111
113
116 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
117 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
118 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
119 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
120 inline Webhook& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
121 inline Webhook& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
123
125
128 inline const Aws::Utils::DateTime& GetUpdateTime() const{ return m_updateTime; }
129 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
130 inline void SetUpdateTime(const Aws::Utils::DateTime& value) { m_updateTimeHasBeenSet = true; m_updateTime = value; }
131 inline void SetUpdateTime(Aws::Utils::DateTime&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::move(value); }
132 inline Webhook& WithUpdateTime(const Aws::Utils::DateTime& value) { SetUpdateTime(value); return *this;}
133 inline Webhook& WithUpdateTime(Aws::Utils::DateTime&& value) { SetUpdateTime(std::move(value)); return *this;}
135 private:
136
137 Aws::String m_webhookArn;
138 bool m_webhookArnHasBeenSet = false;
139
140 Aws::String m_webhookId;
141 bool m_webhookIdHasBeenSet = false;
142
143 Aws::String m_webhookUrl;
144 bool m_webhookUrlHasBeenSet = false;
145
146 Aws::String m_branchName;
147 bool m_branchNameHasBeenSet = false;
148
149 Aws::String m_description;
150 bool m_descriptionHasBeenSet = false;
151
152 Aws::Utils::DateTime m_createTime;
153 bool m_createTimeHasBeenSet = false;
154
155 Aws::Utils::DateTime m_updateTime;
156 bool m_updateTimeHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace Amplify
161} // namespace Aws
bool WebhookIdHasBeenSet() const
Definition Webhook.h:61
void SetDescription(const char *value)
Definition Webhook.h:106
void SetUpdateTime(const Aws::Utils::DateTime &value)
Definition Webhook.h:130
Webhook & WithCreateTime(Aws::Utils::DateTime &&value)
Definition Webhook.h:121
void SetBranchName(const char *value)
Definition Webhook.h:92
Webhook & WithWebhookArn(Aws::String &&value)
Definition Webhook.h:52
void SetWebhookArn(const char *value)
Definition Webhook.h:50
bool DescriptionHasBeenSet() const
Definition Webhook.h:103
const Aws::String & GetBranchName() const
Definition Webhook.h:88
bool BranchNameHasBeenSet() const
Definition Webhook.h:89
Webhook & WithWebhookUrl(Aws::String &&value)
Definition Webhook.h:80
Webhook & WithBranchName(const Aws::String &value)
Definition Webhook.h:93
Webhook & WithWebhookArn(const char *value)
Definition Webhook.h:53
void SetWebhookId(const char *value)
Definition Webhook.h:64
Webhook & WithWebhookArn(const Aws::String &value)
Definition Webhook.h:51
void SetBranchName(Aws::String &&value)
Definition Webhook.h:91
Webhook & WithWebhookUrl(const Aws::String &value)
Definition Webhook.h:79
bool WebhookUrlHasBeenSet() const
Definition Webhook.h:75
const Aws::String & GetWebhookId() const
Definition Webhook.h:60
void SetDescription(Aws::String &&value)
Definition Webhook.h:105
AWS_AMPLIFY_API Webhook()
void SetDescription(const Aws::String &value)
Definition Webhook.h:104
Webhook & WithDescription(const Aws::String &value)
Definition Webhook.h:107
AWS_AMPLIFY_API Webhook(Aws::Utils::Json::JsonView jsonValue)
Webhook & WithDescription(Aws::String &&value)
Definition Webhook.h:108
Webhook & WithDescription(const char *value)
Definition Webhook.h:109
Webhook & WithUpdateTime(Aws::Utils::DateTime &&value)
Definition Webhook.h:133
void SetWebhookId(Aws::String &&value)
Definition Webhook.h:63
const Aws::Utils::DateTime & GetCreateTime() const
Definition Webhook.h:116
Webhook & WithWebhookId(const char *value)
Definition Webhook.h:67
const Aws::String & GetWebhookArn() const
Definition Webhook.h:46
bool WebhookArnHasBeenSet() const
Definition Webhook.h:47
Webhook & WithWebhookUrl(const char *value)
Definition Webhook.h:81
bool UpdateTimeHasBeenSet() const
Definition Webhook.h:129
bool CreateTimeHasBeenSet() const
Definition Webhook.h:117
void SetWebhookUrl(Aws::String &&value)
Definition Webhook.h:77
void SetBranchName(const Aws::String &value)
Definition Webhook.h:90
const Aws::String & GetDescription() const
Definition Webhook.h:102
Webhook & WithBranchName(const char *value)
Definition Webhook.h:95
void SetCreateTime(const Aws::Utils::DateTime &value)
Definition Webhook.h:118
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetWebhookUrl(const Aws::String &value)
Definition Webhook.h:76
Webhook & WithWebhookId(const Aws::String &value)
Definition Webhook.h:65
Webhook & WithUpdateTime(const Aws::Utils::DateTime &value)
Definition Webhook.h:132
const Aws::String & GetWebhookUrl() const
Definition Webhook.h:74
Webhook & WithBranchName(Aws::String &&value)
Definition Webhook.h:94
void SetWebhookUrl(const char *value)
Definition Webhook.h:78
void SetWebhookArn(Aws::String &&value)
Definition Webhook.h:49
Webhook & WithCreateTime(const Aws::Utils::DateTime &value)
Definition Webhook.h:120
void SetWebhookArn(const Aws::String &value)
Definition Webhook.h:48
void SetWebhookId(const Aws::String &value)
Definition Webhook.h:62
void SetUpdateTime(Aws::Utils::DateTime &&value)
Definition Webhook.h:131
const Aws::Utils::DateTime & GetUpdateTime() const
Definition Webhook.h:128
Webhook & WithWebhookId(Aws::String &&value)
Definition Webhook.h:66
void SetCreateTime(Aws::Utils::DateTime &&value)
Definition Webhook.h:119
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