7#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
8#include <aws/codestar-notifications/CodeStarNotificationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codestar-notifications/model/DetailType.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/codestar-notifications/model/NotificationRuleStatus.h>
14#include <aws/codestar-notifications/model/Target.h>
16#include <aws/core/utils/UUID.h>
20namespace CodeStarNotifications
48 template<
typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
50 template<
typename NameT = Aws::String>
61 template<
typename EventTypeIdsT = Aws::Vector<Aws::String>>
62 void SetEventTypeIds(EventTypeIdsT&& value) { m_eventTypeIdsHasBeenSet =
true; m_eventTypeIds = std::forward<EventTypeIdsT>(value); }
63 template<
typename EventTypeIdsT = Aws::Vector<Aws::String>>
65 template<
typename EventTypeIdsT = Aws::String>
77 template<
typename ResourceT = Aws::String>
78 void SetResource(ResourceT&& value) { m_resourceHasBeenSet =
true; m_resource = std::forward<ResourceT>(value); }
79 template<
typename ResourceT = Aws::String>
90 template<
typename TargetsT = Aws::Vector<Target>>
91 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets = std::forward<TargetsT>(value); }
92 template<
typename TargetsT = Aws::Vector<Target>>
94 template<
typename TargetsT = Target>
124 template<
typename ClientRequestTokenT = Aws::String>
125 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet =
true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
126 template<
typename ClientRequestTokenT = Aws::String>
137 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
138 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
139 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
143 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
161 bool m_nameHasBeenSet =
false;
164 bool m_eventTypeIdsHasBeenSet =
false;
167 bool m_resourceHasBeenSet =
false;
170 bool m_targetsHasBeenSet =
false;
173 bool m_detailTypeHasBeenSet =
false;
176 bool m_clientRequestTokenHasBeenSet =
true;
179 bool m_tagsHasBeenSet =
false;
182 bool m_statusHasBeenSet =
false;
CreateNotificationRuleRequest & WithTargets(TargetsT &&value)
bool ResourceHasBeenSet() const
const Aws::String & GetResource() const
CreateNotificationRuleRequest & WithTags(TagsT &&value)
CreateNotificationRuleRequest & WithResource(ResourceT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CODESTARNOTIFICATIONS_API CreateNotificationRuleRequest()=default
bool TargetsHasBeenSet() const
CreateNotificationRuleRequest & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetEventTypeIds() const
const Aws::String & GetClientRequestToken() const
DetailType GetDetailType() const
bool DetailTypeHasBeenSet() const
void SetTags(TagsT &&value)
CreateNotificationRuleRequest & WithStatus(NotificationRuleStatus value)
CreateNotificationRuleRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override
const Aws::String & GetName() const
void SetDetailType(DetailType value)
bool EventTypeIdsHasBeenSet() const
CreateNotificationRuleRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetResource(ResourceT &&value)
bool NameHasBeenSet() const
void SetEventTypeIds(EventTypeIdsT &&value)
const Aws::Vector< Target > & GetTargets() const
NotificationRuleStatus GetStatus() const
void SetStatus(NotificationRuleStatus value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTargets(TargetsT &&value)
bool StatusHasBeenSet() const
CreateNotificationRuleRequest & AddTargets(TargetsT &&value)
bool TagsHasBeenSet() const
void SetName(NameT &&value)
bool ClientRequestTokenHasBeenSet() const
CreateNotificationRuleRequest & AddEventTypeIds(EventTypeIdsT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
CreateNotificationRuleRequest & WithDetailType(DetailType value)
CreateNotificationRuleRequest & WithEventTypeIds(EventTypeIdsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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