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/codestar-notifications/model/NotificationRuleStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/codestar-notifications/model/DetailType.h>
13#include <aws/codestar-notifications/model/Target.h>
18namespace CodeStarNotifications
45 template<
typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
47 template<
typename ArnT = Aws::String>
57 template<
typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
59 template<
typename NameT = Aws::String>
83 template<
typename EventTypeIdsT = Aws::Vector<Aws::String>>
84 void SetEventTypeIds(EventTypeIdsT&& value) { m_eventTypeIdsHasBeenSet =
true; m_eventTypeIds = std::forward<EventTypeIdsT>(value); }
85 template<
typename EventTypeIdsT = Aws::Vector<Aws::String>>
87 template<
typename EventTypeIdsT = Aws::String>
98 template<
typename TargetsT = Aws::Vector<Target>>
99 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet =
true; m_targets = std::forward<TargetsT>(value); }
100 template<
typename TargetsT = Aws::Vector<Target>>
102 template<
typename TargetsT = Target>
122 bool m_arnHasBeenSet =
false;
125 bool m_nameHasBeenSet =
false;
128 bool m_statusHasBeenSet =
false;
131 bool m_eventTypeIdsHasBeenSet =
false;
134 bool m_targetsHasBeenSet =
false;
137 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