AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeNotificationRuleResult.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codestar-notifications/model/DetailType.h>
11#include <aws/codestar-notifications/model/NotificationRuleStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/codestar-notifications/model/EventTypeSummary.h>
15#include <aws/codestar-notifications/model/TargetSummary.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace CodeStarNotifications
31{
32namespace Model
33{
35 {
36 public:
37 AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult();
40
41
43
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline void SetArn(const Aws::String& value) { m_arn = value; }
48 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
49 inline void SetArn(const char* value) { m_arn.assign(value); }
50 inline DescribeNotificationRuleResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
51 inline DescribeNotificationRuleResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
52 inline DescribeNotificationRuleResult& WithArn(const char* value) { SetArn(value); return *this;}
54
56
59 inline const Aws::String& GetName() const{ return m_name; }
60 inline void SetName(const Aws::String& value) { m_name = value; }
61 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
62 inline void SetName(const char* value) { m_name.assign(value); }
63 inline DescribeNotificationRuleResult& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline DescribeNotificationRuleResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline DescribeNotificationRuleResult& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::Vector<EventTypeSummary>& GetEventTypes() const{ return m_eventTypes; }
73 inline void SetEventTypes(const Aws::Vector<EventTypeSummary>& value) { m_eventTypes = value; }
74 inline void SetEventTypes(Aws::Vector<EventTypeSummary>&& value) { m_eventTypes = std::move(value); }
77 inline DescribeNotificationRuleResult& AddEventTypes(const EventTypeSummary& value) { m_eventTypes.push_back(value); return *this; }
78 inline DescribeNotificationRuleResult& AddEventTypes(EventTypeSummary&& value) { m_eventTypes.push_back(std::move(value)); return *this; }
80
82
86 inline const Aws::String& GetResource() const{ return m_resource; }
87 inline void SetResource(const Aws::String& value) { m_resource = value; }
88 inline void SetResource(Aws::String&& value) { m_resource = std::move(value); }
89 inline void SetResource(const char* value) { m_resource.assign(value); }
90 inline DescribeNotificationRuleResult& WithResource(const Aws::String& value) { SetResource(value); return *this;}
91 inline DescribeNotificationRuleResult& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
92 inline DescribeNotificationRuleResult& WithResource(const char* value) { SetResource(value); return *this;}
94
96
100 inline const Aws::Vector<TargetSummary>& GetTargets() const{ return m_targets; }
101 inline void SetTargets(const Aws::Vector<TargetSummary>& value) { m_targets = value; }
102 inline void SetTargets(Aws::Vector<TargetSummary>&& value) { m_targets = std::move(value); }
104 inline DescribeNotificationRuleResult& WithTargets(Aws::Vector<TargetSummary>&& value) { SetTargets(std::move(value)); return *this;}
105 inline DescribeNotificationRuleResult& AddTargets(const TargetSummary& value) { m_targets.push_back(value); return *this; }
106 inline DescribeNotificationRuleResult& AddTargets(TargetSummary&& value) { m_targets.push_back(std::move(value)); return *this; }
108
110
117 inline const DetailType& GetDetailType() const{ return m_detailType; }
118 inline void SetDetailType(const DetailType& value) { m_detailType = value; }
119 inline void SetDetailType(DetailType&& value) { m_detailType = std::move(value); }
120 inline DescribeNotificationRuleResult& WithDetailType(const DetailType& value) { SetDetailType(value); return *this;}
121 inline DescribeNotificationRuleResult& WithDetailType(DetailType&& value) { SetDetailType(std::move(value)); return *this;}
123
125
128 inline const Aws::String& GetCreatedBy() const{ return m_createdBy; }
129 inline void SetCreatedBy(const Aws::String& value) { m_createdBy = value; }
130 inline void SetCreatedBy(Aws::String&& value) { m_createdBy = std::move(value); }
131 inline void SetCreatedBy(const char* value) { m_createdBy.assign(value); }
132 inline DescribeNotificationRuleResult& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;}
133 inline DescribeNotificationRuleResult& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;}
134 inline DescribeNotificationRuleResult& WithCreatedBy(const char* value) { SetCreatedBy(value); return *this;}
136
138
142 inline const NotificationRuleStatus& GetStatus() const{ return m_status; }
143 inline void SetStatus(const NotificationRuleStatus& value) { m_status = value; }
144 inline void SetStatus(NotificationRuleStatus&& value) { m_status = std::move(value); }
145 inline DescribeNotificationRuleResult& WithStatus(const NotificationRuleStatus& value) { SetStatus(value); return *this;}
146 inline DescribeNotificationRuleResult& WithStatus(NotificationRuleStatus&& value) { SetStatus(std::move(value)); return *this;}
148
150
153 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
154 inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
155 inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
159
161
165 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const{ return m_lastModifiedTimestamp; }
166 inline void SetLastModifiedTimestamp(const Aws::Utils::DateTime& value) { m_lastModifiedTimestamp = value; }
167 inline void SetLastModifiedTimestamp(Aws::Utils::DateTime&& value) { m_lastModifiedTimestamp = std::move(value); }
171
173
176 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
177 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
178 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
180 inline DescribeNotificationRuleResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
181 inline DescribeNotificationRuleResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
182 inline DescribeNotificationRuleResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
183 inline DescribeNotificationRuleResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
184 inline DescribeNotificationRuleResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
185 inline DescribeNotificationRuleResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
186 inline DescribeNotificationRuleResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
187 inline DescribeNotificationRuleResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
189
191
192 inline const Aws::String& GetRequestId() const{ return m_requestId; }
193 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
194 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
195 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
196 inline DescribeNotificationRuleResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
197 inline DescribeNotificationRuleResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
198 inline DescribeNotificationRuleResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
200 private:
201
202 Aws::String m_arn;
203
204 Aws::String m_name;
205
207
208 Aws::String m_resource;
209
211
212 DetailType m_detailType;
213
214 Aws::String m_createdBy;
215
216 NotificationRuleStatus m_status;
217
218 Aws::Utils::DateTime m_createdTimestamp;
219
220 Aws::Utils::DateTime m_lastModifiedTimestamp;
221
223
224 Aws::String m_requestId;
225 };
226
227} // namespace Model
228} // namespace CodeStarNotifications
229} // namespace Aws
DescribeNotificationRuleResult & WithName(const Aws::String &value)
DescribeNotificationRuleResult & WithTargets(const Aws::Vector< TargetSummary > &value)
DescribeNotificationRuleResult & WithRequestId(const Aws::String &value)
DescribeNotificationRuleResult & WithEventTypes(Aws::Vector< EventTypeSummary > &&value)
DescribeNotificationRuleResult & WithCreatedBy(const Aws::String &value)
DescribeNotificationRuleResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
DescribeNotificationRuleResult & WithCreatedBy(Aws::String &&value)
DescribeNotificationRuleResult & AddEventTypes(EventTypeSummary &&value)
DescribeNotificationRuleResult & AddTags(const Aws::String &key, const Aws::String &value)
AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeNotificationRuleResult & WithDetailType(const DetailType &value)
DescribeNotificationRuleResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
DescribeNotificationRuleResult & WithLastModifiedTimestamp(Aws::Utils::DateTime &&value)
DescribeNotificationRuleResult & AddTags(const Aws::String &key, Aws::String &&value)
DescribeNotificationRuleResult & WithCreatedTimestamp(Aws::Utils::DateTime &&value)
DescribeNotificationRuleResult & WithTargets(Aws::Vector< TargetSummary > &&value)
DescribeNotificationRuleResult & AddTags(const char *key, Aws::String &&value)
DescribeNotificationRuleResult & AddTags(Aws::String &&key, Aws::String &&value)
DescribeNotificationRuleResult & WithRequestId(Aws::String &&value)
DescribeNotificationRuleResult & WithDetailType(DetailType &&value)
DescribeNotificationRuleResult & AddTargets(TargetSummary &&value)
DescribeNotificationRuleResult & WithLastModifiedTimestamp(const Aws::Utils::DateTime &value)
AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
DescribeNotificationRuleResult & WithCreatedTimestamp(const Aws::Utils::DateTime &value)
DescribeNotificationRuleResult & AddTargets(const TargetSummary &value)
DescribeNotificationRuleResult & WithResource(const Aws::String &value)
DescribeNotificationRuleResult & AddEventTypes(const EventTypeSummary &value)
DescribeNotificationRuleResult & AddTags(const char *key, const char *value)
DescribeNotificationRuleResult & WithEventTypes(const Aws::Vector< EventTypeSummary > &value)
DescribeNotificationRuleResult & AddTags(Aws::String &&key, const Aws::String &value)
DescribeNotificationRuleResult & WithStatus(const NotificationRuleStatus &value)
DescribeNotificationRuleResult & WithArn(const Aws::String &value)
DescribeNotificationRuleResult & WithStatus(NotificationRuleStatus &&value)
DescribeNotificationRuleResult & AddTags(Aws::String &&key, const char *value)
DescribeNotificationRuleResult & WithResource(Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue