AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListWebhookItem.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/codepipeline/model/WebhookDefinition.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codepipeline/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace CodePipeline
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_CODEPIPELINE_API ListWebhookItem();
41 AWS_CODEPIPELINE_API ListWebhookItem(Aws::Utils::Json::JsonView jsonValue);
42 AWS_CODEPIPELINE_API ListWebhookItem& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const WebhookDefinition& GetDefinition() const{ return m_definition; }
52 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
53 inline void SetDefinition(const WebhookDefinition& value) { m_definitionHasBeenSet = true; m_definition = value; }
54 inline void SetDefinition(WebhookDefinition&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
55 inline ListWebhookItem& WithDefinition(const WebhookDefinition& value) { SetDefinition(value); return *this;}
56 inline ListWebhookItem& WithDefinition(WebhookDefinition&& value) { SetDefinition(std::move(value)); return *this;}
58
60
66 inline const Aws::String& GetUrl() const{ return m_url; }
67 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
68 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
69 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
70 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
71 inline ListWebhookItem& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
72 inline ListWebhookItem& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
73 inline ListWebhookItem& WithUrl(const char* value) { SetUrl(value); return *this;}
75
77
80 inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; }
81 inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; }
82 inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; }
83 inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); }
84 inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); }
85 inline ListWebhookItem& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;}
86 inline ListWebhookItem& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;}
87 inline ListWebhookItem& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;}
89
91
94 inline const Aws::String& GetErrorCode() const{ return m_errorCode; }
95 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
96 inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; }
97 inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); }
98 inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); }
99 inline ListWebhookItem& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;}
100 inline ListWebhookItem& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;}
101 inline ListWebhookItem& WithErrorCode(const char* value) { SetErrorCode(value); return *this;}
103
105
109 inline const Aws::Utils::DateTime& GetLastTriggered() const{ return m_lastTriggered; }
110 inline bool LastTriggeredHasBeenSet() const { return m_lastTriggeredHasBeenSet; }
111 inline void SetLastTriggered(const Aws::Utils::DateTime& value) { m_lastTriggeredHasBeenSet = true; m_lastTriggered = value; }
112 inline void SetLastTriggered(Aws::Utils::DateTime&& value) { m_lastTriggeredHasBeenSet = true; m_lastTriggered = std::move(value); }
113 inline ListWebhookItem& WithLastTriggered(const Aws::Utils::DateTime& value) { SetLastTriggered(value); return *this;}
114 inline ListWebhookItem& WithLastTriggered(Aws::Utils::DateTime&& value) { SetLastTriggered(std::move(value)); return *this;}
116
118
121 inline const Aws::String& GetArn() const{ return m_arn; }
122 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
123 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
124 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
125 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
126 inline ListWebhookItem& WithArn(const Aws::String& value) { SetArn(value); return *this;}
127 inline ListWebhookItem& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
128 inline ListWebhookItem& WithArn(const char* value) { SetArn(value); return *this;}
130
132
135 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
136 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
137 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
138 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
139 inline ListWebhookItem& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
140 inline ListWebhookItem& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
141 inline ListWebhookItem& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
142 inline ListWebhookItem& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
144 private:
145
146 WebhookDefinition m_definition;
147 bool m_definitionHasBeenSet = false;
148
149 Aws::String m_url;
150 bool m_urlHasBeenSet = false;
151
152 Aws::String m_errorMessage;
153 bool m_errorMessageHasBeenSet = false;
154
155 Aws::String m_errorCode;
156 bool m_errorCodeHasBeenSet = false;
157
158 Aws::Utils::DateTime m_lastTriggered;
159 bool m_lastTriggeredHasBeenSet = false;
160
161 Aws::String m_arn;
162 bool m_arnHasBeenSet = false;
163
164 Aws::Vector<Tag> m_tags;
165 bool m_tagsHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace CodePipeline
170} // namespace Aws
ListWebhookItem & WithDefinition(const WebhookDefinition &value)
const Aws::String & GetErrorCode() const
ListWebhookItem & WithErrorMessage(Aws::String &&value)
ListWebhookItem & WithLastTriggered(Aws::Utils::DateTime &&value)
ListWebhookItem & AddTags(Tag &&value)
void SetDefinition(WebhookDefinition &&value)
const WebhookDefinition & GetDefinition() const
void SetErrorMessage(Aws::String &&value)
const Aws::String & GetErrorMessage() const
void SetDefinition(const WebhookDefinition &value)
ListWebhookItem & WithUrl(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
ListWebhookItem & WithLastTriggered(const Aws::Utils::DateTime &value)
void SetArn(const Aws::String &value)
ListWebhookItem & WithUrl(const Aws::String &value)
ListWebhookItem & WithErrorCode(const Aws::String &value)
ListWebhookItem & WithDefinition(WebhookDefinition &&value)
ListWebhookItem & WithErrorCode(const char *value)
void SetLastTriggered(Aws::Utils::DateTime &&value)
ListWebhookItem & AddTags(const Tag &value)
ListWebhookItem & WithErrorCode(Aws::String &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
ListWebhookItem & WithArn(Aws::String &&value)
void SetUrl(const Aws::String &value)
ListWebhookItem & WithUrl(const char *value)
void SetErrorMessage(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
ListWebhookItem & WithTags(const Aws::Vector< Tag > &value)
ListWebhookItem & WithTags(Aws::Vector< Tag > &&value)
ListWebhookItem & WithErrorMessage(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_CODEPIPELINE_API ListWebhookItem & operator=(Aws::Utils::Json::JsonView jsonValue)
ListWebhookItem & WithErrorMessage(const Aws::String &value)
ListWebhookItem & WithArn(const char *value)
AWS_CODEPIPELINE_API ListWebhookItem(Aws::Utils::Json::JsonView jsonValue)
void SetErrorCode(const Aws::String &value)
const Aws::Utils::DateTime & GetLastTriggered() const
ListWebhookItem & WithArn(const Aws::String &value)
void SetLastTriggered(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue