7#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
8#include <aws/codestar-notifications/model/DetailType.h>
9#include <aws/codestar-notifications/model/EventTypeSummary.h>
10#include <aws/codestar-notifications/model/NotificationRuleStatus.h>
11#include <aws/codestar-notifications/model/TargetSummary.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
20template <
typename RESULT_TYPE>
21class AmazonWebServiceResult;
28namespace CodeStarNotifications {
42 template <
typename ArnT = Aws::String>
44 m_arnHasBeenSet =
true;
45 m_arn = std::forward<ArnT>(value);
47 template <
typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
59 template <
typename NameT = Aws::String>
61 m_nameHasBeenSet =
true;
62 m_name = std::forward<NameT>(value);
64 template <
typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
76 template <
typename EventTypesT = Aws::Vector<EventTypeSummary>>
78 m_eventTypesHasBeenSet =
true;
79 m_eventTypes = std::forward<EventTypesT>(value);
81 template <
typename EventTypesT = Aws::Vector<EventTypeSummary>>
86 template <
typename EventTypesT = EventTypeSummary>
88 m_eventTypesHasBeenSet =
true;
89 m_eventTypes.emplace_back(std::forward<EventTypesT>(value));
100 template <
typename ResourceT = Aws::String>
102 m_resourceHasBeenSet =
true;
103 m_resource = std::forward<ResourceT>(value);
105 template <
typename ResourceT = Aws::String>
119 template <
typename TargetsT = Aws::Vector<TargetSummary>>
121 m_targetsHasBeenSet =
true;
122 m_targets = std::forward<TargetsT>(value);
124 template <
typename TargetsT = Aws::Vector<TargetSummary>>
129 template <
typename TargetsT = TargetSummary>
131 m_targetsHasBeenSet =
true;
132 m_targets.emplace_back(std::forward<TargetsT>(value));
147 m_detailTypeHasBeenSet =
true;
148 m_detailType = value;
161 template <
typename CreatedByT = Aws::String>
163 m_createdByHasBeenSet =
true;
164 m_createdBy = std::forward<CreatedByT>(value);
166 template <
typename CreatedByT = Aws::String>
180 m_statusHasBeenSet =
true;
194 template <
typename CreatedTimestampT = Aws::Utils::DateTime>
196 m_createdTimestampHasBeenSet =
true;
197 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
199 template <
typename CreatedTimestampT = Aws::Utils::DateTime>
212 template <
typename LastModifiedTimestampT = Aws::Utils::DateTime>
214 m_lastModifiedTimestampHasBeenSet =
true;
215 m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value);
217 template <
typename LastModifiedTimestampT = Aws::Utils::DateTime>
229 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
231 m_tagsHasBeenSet =
true;
232 m_tags = std::forward<TagsT>(value);
234 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
236 SetTags(std::forward<TagsT>(value));
239 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
241 m_tagsHasBeenSet =
true;
242 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
250 template <
typename RequestIdT = Aws::String>
252 m_requestIdHasBeenSet =
true;
253 m_requestId = std::forward<RequestIdT>(value);
255 template <
typename RequestIdT = Aws::String>
285 bool m_arnHasBeenSet =
false;
286 bool m_nameHasBeenSet =
false;
287 bool m_eventTypesHasBeenSet =
false;
288 bool m_resourceHasBeenSet =
false;
289 bool m_targetsHasBeenSet =
false;
290 bool m_detailTypeHasBeenSet =
false;
291 bool m_createdByHasBeenSet =
false;
292 bool m_statusHasBeenSet =
false;
293 bool m_createdTimestampHasBeenSet =
false;
294 bool m_lastModifiedTimestampHasBeenSet =
false;
295 bool m_tagsHasBeenSet =
false;
296 bool m_requestIdHasBeenSet =
false;
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetResource(ResourceT &&value)
void SetRequestId(RequestIdT &&value)
DescribeNotificationRuleResult & WithCreatedTimestamp(CreatedTimestampT &&value)
AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult()=default
DescribeNotificationRuleResult & WithArn(ArnT &&value)
void SetName(NameT &&value)
const Aws::String & GetName() const
DescribeNotificationRuleResult & WithTags(TagsT &&value)
DescribeNotificationRuleResult & WithDetailType(DetailType value)
DescribeNotificationRuleResult & WithName(NameT &&value)
DescribeNotificationRuleResult & AddTargets(TargetsT &&value)
DetailType GetDetailType() const
const Aws::Utils::DateTime & GetLastModifiedTimestamp() const
AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetCreatedTimestamp() const
DescribeNotificationRuleResult & WithCreatedBy(CreatedByT &&value)
const Aws::String & GetCreatedBy() const
const Aws::String & GetRequestId() const
void SetLastModifiedTimestamp(LastModifiedTimestampT &&value)
void SetCreatedBy(CreatedByT &&value)
NotificationRuleStatus GetStatus() const
void SetCreatedTimestamp(CreatedTimestampT &&value)
DescribeNotificationRuleResult & WithEventTypes(EventTypesT &&value)
void SetDetailType(DetailType value)
DescribeNotificationRuleResult & WithTargets(TargetsT &&value)
DescribeNotificationRuleResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< EventTypeSummary > & GetEventTypes() const
DescribeNotificationRuleResult & WithStatus(NotificationRuleStatus value)
AWS_CODESTARNOTIFICATIONS_API DescribeNotificationRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetStatus(NotificationRuleStatus value)
const Aws::Vector< TargetSummary > & GetTargets() const
DescribeNotificationRuleResult & AddEventTypes(EventTypesT &&value)
void SetEventTypes(EventTypesT &&value)
void SetTags(TagsT &&value)
void SetArn(ArnT &&value)
DescribeNotificationRuleResult & WithLastModifiedTimestamp(LastModifiedTimestampT &&value)
const Aws::String & GetResource() const
void SetTargets(TargetsT &&value)
DescribeNotificationRuleResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetArn() const
DescribeNotificationRuleResult & WithResource(ResourceT &&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