AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EmailContact.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/notificationscontacts/NotificationsContacts_EXPORTS.h>
10#include <aws/notificationscontacts/model/EmailContactStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NotificationsContacts {
22namespace Model {
23
30 public:
31 AWS_NOTIFICATIONSCONTACTS_API EmailContact() = default;
32 AWS_NOTIFICATIONSCONTACTS_API EmailContact(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NOTIFICATIONSCONTACTS_API EmailContact& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NOTIFICATIONSCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
48 EmailContact& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 EmailContact& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetAddress() const { return m_address; }
78 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
79 template <typename AddressT = Aws::String>
80 void SetAddress(AddressT&& value) {
81 m_addressHasBeenSet = true;
82 m_address = std::forward<AddressT>(value);
83 }
84 template <typename AddressT = Aws::String>
85 EmailContact& WithAddress(AddressT&& value) {
86 SetAddress(std::forward<AddressT>(value));
87 return *this;
88 }
90
92
96 inline EmailContactStatus GetStatus() const { return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(EmailContactStatus value) {
99 m_statusHasBeenSet = true;
100 m_status = value;
101 }
103 SetStatus(value);
104 return *this;
105 }
107
109
112 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
113 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
114 template <typename CreationTimeT = Aws::Utils::DateTime>
115 void SetCreationTime(CreationTimeT&& value) {
116 m_creationTimeHasBeenSet = true;
117 m_creationTime = std::forward<CreationTimeT>(value);
118 }
119 template <typename CreationTimeT = Aws::Utils::DateTime>
120 EmailContact& WithCreationTime(CreationTimeT&& value) {
121 SetCreationTime(std::forward<CreationTimeT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
131 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
132 template <typename UpdateTimeT = Aws::Utils::DateTime>
133 void SetUpdateTime(UpdateTimeT&& value) {
134 m_updateTimeHasBeenSet = true;
135 m_updateTime = std::forward<UpdateTimeT>(value);
136 }
137 template <typename UpdateTimeT = Aws::Utils::DateTime>
138 EmailContact& WithUpdateTime(UpdateTimeT&& value) {
139 SetUpdateTime(std::forward<UpdateTimeT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_arn;
145
146 Aws::String m_name;
147
148 Aws::String m_address;
149
151
152 Aws::Utils::DateTime m_creationTime{};
153
154 Aws::Utils::DateTime m_updateTime{};
155 bool m_arnHasBeenSet = false;
156 bool m_nameHasBeenSet = false;
157 bool m_addressHasBeenSet = false;
158 bool m_statusHasBeenSet = false;
159 bool m_creationTimeHasBeenSet = false;
160 bool m_updateTimeHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace NotificationsContacts
165} // namespace Aws
EmailContact & WithAddress(AddressT &&value)
const Aws::Utils::DateTime & GetUpdateTime() const
AWS_NOTIFICATIONSCONTACTS_API EmailContact(Aws::Utils::Json::JsonView jsonValue)
EmailContact & WithStatus(EmailContactStatus value)
AWS_NOTIFICATIONSCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
EmailContact & WithCreationTime(CreationTimeT &&value)
AWS_NOTIFICATIONSCONTACTS_API EmailContact & operator=(Aws::Utils::Json::JsonView jsonValue)
EmailContact & WithUpdateTime(UpdateTimeT &&value)
AWS_NOTIFICATIONSCONTACTS_API EmailContact()=default
void SetStatus(EmailContactStatus value)
const Aws::Utils::DateTime & GetCreationTime() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue