AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
40
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 DescribeNotificationRuleResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 template<typename NameT = Aws::String>
59 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
60 template<typename NameT = Aws::String>
61 DescribeNotificationRuleResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
63
65
68 inline const Aws::Vector<EventTypeSummary>& GetEventTypes() const { return m_eventTypes; }
69 template<typename EventTypesT = Aws::Vector<EventTypeSummary>>
70 void SetEventTypes(EventTypesT&& value) { m_eventTypesHasBeenSet = true; m_eventTypes = std::forward<EventTypesT>(value); }
71 template<typename EventTypesT = Aws::Vector<EventTypeSummary>>
72 DescribeNotificationRuleResult& WithEventTypes(EventTypesT&& value) { SetEventTypes(std::forward<EventTypesT>(value)); return *this;}
73 template<typename EventTypesT = EventTypeSummary>
74 DescribeNotificationRuleResult& AddEventTypes(EventTypesT&& value) { m_eventTypesHasBeenSet = true; m_eventTypes.emplace_back(std::forward<EventTypesT>(value)); return *this; }
76
78
82 inline const Aws::String& GetResource() const { return m_resource; }
83 template<typename ResourceT = Aws::String>
84 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
85 template<typename ResourceT = Aws::String>
86 DescribeNotificationRuleResult& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
88
90
94 inline const Aws::Vector<TargetSummary>& GetTargets() const { return m_targets; }
95 template<typename TargetsT = Aws::Vector<TargetSummary>>
96 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
97 template<typename TargetsT = Aws::Vector<TargetSummary>>
98 DescribeNotificationRuleResult& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
99 template<typename TargetsT = TargetSummary>
100 DescribeNotificationRuleResult& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
102
104
111 inline DetailType GetDetailType() const { return m_detailType; }
112 inline void SetDetailType(DetailType value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
115
117
120 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
121 template<typename CreatedByT = Aws::String>
122 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
123 template<typename CreatedByT = Aws::String>
124 DescribeNotificationRuleResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
126
128
132 inline NotificationRuleStatus GetStatus() const { return m_status; }
133 inline void SetStatus(NotificationRuleStatus value) { m_statusHasBeenSet = true; m_status = value; }
136
138
141 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
142 template<typename CreatedTimestampT = Aws::Utils::DateTime>
143 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
144 template<typename CreatedTimestampT = Aws::Utils::DateTime>
145 DescribeNotificationRuleResult& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
147
149
153 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
154 template<typename LastModifiedTimestampT = Aws::Utils::DateTime>
155 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) { m_lastModifiedTimestampHasBeenSet = true; m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value); }
156 template<typename LastModifiedTimestampT = Aws::Utils::DateTime>
157 DescribeNotificationRuleResult& WithLastModifiedTimestamp(LastModifiedTimestampT&& value) { SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value)); return *this;}
159
161
164 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
165 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
167 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
168 DescribeNotificationRuleResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
169 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
170 DescribeNotificationRuleResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
171 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
172 }
174
176
177 inline const Aws::String& GetRequestId() const { return m_requestId; }
178 template<typename RequestIdT = Aws::String>
179 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
180 template<typename RequestIdT = Aws::String>
181 DescribeNotificationRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
183 private:
184
185 Aws::String m_arn;
186 bool m_arnHasBeenSet = false;
187
188 Aws::String m_name;
189 bool m_nameHasBeenSet = false;
190
192 bool m_eventTypesHasBeenSet = false;
193
194 Aws::String m_resource;
195 bool m_resourceHasBeenSet = false;
196
198 bool m_targetsHasBeenSet = false;
199
200 DetailType m_detailType{DetailType::NOT_SET};
201 bool m_detailTypeHasBeenSet = false;
202
203 Aws::String m_createdBy;
204 bool m_createdByHasBeenSet = false;
205
207 bool m_statusHasBeenSet = false;
208
209 Aws::Utils::DateTime m_createdTimestamp{};
210 bool m_createdTimestampHasBeenSet = false;
211
212 Aws::Utils::DateTime m_lastModifiedTimestamp{};
213 bool m_lastModifiedTimestampHasBeenSet = false;
214
216 bool m_tagsHasBeenSet = false;
217
218 Aws::String m_requestId;
219 bool m_requestIdHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace CodeStarNotifications
224} // namespace Aws
DescribeNotificationRuleResult & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult()=default
AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeNotificationRuleResult & WithEventTypes(EventTypesT &&value)
DescribeNotificationRuleResult & WithStatus(NotificationRuleStatus value)
AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeNotificationRuleResult & AddEventTypes(EventTypesT &&value)
DescribeNotificationRuleResult & WithLastModifiedTimestamp(LastModifiedTimestampT &&value)
DescribeNotificationRuleResult & AddTags(TagsKeyT &&key, TagsValueT &&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