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/http/HttpResponse.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16#include <aws/core/utils/memory/stl/AWSVector.h>
21template <
typename RESULT_TYPE>
22class AmazonWebServiceResult;
29namespace CodeStarNotifications {
43 template <
typename ArnT = Aws::String>
45 m_arnHasBeenSet =
true;
46 m_arn = std::forward<ArnT>(value);
48 template <
typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
60 template <
typename NameT = Aws::String>
62 m_nameHasBeenSet =
true;
63 m_name = std::forward<NameT>(value);
65 template <
typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
77 template <
typename EventTypesT = Aws::Vector<EventTypeSummary>>
79 m_eventTypesHasBeenSet =
true;
80 m_eventTypes = std::forward<EventTypesT>(value);
82 template <
typename EventTypesT = Aws::Vector<EventTypeSummary>>
87 template <
typename EventTypesT = EventTypeSummary>
89 m_eventTypesHasBeenSet =
true;
90 m_eventTypes.emplace_back(std::forward<EventTypesT>(value));
101 template <
typename ResourceT = Aws::String>
103 m_resourceHasBeenSet =
true;
104 m_resource = std::forward<ResourceT>(value);
106 template <
typename ResourceT = Aws::String>
120 template <
typename TargetsT = Aws::Vector<TargetSummary>>
122 m_targetsHasBeenSet =
true;
123 m_targets = std::forward<TargetsT>(value);
125 template <
typename TargetsT = Aws::Vector<TargetSummary>>
130 template <
typename TargetsT = TargetSummary>
132 m_targetsHasBeenSet =
true;
133 m_targets.emplace_back(std::forward<TargetsT>(value));
148 m_detailTypeHasBeenSet =
true;
149 m_detailType = value;
162 template <
typename CreatedByT = Aws::String>
164 m_createdByHasBeenSet =
true;
165 m_createdBy = std::forward<CreatedByT>(value);
167 template <
typename CreatedByT = Aws::String>
181 m_statusHasBeenSet =
true;
195 template <
typename CreatedTimestampT = Aws::Utils::DateTime>
197 m_createdTimestampHasBeenSet =
true;
198 m_createdTimestamp = std::forward<CreatedTimestampT>(value);
200 template <
typename CreatedTimestampT = Aws::Utils::DateTime>
213 template <
typename LastModifiedTimestampT = Aws::Utils::DateTime>
215 m_lastModifiedTimestampHasBeenSet =
true;
216 m_lastModifiedTimestamp = std::forward<LastModifiedTimestampT>(value);
218 template <
typename LastModifiedTimestampT = Aws::Utils::DateTime>
230 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
232 m_tagsHasBeenSet =
true;
233 m_tags = std::forward<TagsT>(value);
235 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
237 SetTags(std::forward<TagsT>(value));
240 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
242 m_tagsHasBeenSet =
true;
243 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
251 template <
typename RequestIdT = Aws::String>
253 m_requestIdHasBeenSet =
true;
254 m_requestId = std::forward<RequestIdT>(value);
256 template <
typename RequestIdT = Aws::String>
289 bool m_arnHasBeenSet =
false;
290 bool m_nameHasBeenSet =
false;
291 bool m_eventTypesHasBeenSet =
false;
292 bool m_resourceHasBeenSet =
false;
293 bool m_targetsHasBeenSet =
false;
294 bool m_detailTypeHasBeenSet =
false;
295 bool m_createdByHasBeenSet =
false;
296 bool m_statusHasBeenSet =
false;
297 bool m_createdTimestampHasBeenSet =
false;
298 bool m_lastModifiedTimestampHasBeenSet =
false;
299 bool m_tagsHasBeenSet =
false;
300 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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