AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateNotificationRuleRequest.h
1
6#pragma once
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>
14#include <utility>
15
16namespace Aws
17{
18namespace CodeStarNotifications
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_CODESTARNOTIFICATIONS_API UpdateNotificationRuleRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateNotificationRule"; }
35
36 AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetArn() const{ return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
46 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
47 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
48 inline UpdateNotificationRuleRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
49 inline UpdateNotificationRuleRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
50 inline UpdateNotificationRuleRequest& WithArn(const char* value) { SetArn(value); return *this;}
52
54
57 inline const Aws::String& GetName() const{ return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
60 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 inline UpdateNotificationRuleRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
63 inline UpdateNotificationRuleRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
64 inline UpdateNotificationRuleRequest& WithName(const char* value) { SetName(value); return *this;}
66
68
72 inline const NotificationRuleStatus& GetStatus() const{ return m_status; }
73 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
74 inline void SetStatus(const NotificationRuleStatus& value) { m_statusHasBeenSet = true; m_status = value; }
75 inline void SetStatus(NotificationRuleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
76 inline UpdateNotificationRuleRequest& WithStatus(const NotificationRuleStatus& value) { SetStatus(value); return *this;}
77 inline UpdateNotificationRuleRequest& WithStatus(NotificationRuleStatus&& value) { SetStatus(std::move(value)); return *this;}
79
81
87 inline const Aws::Vector<Aws::String>& GetEventTypeIds() const{ return m_eventTypeIds; }
88 inline bool EventTypeIdsHasBeenSet() const { return m_eventTypeIdsHasBeenSet; }
89 inline void SetEventTypeIds(const Aws::Vector<Aws::String>& value) { m_eventTypeIdsHasBeenSet = true; m_eventTypeIds = value; }
90 inline void SetEventTypeIds(Aws::Vector<Aws::String>&& value) { m_eventTypeIdsHasBeenSet = true; m_eventTypeIds = std::move(value); }
93 inline UpdateNotificationRuleRequest& AddEventTypeIds(const Aws::String& value) { m_eventTypeIdsHasBeenSet = true; m_eventTypeIds.push_back(value); return *this; }
94 inline UpdateNotificationRuleRequest& AddEventTypeIds(Aws::String&& value) { m_eventTypeIdsHasBeenSet = true; m_eventTypeIds.push_back(std::move(value)); return *this; }
95 inline UpdateNotificationRuleRequest& AddEventTypeIds(const char* value) { m_eventTypeIdsHasBeenSet = true; m_eventTypeIds.push_back(value); return *this; }
97
99
103 inline const Aws::Vector<Target>& GetTargets() const{ return m_targets; }
104 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
105 inline void SetTargets(const Aws::Vector<Target>& value) { m_targetsHasBeenSet = true; m_targets = value; }
106 inline void SetTargets(Aws::Vector<Target>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
107 inline UpdateNotificationRuleRequest& WithTargets(const Aws::Vector<Target>& value) { SetTargets(value); return *this;}
108 inline UpdateNotificationRuleRequest& WithTargets(Aws::Vector<Target>&& value) { SetTargets(std::move(value)); return *this;}
109 inline UpdateNotificationRuleRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
110 inline UpdateNotificationRuleRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
112
114
121 inline const DetailType& GetDetailType() const{ return m_detailType; }
122 inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
123 inline void SetDetailType(const DetailType& value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
124 inline void SetDetailType(DetailType&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); }
125 inline UpdateNotificationRuleRequest& WithDetailType(const DetailType& value) { SetDetailType(value); return *this;}
126 inline UpdateNotificationRuleRequest& WithDetailType(DetailType&& value) { SetDetailType(std::move(value)); return *this;}
128 private:
129
130 Aws::String m_arn;
131 bool m_arnHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 NotificationRuleStatus m_status;
137 bool m_statusHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_eventTypeIds;
140 bool m_eventTypeIdsHasBeenSet = false;
141
142 Aws::Vector<Target> m_targets;
143 bool m_targetsHasBeenSet = false;
144
145 DetailType m_detailType;
146 bool m_detailTypeHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace CodeStarNotifications
151} // namespace Aws
UpdateNotificationRuleRequest & AddEventTypeIds(Aws::String &&value)
UpdateNotificationRuleRequest & WithTargets(const Aws::Vector< Target > &value)
UpdateNotificationRuleRequest & WithStatus(const NotificationRuleStatus &value)
UpdateNotificationRuleRequest & AddTargets(const Target &value)
UpdateNotificationRuleRequest & WithDetailType(const DetailType &value)
UpdateNotificationRuleRequest & WithStatus(NotificationRuleStatus &&value)
UpdateNotificationRuleRequest & WithName(const Aws::String &value)
UpdateNotificationRuleRequest & WithEventTypeIds(Aws::Vector< Aws::String > &&value)
UpdateNotificationRuleRequest & WithTargets(Aws::Vector< Target > &&value)
UpdateNotificationRuleRequest & WithDetailType(DetailType &&value)
UpdateNotificationRuleRequest & AddEventTypeIds(const char *value)
UpdateNotificationRuleRequest & WithArn(const Aws::String &value)
AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override
UpdateNotificationRuleRequest & AddEventTypeIds(const Aws::String &value)
UpdateNotificationRuleRequest & WithName(Aws::String &&value)
UpdateNotificationRuleRequest & WithEventTypeIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector