AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Subscriber.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ce/model/SubscriberType.h>
10#include <aws/ce/model/SubscriberStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CostExplorer
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_COSTEXPLORER_API Subscriber() = default;
38 AWS_COSTEXPLORER_API Subscriber(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTEXPLORER_API Subscriber& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetAddress() const { return m_address; }
49 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
50 template<typename AddressT = Aws::String>
51 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
52 template<typename AddressT = Aws::String>
53 Subscriber& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
55
57
60 inline SubscriberType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(SubscriberType value) { m_typeHasBeenSet = true; m_type = value; }
63 inline Subscriber& WithType(SubscriberType value) { SetType(value); return *this;}
65
67
70 inline SubscriberStatus GetStatus() const { return m_status; }
71 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 inline void SetStatus(SubscriberStatus value) { m_statusHasBeenSet = true; m_status = value; }
73 inline Subscriber& WithStatus(SubscriberStatus value) { SetStatus(value); return *this;}
75 private:
76
77 Aws::String m_address;
78 bool m_addressHasBeenSet = false;
79
81 bool m_typeHasBeenSet = false;
82
84 bool m_statusHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CostExplorer
89} // namespace Aws
Subscriber & WithStatus(SubscriberStatus value)
Definition Subscriber.h:73
AWS_COSTEXPLORER_API Subscriber(Aws::Utils::Json::JsonView jsonValue)
Subscriber & WithType(SubscriberType value)
Definition Subscriber.h:63
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:70
void SetStatus(SubscriberStatus value)
Definition Subscriber.h:72
void SetType(SubscriberType value)
Definition Subscriber.h:62
const Aws::String & GetAddress() const
Definition Subscriber.h:48
AWS_COSTEXPLORER_API Subscriber & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAddress(AddressT &&value)
Definition Subscriber.h:51
Subscriber & WithAddress(AddressT &&value)
Definition Subscriber.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue