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>
20template<
typename RESULT_TYPE>
21class AmazonWebServiceResult;
30namespace CodeStarNotifications
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>
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>
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>>
73 template<
typename EventTypesT = EventTypeSummary>
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>
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>>
99 template<
typename TargetsT = TargetSummary>
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>
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>
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>
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>>
169 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
171 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
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>
186 bool m_arnHasBeenSet =
false;
189 bool m_nameHasBeenSet =
false;
192 bool m_eventTypesHasBeenSet =
false;
195 bool m_resourceHasBeenSet =
false;
198 bool m_targetsHasBeenSet =
false;
201 bool m_detailTypeHasBeenSet =
false;
204 bool m_createdByHasBeenSet =
false;
207 bool m_statusHasBeenSet =
false;
210 bool m_createdTimestampHasBeenSet =
false;
213 bool m_lastModifiedTimestampHasBeenSet =
false;
216 bool m_tagsHasBeenSet =
false;
219 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