AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateSubscriberRequest.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/BudgetsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/budgets/model/Notification.h>
11#include <aws/budgets/model/Subscriber.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Budgets
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_BUDGETS_API UpdateSubscriberRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateSubscriber"; }
36
37 AWS_BUDGETS_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetAccountId() const { return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 template<typename AccountIdT = Aws::String>
50 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
51 template<typename AccountIdT = Aws::String>
52 UpdateSubscriberRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
60 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
61 template<typename BudgetNameT = Aws::String>
62 void SetBudgetName(BudgetNameT&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::forward<BudgetNameT>(value); }
63 template<typename BudgetNameT = Aws::String>
64 UpdateSubscriberRequest& WithBudgetName(BudgetNameT&& value) { SetBudgetName(std::forward<BudgetNameT>(value)); return *this;}
66
68
71 inline const Notification& GetNotification() const { return m_notification; }
72 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
73 template<typename NotificationT = Notification>
74 void SetNotification(NotificationT&& value) { m_notificationHasBeenSet = true; m_notification = std::forward<NotificationT>(value); }
75 template<typename NotificationT = Notification>
76 UpdateSubscriberRequest& WithNotification(NotificationT&& value) { SetNotification(std::forward<NotificationT>(value)); return *this;}
78
80
83 inline const Subscriber& GetOldSubscriber() const { return m_oldSubscriber; }
84 inline bool OldSubscriberHasBeenSet() const { return m_oldSubscriberHasBeenSet; }
85 template<typename OldSubscriberT = Subscriber>
86 void SetOldSubscriber(OldSubscriberT&& value) { m_oldSubscriberHasBeenSet = true; m_oldSubscriber = std::forward<OldSubscriberT>(value); }
87 template<typename OldSubscriberT = Subscriber>
88 UpdateSubscriberRequest& WithOldSubscriber(OldSubscriberT&& value) { SetOldSubscriber(std::forward<OldSubscriberT>(value)); return *this;}
90
92
95 inline const Subscriber& GetNewSubscriber() const { return m_newSubscriber; }
96 inline bool NewSubscriberHasBeenSet() const { return m_newSubscriberHasBeenSet; }
97 template<typename NewSubscriberT = Subscriber>
98 void SetNewSubscriber(NewSubscriberT&& value) { m_newSubscriberHasBeenSet = true; m_newSubscriber = std::forward<NewSubscriberT>(value); }
99 template<typename NewSubscriberT = Subscriber>
100 UpdateSubscriberRequest& WithNewSubscriber(NewSubscriberT&& value) { SetNewSubscriber(std::forward<NewSubscriberT>(value)); return *this;}
102 private:
103
104 Aws::String m_accountId;
105 bool m_accountIdHasBeenSet = false;
106
107 Aws::String m_budgetName;
108 bool m_budgetNameHasBeenSet = false;
109
110 Notification m_notification;
111 bool m_notificationHasBeenSet = false;
112
113 Subscriber m_oldSubscriber;
114 bool m_oldSubscriberHasBeenSet = false;
115
116 Subscriber m_newSubscriber;
117 bool m_newSubscriberHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Budgets
122} // 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