AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
EmailContact.h
1
6#pragma once
7#include <aws/notificationscontacts/NotificationsContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/notificationscontacts/model/EmailContactStatus.h>
10#include <aws/core/utils/DateTime.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 NotificationsContacts
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_NOTIFICATIONSCONTACTS_API EmailContact() = default;
37 AWS_NOTIFICATIONSCONTACTS_API EmailContact(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NOTIFICATIONSCONTACTS_API EmailContact& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NOTIFICATIONSCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const { return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 template<typename ArnT = Aws::String>
49 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
50 template<typename ArnT = Aws::String>
51 EmailContact& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 EmailContact& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
71 inline const Aws::String& GetAddress() const { return m_address; }
72 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
73 template<typename AddressT = Aws::String>
74 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
75 template<typename AddressT = Aws::String>
76 EmailContact& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
78
80
84 inline EmailContactStatus GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(EmailContactStatus value) { m_statusHasBeenSet = true; m_status = value; }
87 inline EmailContact& WithStatus(EmailContactStatus value) { SetStatus(value); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
95 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
96 template<typename CreationTimeT = Aws::Utils::DateTime>
97 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
98 template<typename CreationTimeT = Aws::Utils::DateTime>
99 EmailContact& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetUpdateTime() const { return m_updateTime; }
107 inline bool UpdateTimeHasBeenSet() const { return m_updateTimeHasBeenSet; }
108 template<typename UpdateTimeT = Aws::Utils::DateTime>
109 void SetUpdateTime(UpdateTimeT&& value) { m_updateTimeHasBeenSet = true; m_updateTime = std::forward<UpdateTimeT>(value); }
110 template<typename UpdateTimeT = Aws::Utils::DateTime>
111 EmailContact& WithUpdateTime(UpdateTimeT&& value) { SetUpdateTime(std::forward<UpdateTimeT>(value)); return *this;}
113 private:
114
115 Aws::String m_arn;
116 bool m_arnHasBeenSet = false;
117
118 Aws::String m_name;
119 bool m_nameHasBeenSet = false;
120
121 Aws::String m_address;
122 bool m_addressHasBeenSet = false;
123
125 bool m_statusHasBeenSet = false;
126
127 Aws::Utils::DateTime m_creationTime{};
128 bool m_creationTimeHasBeenSet = false;
129
130 Aws::Utils::DateTime m_updateTime{};
131 bool m_updateTimeHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace NotificationsContacts
136} // namespace Aws
EmailContact & WithAddress(AddressT &&value)
const Aws::Utils::DateTime & GetUpdateTime() const
AWS_NOTIFICATIONSCONTACTS_API EmailContact(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(CreationTimeT &&value)
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