AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateSubscriberRequest.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 CreateSubscriberRequest() = 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 "CreateSubscriber"; }
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 CreateSubscriberRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
54
56
60 inline const Aws::String& GetBudgetName() const { return m_budgetName; }
61 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
62 template<typename BudgetNameT = Aws::String>
63 void SetBudgetName(BudgetNameT&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::forward<BudgetNameT>(value); }
64 template<typename BudgetNameT = Aws::String>
65 CreateSubscriberRequest& WithBudgetName(BudgetNameT&& value) { SetBudgetName(std::forward<BudgetNameT>(value)); return *this;}
67
69
72 inline const Notification& GetNotification() const { return m_notification; }
73 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
74 template<typename NotificationT = Notification>
75 void SetNotification(NotificationT&& value) { m_notificationHasBeenSet = true; m_notification = std::forward<NotificationT>(value); }
76 template<typename NotificationT = Notification>
77 CreateSubscriberRequest& WithNotification(NotificationT&& value) { SetNotification(std::forward<NotificationT>(value)); return *this;}
79
81
84 inline const Subscriber& GetSubscriber() const { return m_subscriber; }
85 inline bool SubscriberHasBeenSet() const { return m_subscriberHasBeenSet; }
86 template<typename SubscriberT = Subscriber>
87 void SetSubscriber(SubscriberT&& value) { m_subscriberHasBeenSet = true; m_subscriber = std::forward<SubscriberT>(value); }
88 template<typename SubscriberT = Subscriber>
89 CreateSubscriberRequest& WithSubscriber(SubscriberT&& value) { SetSubscriber(std::forward<SubscriberT>(value)); return *this;}
91 private:
92
93 Aws::String m_accountId;
94 bool m_accountIdHasBeenSet = false;
95
96 Aws::String m_budgetName;
97 bool m_budgetNameHasBeenSet = false;
98
99 Notification m_notification;
100 bool m_notificationHasBeenSet = false;
101
102 Subscriber m_subscriber;
103 bool m_subscriberHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Budgets
108} // 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