AWS SDK for C++

AWS SDK for C++ Version 1.11.644

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
95 inline const Aws::Vector<TargetSummary>& GetTargets() const { return m_targets; }
96 template<typename TargetsT = Aws::Vector<TargetSummary>>
97 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
98 template<typename TargetsT = Aws::Vector<TargetSummary>>
99 DescribeNotificationRuleResult& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
100 template<typename TargetsT = TargetSummary>
101 DescribeNotificationRuleResult& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
103
105
112 inline DetailType GetDetailType() const { return m_detailType; }
113 inline void SetDetailType(DetailType value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
116
118
121 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
122 template<typename CreatedByT = Aws::String>
123 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
124 template<typename CreatedByT = Aws::String>
125 DescribeNotificationRuleResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
127
129
133 inline NotificationRuleStatus GetStatus() const { return m_status; }
134 inline void SetStatus(NotificationRuleStatus value) { m_statusHasBeenSet = true; m_status = value; }
137
139
142 inline const Aws::Utils::DateTime& GetCreatedTimestamp() const { return m_createdTimestamp; }
143 template<typename CreatedTimestampT = Aws::Utils::DateTime>
144 void SetCreatedTimestamp(CreatedTimestampT&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::forward<CreatedTimestampT>(value); }
145 template<typename CreatedTimestampT = Aws::Utils::DateTime>
146 DescribeNotificationRuleResult& WithCreatedTimestamp(CreatedTimestampT&& value) { SetCreatedTimestamp(std::forward<CreatedTimestampT>(value)); return *this;}
148
150
154 inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const { return m_lastModifiedTimestamp; }
155 template<typename LastModifiedTimestampT = Aws::Utils::DateTime>
156 void SetLastModifiedTimestamp(LastModifiedTimestampT&& value) { m_lastModifiedTimestampHasBeenSet = true; m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value); }
157 template<typename LastModifiedTimestampT = Aws::Utils::DateTime>
158 DescribeNotificationRuleResult& WithLastModifiedTimestamp(LastModifiedTimestampT&& value) { SetLastModifiedTimestamp(std::forward<LastModifiedTimestampT>(value)); return *this;}
160
162
165 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
166 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
168 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
169 DescribeNotificationRuleResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
170 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
171 DescribeNotificationRuleResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
172 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
173 }
175
177
178 inline const Aws::String& GetRequestId() const { return m_requestId; }
179 template<typename RequestIdT = Aws::String>
180 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
181 template<typename RequestIdT = Aws::String>
182 DescribeNotificationRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
184 private:
185
186 Aws::String m_arn;
187 bool m_arnHasBeenSet = false;
188
189 Aws::String m_name;
190 bool m_nameHasBeenSet = false;
191
193 bool m_eventTypesHasBeenSet = false;
194
195 Aws::String m_resource;
196 bool m_resourceHasBeenSet = false;
197
199 bool m_targetsHasBeenSet = false;
200
201 DetailType m_detailType{DetailType::NOT_SET};
202 bool m_detailTypeHasBeenSet = false;
203
204 Aws::String m_createdBy;
205 bool m_createdByHasBeenSet = false;
206
208 bool m_statusHasBeenSet = false;
209
210 Aws::Utils::DateTime m_createdTimestamp{};
211 bool m_createdTimestampHasBeenSet = false;
212
213 Aws::Utils::DateTime m_lastModifiedTimestamp{};
214 bool m_lastModifiedTimestampHasBeenSet = false;
215
217 bool m_tagsHasBeenSet = false;
218
219 Aws::String m_requestId;
220 bool m_requestIdHasBeenSet = false;
221 };
222
223} // namespace Model
224} // namespace CodeStarNotifications
225} // 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