AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CONNECT_API EmailRecipient() = default;
35 AWS_CONNECT_API EmailRecipient(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline const Aws::String& GetAddress() const { return m_address; }
46 inline bool AddressHasBeenSet() const { return m_addressHasBeenSet; }
47 template<typename AddressT = Aws::String>
48 void SetAddress(AddressT&& value) { m_addressHasBeenSet = true; m_address = std::forward<AddressT>(value); }
49 template<typename AddressT = Aws::String>
50 EmailRecipient& WithAddress(AddressT&& value) { SetAddress(std::forward<AddressT>(value)); return *this;}
52
54
58 inline const Aws::String& GetDisplayName() const { return m_displayName; }
59 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
60 template<typename DisplayNameT = Aws::String>
61 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
62 template<typename DisplayNameT = Aws::String>
63 EmailRecipient& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
65 private:
66
67 Aws::String m_address;
68 bool m_addressHasBeenSet = false;
69
70 Aws::String m_displayName;
71 bool m_displayNameHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Connect
76} // 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