AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AdditionalEmailRecipients.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/EmailRecipient.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
30 public:
31 AWS_CONNECT_API AdditionalEmailRecipients() = default;
34 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<EmailRecipient>& GetToList() const { return m_toList; }
41 inline bool ToListHasBeenSet() const { return m_toListHasBeenSet; }
42 template <typename ToListT = Aws::Vector<EmailRecipient>>
43 void SetToList(ToListT&& value) {
44 m_toListHasBeenSet = true;
45 m_toList = std::forward<ToListT>(value);
46 }
47 template <typename ToListT = Aws::Vector<EmailRecipient>>
49 SetToList(std::forward<ToListT>(value));
50 return *this;
51 }
52 template <typename ToListT = EmailRecipient>
54 m_toListHasBeenSet = true;
55 m_toList.emplace_back(std::forward<ToListT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<EmailRecipient>& GetCcList() const { return m_ccList; }
65 inline bool CcListHasBeenSet() const { return m_ccListHasBeenSet; }
66 template <typename CcListT = Aws::Vector<EmailRecipient>>
67 void SetCcList(CcListT&& value) {
68 m_ccListHasBeenSet = true;
69 m_ccList = std::forward<CcListT>(value);
70 }
71 template <typename CcListT = Aws::Vector<EmailRecipient>>
73 SetCcList(std::forward<CcListT>(value));
74 return *this;
75 }
76 template <typename CcListT = EmailRecipient>
78 m_ccListHasBeenSet = true;
79 m_ccList.emplace_back(std::forward<CcListT>(value));
80 return *this;
81 }
83 private:
85
87 bool m_toListHasBeenSet = false;
88 bool m_ccListHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace Connect
93} // namespace Aws
const Aws::Vector< EmailRecipient > & GetCcList() const
AWS_CONNECT_API AdditionalEmailRecipients & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API AdditionalEmailRecipients()=default
AdditionalEmailRecipients & WithToList(ToListT &&value)
AWS_CONNECT_API AdditionalEmailRecipients(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AdditionalEmailRecipients & AddToList(ToListT &&value)
AdditionalEmailRecipients & AddCcList(CcListT &&value)
AdditionalEmailRecipients & WithCcList(CcListT &&value)
const Aws::Vector< EmailRecipient > & GetToList() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue