AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
50 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
51 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
52 inline CreateSubscriberRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline CreateSubscriberRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline CreateSubscriberRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
62 inline const Aws::String& GetBudgetName() const{ return m_budgetName; }
63 inline bool BudgetNameHasBeenSet() const { return m_budgetNameHasBeenSet; }
64 inline void SetBudgetName(const Aws::String& value) { m_budgetNameHasBeenSet = true; m_budgetName = value; }
65 inline void SetBudgetName(Aws::String&& value) { m_budgetNameHasBeenSet = true; m_budgetName = std::move(value); }
66 inline void SetBudgetName(const char* value) { m_budgetNameHasBeenSet = true; m_budgetName.assign(value); }
67 inline CreateSubscriberRequest& WithBudgetName(const Aws::String& value) { SetBudgetName(value); return *this;}
68 inline CreateSubscriberRequest& WithBudgetName(Aws::String&& value) { SetBudgetName(std::move(value)); return *this;}
69 inline CreateSubscriberRequest& WithBudgetName(const char* value) { SetBudgetName(value); return *this;}
71
73
76 inline const Notification& GetNotification() const{ return m_notification; }
77 inline bool NotificationHasBeenSet() const { return m_notificationHasBeenSet; }
78 inline void SetNotification(const Notification& value) { m_notificationHasBeenSet = true; m_notification = value; }
79 inline void SetNotification(Notification&& value) { m_notificationHasBeenSet = true; m_notification = std::move(value); }
80 inline CreateSubscriberRequest& WithNotification(const Notification& value) { SetNotification(value); return *this;}
81 inline CreateSubscriberRequest& WithNotification(Notification&& value) { SetNotification(std::move(value)); return *this;}
83
85
88 inline const Subscriber& GetSubscriber() const{ return m_subscriber; }
89 inline bool SubscriberHasBeenSet() const { return m_subscriberHasBeenSet; }
90 inline void SetSubscriber(const Subscriber& value) { m_subscriberHasBeenSet = true; m_subscriber = value; }
91 inline void SetSubscriber(Subscriber&& value) { m_subscriberHasBeenSet = true; m_subscriber = std::move(value); }
92 inline CreateSubscriberRequest& WithSubscriber(const Subscriber& value) { SetSubscriber(value); return *this;}
93 inline CreateSubscriberRequest& WithSubscriber(Subscriber&& value) { SetSubscriber(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_accountId;
98 bool m_accountIdHasBeenSet = false;
99
100 Aws::String m_budgetName;
101 bool m_budgetNameHasBeenSet = false;
102
103 Notification m_notification;
104 bool m_notificationHasBeenSet = false;
105
106 Subscriber m_subscriber;
107 bool m_subscriberHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Budgets
112} // namespace Aws
CreateSubscriberRequest & WithSubscriber(Subscriber &&value)
CreateSubscriberRequest & WithBudgetName(Aws::String &&value)
CreateSubscriberRequest & WithNotification(Notification &&value)
CreateSubscriberRequest & WithAccountId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateSubscriberRequest & WithNotification(const Notification &value)
CreateSubscriberRequest & WithSubscriber(const Subscriber &value)
AWS_BUDGETS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSubscriberRequest & WithBudgetName(const Aws::String &value)
CreateSubscriberRequest & WithAccountId(const Aws::String &value)
AWS_BUDGETS_API Aws::String SerializePayload() const override
CreateSubscriberRequest & WithAccountId(const char *value)
CreateSubscriberRequest & WithBudgetName(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String