AWS SDK for C++

AWS SDK for C++ Version 1.11.748

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Budgets {
21namespace Model {
22
34 public:
35 AWS_BUDGETS_API Subscriber() = default;
36 AWS_BUDGETS_API Subscriber(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BUDGETS_API Subscriber& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_BUDGETS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline SubscriptionType GetSubscriptionType() const { return m_subscriptionType; }
45 inline bool SubscriptionTypeHasBeenSet() const { return m_subscriptionTypeHasBeenSet; }
47 m_subscriptionTypeHasBeenSet = true;
48 m_subscriptionType = value;
49 }
52 return *this;
53 }
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) {
66 m_addressHasBeenSet = true;
67 m_address = std::forward<AddressT>(value);
68 }
69 template <typename AddressT = Aws::String>
70 Subscriber& WithAddress(AddressT&& value) {
71 SetAddress(std::forward<AddressT>(value));
72 return *this;
73 }
75 private:
77
78 Aws::String m_address;
79 bool m_subscriptionTypeHasBeenSet = false;
80 bool m_addressHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace Budgets
85} // namespace Aws
Subscriber & WithAddress(AddressT &&value)
Definition Subscriber.h:70
AWS_BUDGETS_API Subscriber()=default
Subscriber & WithSubscriptionType(SubscriptionType value)
Definition Subscriber.h:50
bool SubscriptionTypeHasBeenSet() const
Definition Subscriber.h:45
SubscriptionType GetSubscriptionType() const
Definition Subscriber.h:44
AWS_BUDGETS_API Subscriber(Aws::Utils::Json::JsonView jsonValue)
void SetAddress(AddressT &&value)
Definition Subscriber.h:65
void SetSubscriptionType(SubscriptionType value)
Definition Subscriber.h:46
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