7#include <aws/codestar-notifications/CodeStarNotificationsRequest.h>
8#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
9#include <aws/codestar-notifications/model/DetailType.h>
10#include <aws/codestar-notifications/model/NotificationRuleStatus.h>
11#include <aws/codestar-notifications/model/Target.h>
12#include <aws/core/utils/UUID.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>
20namespace CodeStarNotifications {
44 template <
typename NameT = Aws::String>
46 m_nameHasBeenSet =
true;
47 m_name = std::forward<NameT>(value);
49 template <
typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
63 template <
typename EventTypeIdsT = Aws::Vector<Aws::String>>
65 m_eventTypeIdsHasBeenSet =
true;
66 m_eventTypeIds = std::forward<EventTypeIdsT>(value);
68 template <
typename EventTypeIdsT = Aws::Vector<Aws::String>>
73 template <
typename EventTypeIdsT = Aws::String>
75 m_eventTypeIdsHasBeenSet =
true;
76 m_eventTypeIds.emplace_back(std::forward<EventTypeIdsT>(value));
89 template <
typename ResourceT = Aws::String>
91 m_resourceHasBeenSet =
true;
92 m_resource = std::forward<ResourceT>(value);
94 template <
typename ResourceT = Aws::String>
109 template <
typename TargetsT = Aws::Vector<Target>>
111 m_targetsHasBeenSet =
true;
112 m_targets = std::forward<TargetsT>(value);
114 template <
typename TargetsT = Aws::Vector<Target>>
119 template <
typename TargetsT = Target>
121 m_targetsHasBeenSet =
true;
122 m_targets.emplace_back(std::forward<TargetsT>(value));
138 m_detailTypeHasBeenSet =
true;
139 m_detailType = value;
159 template <
typename ClientRequestTokenT = Aws::String>
161 m_clientRequestTokenHasBeenSet =
true;
162 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
164 template <
typename ClientRequestTokenT = Aws::String>
178 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
180 m_tagsHasBeenSet =
true;
181 m_tags = std::forward<TagsT>(value);
183 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
185 SetTags(std::forward<TagsT>(value));
188 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
190 m_tagsHasBeenSet =
true;
191 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
205 m_statusHasBeenSet =
true;
229 bool m_nameHasBeenSet =
false;
230 bool m_eventTypeIdsHasBeenSet =
false;
231 bool m_resourceHasBeenSet =
false;
232 bool m_targetsHasBeenSet =
false;
233 bool m_detailTypeHasBeenSet =
false;
234 bool m_clientRequestTokenHasBeenSet =
true;
235 bool m_tagsHasBeenSet =
false;
236 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