AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const SubscriptionType& GetSubscriptionType() const{ return m_subscriptionType; }
51 inline bool SubscriptionTypeHasBeenSet() const { return m_subscriptionTypeHasBeenSet; }
52 inline void SetSubscriptionType(const SubscriptionType& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = value; }
53 inline void SetSubscriptionType(SubscriptionType&& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = std::move(value); }
54 inline Subscriber& WithSubscriptionType(const SubscriptionType& value) { SetSubscriptionType(value); return *this;}
55 inline Subscriber& WithSubscriptionType(SubscriptionType&& value) { SetSubscriptionType(std::move(value)); return *this;}
57
59
64 inline const Aws::String& GetAddress() const{ return m_address; }
65 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
66 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
67 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
68 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
69 inline Subscriber& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
70 inline Subscriber& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
71 inline Subscriber& WithAddress(const char* value) { SetAddress(value); return *this;}
73 private:
74
75 SubscriptionType m_subscriptionType;
76 bool m_subscriptionTypeHasBeenSet = false;
77
78 Aws::String m_address;
79 bool m_addressHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Budgets
84} // namespace Aws
Subscriber & WithAddress(const char *value)
Definition Subscriber.h:71
bool SubscriptionTypeHasBeenSet() const
Definition Subscriber.h:51
Subscriber & WithAddress(const Aws::String &value)
Definition Subscriber.h:69
void SetSubscriptionType(SubscriptionType &&value)
Definition Subscriber.h:53
AWS_BUDGETS_API Subscriber(Aws::Utils::Json::JsonView jsonValue)
void SetAddress(const Aws::String &value)
Definition Subscriber.h:66
const SubscriptionType & GetSubscriptionType() const
Definition Subscriber.h:50
AWS_BUDGETS_API Subscriber & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAddress(const char *value)
Definition Subscriber.h:68
const Aws::String & GetAddress() const
Definition Subscriber.h:64
Subscriber & WithAddress(Aws::String &&value)
Definition Subscriber.h:70
Subscriber & WithSubscriptionType(SubscriptionType &&value)
Definition Subscriber.h:55
AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSubscriptionType(const SubscriptionType &value)
Definition Subscriber.h:52
Subscriber & WithSubscriptionType(const SubscriptionType &value)
Definition Subscriber.h:54
void SetAddress(Aws::String &&value)
Definition Subscriber.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue