AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EmailRecipients.h
1
6#pragma once
7#include <aws/iotevents/IoTEvents_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iotevents/model/RecipientDetail.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTEvents
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_IOTEVENTS_API EmailRecipients() = default;
40 AWS_IOTEVENTS_API EmailRecipients(Aws::Utils::Json::JsonView jsonValue);
42 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<RecipientDetail>& GetTo() const { return m_to; }
50 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
51 template<typename ToT = Aws::Vector<RecipientDetail>>
52 void SetTo(ToT&& value) { m_toHasBeenSet = true; m_to = std::forward<ToT>(value); }
53 template<typename ToT = Aws::Vector<RecipientDetail>>
54 EmailRecipients& WithTo(ToT&& value) { SetTo(std::forward<ToT>(value)); return *this;}
55 template<typename ToT = RecipientDetail>
56 EmailRecipients& AddTo(ToT&& value) { m_toHasBeenSet = true; m_to.emplace_back(std::forward<ToT>(value)); return *this; }
58 private:
59
61 bool m_toHasBeenSet = false;
62 };
63
64} // namespace Model
65} // namespace IoTEvents
66} // namespace Aws
EmailRecipients & AddTo(ToT &&value)
AWS_IOTEVENTS_API EmailRecipients(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API EmailRecipients()=default
const Aws::Vector< RecipientDetail > & GetTo() const
AWS_IOTEVENTS_API EmailRecipients & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const
EmailRecipients & WithTo(ToT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue