AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EmailRecipients.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/iotevents/IoTEvents_EXPORTS.h>
9#include <aws/iotevents/model/RecipientDetail.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTEvents {
21namespace Model {
22
33 public:
34 AWS_IOTEVENTS_API EmailRecipients() = default;
35 AWS_IOTEVENTS_API EmailRecipients(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTEVENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::Vector<RecipientDetail>& GetTo() const { return m_to; }
44 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
45 template <typename ToT = Aws::Vector<RecipientDetail>>
46 void SetTo(ToT&& value) {
47 m_toHasBeenSet = true;
48 m_to = std::forward<ToT>(value);
49 }
50 template <typename ToT = Aws::Vector<RecipientDetail>>
51 EmailRecipients& WithTo(ToT&& value) {
52 SetTo(std::forward<ToT>(value));
53 return *this;
54 }
55 template <typename ToT = RecipientDetail>
56 EmailRecipients& AddTo(ToT&& value) {
57 m_toHasBeenSet = true;
58 m_to.emplace_back(std::forward<ToT>(value));
59 return *this;
60 }
62 private:
64 bool m_toHasBeenSet = false;
65};
66
67} // namespace Model
68} // namespace IoTEvents
69} // 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