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/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
18namespace CodeStarNotifications {
41 template <
typename ArnT = Aws::String>
43 m_arnHasBeenSet =
true;
44 m_arn = std::forward<ArnT>(value);
46 template <
typename ArnT = Aws::String>
48 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));
79 m_statusHasBeenSet =
true;
97 template <
typename EventTypeIdsT = Aws::Vector<Aws::String>>
99 m_eventTypeIdsHasBeenSet =
true;
100 m_eventTypeIds = std::forward<EventTypeIdsT>(value);
102 template <
typename EventTypeIdsT = Aws::Vector<Aws::String>>
107 template <
typename EventTypeIdsT = Aws::String>
109 m_eventTypeIdsHasBeenSet =
true;
110 m_eventTypeIds.emplace_back(std::forward<EventTypeIdsT>(value));
122 template <
typename TargetsT = Aws::Vector<Target>>
124 m_targetsHasBeenSet =
true;
125 m_targets = std::forward<TargetsT>(value);
127 template <
typename TargetsT = Aws::Vector<Target>>
132 template <
typename TargetsT = Target>
134 m_targetsHasBeenSet =
true;
135 m_targets.emplace_back(std::forward<TargetsT>(value));
151 m_detailTypeHasBeenSet =
true;
152 m_detailType = value;
171 bool m_arnHasBeenSet =
false;
172 bool m_nameHasBeenSet =
false;
173 bool m_statusHasBeenSet =
false;
174 bool m_eventTypeIdsHasBeenSet =
false;
175 bool m_targetsHasBeenSet =
false;
176 bool m_detailTypeHasBeenSet =
false;
void SetName(NameT &&value)
const Aws::Vector< Target > & GetTargets() const
DetailType GetDetailType() const
bool EventTypeIdsHasBeenSet() const
bool ArnHasBeenSet() const
void SetArn(ArnT &&value)
virtual const char * GetServiceRequestName() const override
UpdateNotificationRuleRequest & WithTargets(TargetsT &&value)
UpdateNotificationRuleRequest & WithEventTypeIds(EventTypeIdsT &&value)
const Aws::String & GetName() const
const Aws::String & GetArn() const
bool DetailTypeHasBeenSet() const
UpdateNotificationRuleRequest & WithDetailType(DetailType value)
AWS_CODESTARNOTIFICATIONS_API UpdateNotificationRuleRequest()=default
UpdateNotificationRuleRequest & WithName(NameT &&value)
void SetTargets(TargetsT &&value)
UpdateNotificationRuleRequest & AddEventTypeIds(EventTypeIdsT &&value)
UpdateNotificationRuleRequest & WithArn(ArnT &&value)
AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override
UpdateNotificationRuleRequest & WithStatus(NotificationRuleStatus value)
bool StatusHasBeenSet() const
void SetDetailType(DetailType value)
UpdateNotificationRuleRequest & AddTargets(TargetsT &&value)
bool NameHasBeenSet() const
NotificationRuleStatus GetStatus() const
const Aws::Vector< Aws::String > & GetEventTypeIds() const
void SetStatus(NotificationRuleStatus value)
void SetEventTypeIds(EventTypeIdsT &&value)
bool TargetsHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector