AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
GenericWebhook.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
30 public:
31 AWS_DEVOPSAGENT_API GenericWebhook() = default;
32 AWS_DEVOPSAGENT_API GenericWebhook(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DEVOPSAGENT_API GenericWebhook& 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 GenericWebhook& WithWebhookUrl(WebhookUrlT&& value) {
49 SetWebhookUrl(std::forward<WebhookUrlT>(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 GenericWebhook& WithWebhookId(WebhookIdT&& value) {
67 SetWebhookId(std::forward<WebhookIdT>(value));
68 return *this;
69 }
71
73
76 inline WebhookType GetWebhookType() const { return m_webhookType; }
77 inline bool WebhookTypeHasBeenSet() const { return m_webhookTypeHasBeenSet; }
78 inline void SetWebhookType(WebhookType value) {
79 m_webhookTypeHasBeenSet = true;
80 m_webhookType = value;
81 }
83 SetWebhookType(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetWebhookSecret() const { return m_webhookSecret; }
93 inline bool WebhookSecretHasBeenSet() const { return m_webhookSecretHasBeenSet; }
94 template <typename WebhookSecretT = Aws::String>
95 void SetWebhookSecret(WebhookSecretT&& value) {
96 m_webhookSecretHasBeenSet = true;
97 m_webhookSecret = std::forward<WebhookSecretT>(value);
98 }
99 template <typename WebhookSecretT = Aws::String>
100 GenericWebhook& WithWebhookSecret(WebhookSecretT&& value) {
101 SetWebhookSecret(std::forward<WebhookSecretT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetApiKey() const { return m_apiKey; }
111 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
112 template <typename ApiKeyT = Aws::String>
113 void SetApiKey(ApiKeyT&& value) {
114 m_apiKeyHasBeenSet = true;
115 m_apiKey = std::forward<ApiKeyT>(value);
116 }
117 template <typename ApiKeyT = Aws::String>
118 GenericWebhook& WithApiKey(ApiKeyT&& value) {
119 SetApiKey(std::forward<ApiKeyT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_webhookUrl;
125
126 Aws::String m_webhookId;
127
128 WebhookType m_webhookType{WebhookType::NOT_SET};
129
130 Aws::String m_webhookSecret;
131
132 Aws::String m_apiKey;
133 bool m_webhookUrlHasBeenSet = false;
134 bool m_webhookIdHasBeenSet = false;
135 bool m_webhookTypeHasBeenSet = false;
136 bool m_webhookSecretHasBeenSet = false;
137 bool m_apiKeyHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace DevOpsAgent
142} // namespace Aws
AWS_DEVOPSAGENT_API GenericWebhook(Aws::Utils::Json::JsonView jsonValue)
GenericWebhook & WithApiKey(ApiKeyT &&value)
AWS_DEVOPSAGENT_API GenericWebhook & operator=(Aws::Utils::Json::JsonView jsonValue)
GenericWebhook & WithWebhookSecret(WebhookSecretT &&value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
GenericWebhook & WithWebhookUrl(WebhookUrlT &&value)
GenericWebhook & WithWebhookType(WebhookType value)
void SetWebhookSecret(WebhookSecretT &&value)
AWS_DEVOPSAGENT_API GenericWebhook()=default
const Aws::String & GetWebhookUrl() const
GenericWebhook & WithWebhookId(WebhookIdT &&value)
void SetWebhookUrl(WebhookUrlT &&value)
void SetWebhookId(WebhookIdT &&value)
const Aws::String & GetApiKey() const
const Aws::String & GetWebhookId() const
const Aws::String & GetWebhookSecret() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue