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/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();
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 inline void SetAddress(const Aws::String& value) { m_addressHasBeenSet = true; m_address = value; }
51 inline void SetAddress(Aws::String&& value) { m_addressHasBeenSet = true; m_address = std::move(value); }
52 inline void SetAddress(const char* value) { m_addressHasBeenSet = true; m_address.assign(value); }
53 inline Subscriber& WithAddress(const Aws::String& value) { SetAddress(value); return *this;}
54 inline Subscriber& WithAddress(Aws::String&& value) { SetAddress(std::move(value)); return *this;}
55 inline Subscriber& WithAddress(const char* value) { SetAddress(value); return *this;}
57
59
62 inline const SubscriberType& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const SubscriberType& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(SubscriberType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline Subscriber& WithType(const SubscriberType& value) { SetType(value); return *this;}
67 inline Subscriber& WithType(SubscriberType&& value) { SetType(std::move(value)); return *this;}
69
71
74 inline const SubscriberStatus& GetStatus() const{ return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(const SubscriberStatus& value) { m_statusHasBeenSet = true; m_status = value; }
77 inline void SetStatus(SubscriberStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
78 inline Subscriber& WithStatus(const SubscriberStatus& value) { SetStatus(value); return *this;}
79 inline Subscriber& WithStatus(SubscriberStatus&& value) { SetStatus(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_address;
84 bool m_addressHasBeenSet = false;
85
86 SubscriberType m_type;
87 bool m_typeHasBeenSet = false;
88
89 SubscriberStatus m_status;
90 bool m_statusHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace CostExplorer
95} // namespace Aws
void SetType(const SubscriberType &value)
Definition Subscriber.h:64
void SetType(SubscriberType &&value)
Definition Subscriber.h:65
void SetAddress(const char *value)
Definition Subscriber.h:52
Subscriber & WithType(const SubscriberType &value)
Definition Subscriber.h:66
void SetStatus(const SubscriberStatus &value)
Definition Subscriber.h:76
const SubscriberType & GetType() const
Definition Subscriber.h:62
AWS_COSTEXPLORER_API Subscriber(Aws::Utils::Json::JsonView jsonValue)
Subscriber & WithStatus(const SubscriberStatus &value)
Definition Subscriber.h:78
Subscriber & WithAddress(const Aws::String &value)
Definition Subscriber.h:53
void SetAddress(Aws::String &&value)
Definition Subscriber.h:51
Subscriber & WithStatus(SubscriberStatus &&value)
Definition Subscriber.h:79
void SetAddress(const Aws::String &value)
Definition Subscriber.h:50
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
Subscriber & WithAddress(const char *value)
Definition Subscriber.h:55
Subscriber & WithAddress(Aws::String &&value)
Definition Subscriber.h:54
AWS_COSTEXPLORER_API Subscriber()
Subscriber & WithType(SubscriberType &&value)
Definition Subscriber.h:67
const SubscriberStatus & GetStatus() const
Definition Subscriber.h:74
const Aws::String & GetAddress() const
Definition Subscriber.h:48
void SetStatus(SubscriberStatus &&value)
Definition Subscriber.h:77
AWS_COSTEXPLORER_API Subscriber & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue