AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
EmailRecipient.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
28 public:
29 AWS_CONNECT_API EmailRecipient() = default;
30 AWS_CONNECT_API EmailRecipient(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetAddress() const { return m_address; }
39 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
40 template <typename AddressT = Aws::String>
41 void SetAddress(AddressT&& value) {
42 m_addressHasBeenSet = true;
43 m_address = std::forward<AddressT>(value);
44 }
45 template <typename AddressT = Aws::String>
46 EmailRecipient& WithAddress(AddressT&& value) {
47 SetAddress(std::forward<AddressT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDisplayName() const { return m_displayName; }
57 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
58 template <typename DisplayNameT = Aws::String>
59 void SetDisplayName(DisplayNameT&& value) {
60 m_displayNameHasBeenSet = true;
61 m_displayName = std::forward<DisplayNameT>(value);
62 }
63 template <typename DisplayNameT = Aws::String>
64 EmailRecipient& WithDisplayName(DisplayNameT&& value) {
65 SetDisplayName(std::forward<DisplayNameT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_address;
71
72 Aws::String m_displayName;
73 bool m_addressHasBeenSet = false;
74 bool m_displayNameHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Connect
79} // namespace Aws
AWS_CONNECT_API EmailRecipient & operator=(Aws::Utils::Json::JsonView jsonValue)
EmailRecipient & WithDisplayName(DisplayNameT &&value)
const Aws::String & GetAddress() const
void SetAddress(AddressT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API EmailRecipient(Aws::Utils::Json::JsonView jsonValue)
EmailRecipient & WithAddress(AddressT &&value)
void SetDisplayName(DisplayNameT &&value)
AWS_CONNECT_API EmailRecipient()=default
const Aws::String & GetDisplayName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue