AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
Webhook.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
9#include <aws/devops-agent/model/WebhookType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsAgent {
21namespace Model {
22
29class Webhook {
30 public:
31 AWS_DEVOPSAGENT_API Webhook() = default;
32 AWS_DEVOPSAGENT_API Webhook(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSAGENT_API Webhook& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetWebhookUrl() const { return m_webhookUrl; }
41 inline bool WebhookUrlHasBeenSet() const { return m_webhookUrlHasBeenSet; }
42 template <typename WebhookUrlT = Aws::String>
43 void SetWebhookUrl(WebhookUrlT&& value) {
44 m_webhookUrlHasBeenSet = true;
45 m_webhookUrl = std::forward<WebhookUrlT>(value);
46 }
47 template <typename WebhookUrlT = Aws::String>
48 Webhook& WithWebhookUrl(WebhookUrlT&& value) {
49 SetWebhookUrl(std::forward<WebhookUrlT>(value));
50 return *this;
51 }
53
55
58 inline WebhookType GetWebhookType() const { return m_webhookType; }
59 inline bool WebhookTypeHasBeenSet() const { return m_webhookTypeHasBeenSet; }
60 inline void SetWebhookType(WebhookType value) {
61 m_webhookTypeHasBeenSet = true;
62 m_webhookType = value;
63 }
65 SetWebhookType(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetWebhookId() const { return m_webhookId; }
75 inline bool WebhookIdHasBeenSet() const { return m_webhookIdHasBeenSet; }
76 template <typename WebhookIdT = Aws::String>
77 void SetWebhookId(WebhookIdT&& value) {
78 m_webhookIdHasBeenSet = true;
79 m_webhookId = std::forward<WebhookIdT>(value);
80 }
81 template <typename WebhookIdT = Aws::String>
82 Webhook& WithWebhookId(WebhookIdT&& value) {
83 SetWebhookId(std::forward<WebhookIdT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_webhookUrl;
89
90 WebhookType m_webhookType{WebhookType::NOT_SET};
91
92 Aws::String m_webhookId;
93 bool m_webhookUrlHasBeenSet = false;
94 bool m_webhookTypeHasBeenSet = false;
95 bool m_webhookIdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace DevOpsAgent
100} // namespace Aws
void SetWebhookUrl(WebhookUrlT &&value)
Definition Webhook.h:43
void SetWebhookType(WebhookType value)
Definition Webhook.h:60
void SetWebhookId(WebhookIdT &&value)
Definition Webhook.h:77
AWS_DEVOPSAGENT_API Webhook()=default
AWS_DEVOPSAGENT_API Webhook & operator=(Aws::Utils::Json::JsonView jsonValue)
bool WebhookUrlHasBeenSet() const
Definition Webhook.h:41
const Aws::String & GetWebhookId() const
Definition Webhook.h:74
AWS_DEVOPSAGENT_API Webhook(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetWebhookUrl() const
Definition Webhook.h:40
bool WebhookTypeHasBeenSet() const
Definition Webhook.h:59
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
Webhook & WithWebhookId(WebhookIdT &&value)
Definition Webhook.h:82
Webhook & WithWebhookUrl(WebhookUrlT &&value)
Definition Webhook.h:48
Webhook & WithWebhookType(WebhookType value)
Definition Webhook.h:64
WebhookType GetWebhookType() const
Definition Webhook.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue