AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateSubscriberRequest.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 CreateSubscriberRequest() = 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 "CreateSubscriber"; }
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
62 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
63 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
64 template <typename BudgetNameT = Aws::String>
65 void SetBudgetName(BudgetNameT&& value) {
66 m_budgetNameHasBeenSet = true;
67 m_budgetName = std::forward<BudgetNameT>(value);
68 }
69 template <typename BudgetNameT = Aws::String>
71 SetBudgetName(std::forward<BudgetNameT>(value));
72 return *this;
73 }
75
77
80 inline const Notification& GetNotification() const { return m_notification; }
81 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
82 template <typename NotificationT = Notification>
83 void SetNotification(NotificationT&& value) {
84 m_notificationHasBeenSet = true;
85 m_notification = std::forward<NotificationT>(value);
86 }
87 template <typename NotificationT = Notification>
88 CreateSubscriberRequest& WithNotification(NotificationT&& value) {
89 SetNotification(std::forward<NotificationT>(value));
90 return *this;
91 }
93
95
98 inline const Subscriber& GetSubscriber() const { return m_subscriber; }
99 inline bool SubscriberHasBeenSet() const { return m_subscriberHasBeenSet; }
100 template <typename SubscriberT = Subscriber>
101 void SetSubscriber(SubscriberT&& value) {
102 m_subscriberHasBeenSet = true;
103 m_subscriber = std::forward<SubscriberT>(value);
104 }
105 template <typename SubscriberT = Subscriber>
107 SetSubscriber(std::forward<SubscriberT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_accountId;
113
114 Aws::String m_budgetName;
115
116 Notification m_notification;
117
118 Subscriber m_subscriber;
119 bool m_accountIdHasBeenSet = false;
120 bool m_budgetNameHasBeenSet = false;
121 bool m_notificationHasBeenSet = false;
122 bool m_subscriberHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Budgets
127} // namespace Aws
CreateSubscriberRequest & WithNotification(NotificationT &&value)
virtual const char * GetServiceRequestName() const override
CreateSubscriberRequest & WithAccountId(AccountIdT &&value)
AWS_BUDGETS_API CreateSubscriberRequest()=default
CreateSubscriberRequest & WithBudgetName(BudgetNameT &&value)
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_BUDGETS_API Aws::String SerializePayload() const override
CreateSubscriberRequest & WithSubscriber(SubscriberT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String