AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Subscriber.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/ce/model/SubscriberStatus.h>
9#include <aws/ce/model/SubscriberType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostExplorer {
22namespace Model {
23
31 public:
32 AWS_COSTEXPLORER_API Subscriber() = default;
33 AWS_COSTEXPLORER_API Subscriber(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COSTEXPLORER_API Subscriber& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetAddress() const { return m_address; }
43 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
44 template <typename AddressT = Aws::String>
45 void SetAddress(AddressT&& value) {
46 m_addressHasBeenSet = true;
47 m_address = std::forward<AddressT>(value);
48 }
49 template <typename AddressT = Aws::String>
50 Subscriber& WithAddress(AddressT&& value) {
51 SetAddress(std::forward<AddressT>(value));
52 return *this;
53 }
55
57
60 inline SubscriberType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(SubscriberType value) {
63 m_typeHasBeenSet = true;
64 m_type = value;
65 }
67 SetType(value);
68 return *this;
69 }
71
73
76 inline SubscriberStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(SubscriberStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87 private:
88 Aws::String m_address;
89
91
93 bool m_addressHasBeenSet = false;
94 bool m_typeHasBeenSet = false;
95 bool m_statusHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace CostExplorer
100} // namespace Aws
Subscriber & WithStatus(SubscriberStatus value)
Definition Subscriber.h:82
AWS_COSTEXPLORER_API Subscriber(Aws::Utils::Json::JsonView jsonValue)
Subscriber & WithType(SubscriberType value)
Definition Subscriber.h:66
AWS_COSTEXPLORER_API Subscriber()=default
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
SubscriberType GetType() const
Definition Subscriber.h:60
SubscriberStatus GetStatus() const
Definition Subscriber.h:76
void SetStatus(SubscriberStatus value)
Definition Subscriber.h:78
void SetType(SubscriberType value)
Definition Subscriber.h:62
const Aws::String & GetAddress() const
Definition Subscriber.h:42
AWS_COSTEXPLORER_API Subscriber & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAddress(AddressT &&value)
Definition Subscriber.h:45
Subscriber & WithAddress(AddressT &&value)
Definition Subscriber.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue