AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UpdateSubscriberRequest.h
1
6#pragma once
7#include <aws/budgets/BudgetsRequest.h>
8#include <aws/budgets/Budgets_EXPORTS.h>
9#include <aws/budgets/model/Notification.h>
10#include <aws/budgets/model/Subscriber.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Budgets {
17namespace Model {
18
25 public:
26 AWS_BUDGETS_API UpdateSubscriberRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateSubscriber"; }
33
34 AWS_BUDGETS_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetAccountId() const { return m_accountId; }
44 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
45 template <typename AccountIdT = Aws::String>
46 void SetAccountId(AccountIdT&& value) {
47 m_accountIdHasBeenSet = true;
48 m_accountId = std::forward<AccountIdT>(value);
49 }
50 template <typename AccountIdT = Aws::String>
52 SetAccountId(std::forward<AccountIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
62 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
63 template <typename BudgetNameT = Aws::String>
64 void SetBudgetName(BudgetNameT&& value) {
65 m_budgetNameHasBeenSet = true;
66 m_budgetName = std::forward<BudgetNameT>(value);
67 }
68 template <typename BudgetNameT = Aws::String>
70 SetBudgetName(std::forward<BudgetNameT>(value));
71 return *this;
72 }
74
76
79 inline const Notification& GetNotification() const { return m_notification; }
80 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
81 template <typename NotificationT = Notification>
82 void SetNotification(NotificationT&& value) {
83 m_notificationHasBeenSet = true;
84 m_notification = std::forward<NotificationT>(value);
85 }
86 template <typename NotificationT = Notification>
87 UpdateSubscriberRequest& WithNotification(NotificationT&& value) {
88 SetNotification(std::forward<NotificationT>(value));
89 return *this;
90 }
92
94
97 inline const Subscriber& GetOldSubscriber() const { return m_oldSubscriber; }
98 inline bool OldSubscriberHasBeenSet() const { return m_oldSubscriberHasBeenSet; }
99 template <typename OldSubscriberT = Subscriber>
100 void SetOldSubscriber(OldSubscriberT&& value) {
101 m_oldSubscriberHasBeenSet = true;
102 m_oldSubscriber = std::forward<OldSubscriberT>(value);
103 }
104 template <typename OldSubscriberT = Subscriber>
106 SetOldSubscriber(std::forward<OldSubscriberT>(value));
107 return *this;
108 }
110
112
115 inline const Subscriber& GetNewSubscriber() const { return m_newSubscriber; }
116 inline bool NewSubscriberHasBeenSet() const { return m_newSubscriberHasBeenSet; }
117 template <typename NewSubscriberT = Subscriber>
118 void SetNewSubscriber(NewSubscriberT&& value) {
119 m_newSubscriberHasBeenSet = true;
120 m_newSubscriber = std::forward<NewSubscriberT>(value);
121 }
122 template <typename NewSubscriberT = Subscriber>
124 SetNewSubscriber(std::forward<NewSubscriberT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_accountId;
130
131 Aws::String m_budgetName;
132
133 Notification m_notification;
134
135 Subscriber m_oldSubscriber;
136
137 Subscriber m_newSubscriber;
138 bool m_accountIdHasBeenSet = false;
139 bool m_budgetNameHasBeenSet = false;
140 bool m_notificationHasBeenSet = false;
141 bool m_oldSubscriberHasBeenSet = false;
142 bool m_newSubscriberHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace Budgets
147} // namespace Aws
UpdateSubscriberRequest & WithAccountId(AccountIdT &&value)
AWS_BUDGETS_API Aws::String SerializePayload() const override
UpdateSubscriberRequest & WithNotification(NotificationT &&value)
UpdateSubscriberRequest & WithOldSubscriber(OldSubscriberT &&value)
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_BUDGETS_API UpdateSubscriberRequest()=default
UpdateSubscriberRequest & WithNewSubscriber(NewSubscriberT &&value)
UpdateSubscriberRequest & WithBudgetName(BudgetNameT &&value)
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String