AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
EmailAddressInfo.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Connect {
20namespace Model {
21
29 public:
30 AWS_CONNECT_API EmailAddressInfo() = default;
31 AWS_CONNECT_API EmailAddressInfo(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetEmailAddress() const { return m_emailAddress; }
40 inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
41 template <typename EmailAddressT = Aws::String>
42 void SetEmailAddress(EmailAddressT&& value) {
43 m_emailAddressHasBeenSet = true;
44 m_emailAddress = std::forward<EmailAddressT>(value);
45 }
46 template <typename EmailAddressT = Aws::String>
47 EmailAddressInfo& WithEmailAddress(EmailAddressT&& value) {
48 SetEmailAddress(std::forward<EmailAddressT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDisplayName() const { return m_displayName; }
58 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
59 template <typename DisplayNameT = Aws::String>
60 void SetDisplayName(DisplayNameT&& value) {
61 m_displayNameHasBeenSet = true;
62 m_displayName = std::forward<DisplayNameT>(value);
63 }
64 template <typename DisplayNameT = Aws::String>
65 EmailAddressInfo& WithDisplayName(DisplayNameT&& value) {
66 SetDisplayName(std::forward<DisplayNameT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_emailAddress;
72 bool m_emailAddressHasBeenSet = false;
73
74 Aws::String m_displayName;
75 bool m_displayNameHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Connect
80} // namespace Aws
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetDisplayName() const
EmailAddressInfo & WithEmailAddress(EmailAddressT &&value)
void SetEmailAddress(EmailAddressT &&value)
AWS_CONNECT_API EmailAddressInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API EmailAddressInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
EmailAddressInfo & WithDisplayName(DisplayNameT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API EmailAddressInfo()=default
const Aws::String & GetEmailAddress() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue