AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Subscriber.h
1
6#pragma once
7#include <aws/budgets/Budgets_EXPORTS.h>
8#include <aws/budgets/model/SubscriptionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Budgets
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_BUDGETS_API Subscriber() = default;
41 AWS_BUDGETS_API Subscriber(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BUDGETS_API Subscriber& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline SubscriptionType GetSubscriptionType() const { return m_subscriptionType; }
51 inline bool SubscriptionTypeHasBeenSet() const { return m_subscriptionTypeHasBeenSet; }
52 inline void SetSubscriptionType(SubscriptionType value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = value; }
55
57
62 inline const Aws::String& GetAddress() const { return m_address; }
63 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
64 template<typename AddressT = Aws::String>
65 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
66 template<typename AddressT = Aws::String>
67 Subscriber& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
69 private:
70
72 bool m_subscriptionTypeHasBeenSet = false;
73
74 Aws::String m_address;
75 bool m_addressHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace Budgets
80} // namespace Aws
Subscriber & WithAddress(AddressT &&value)
Definition Subscriber.h:67
AWS_BUDGETS_API Subscriber()=default
Subscriber & WithSubscriptionType(SubscriptionType value)
Definition Subscriber.h:53
bool SubscriptionTypeHasBeenSet() const
Definition Subscriber.h:51
SubscriptionType GetSubscriptionType() const
Definition Subscriber.h:50
AWS_BUDGETS_API Subscriber(Aws::Utils::Json::JsonView jsonValue)
void SetAddress(AddressT &&value)
Definition Subscriber.h:65
void SetSubscriptionType(SubscriptionType value)
Definition Subscriber.h:52
AWS_BUDGETS_API Subscriber & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAddress() const
Definition Subscriber.h:62
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue