AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Envelope.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MailManager {
21namespace Model {
22
28class Envelope {
29 public:
30 AWS_MAILMANAGER_API Envelope() = default;
31 AWS_MAILMANAGER_API Envelope(Aws::Utils::Json::JsonView jsonValue);
32 AWS_MAILMANAGER_API Envelope& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetHelo() const { return m_helo; }
40 inline bool HeloHasBeenSet() const { return m_heloHasBeenSet; }
41 template <typename HeloT = Aws::String>
42 void SetHelo(HeloT&& value) {
43 m_heloHasBeenSet = true;
44 m_helo = std::forward<HeloT>(value);
45 }
46 template <typename HeloT = Aws::String>
47 Envelope& WithHelo(HeloT&& value) {
48 SetHelo(std::forward<HeloT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetFrom() const { return m_from; }
58 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
59 template <typename FromT = Aws::String>
60 void SetFrom(FromT&& value) {
61 m_fromHasBeenSet = true;
62 m_from = std::forward<FromT>(value);
63 }
64 template <typename FromT = Aws::String>
65 Envelope& WithFrom(FromT&& value) {
66 SetFrom(std::forward<FromT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Vector<Aws::String>& GetTo() const { return m_to; }
76 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
77 template <typename ToT = Aws::Vector<Aws::String>>
78 void SetTo(ToT&& value) {
79 m_toHasBeenSet = true;
80 m_to = std::forward<ToT>(value);
81 }
82 template <typename ToT = Aws::Vector<Aws::String>>
83 Envelope& WithTo(ToT&& value) {
84 SetTo(std::forward<ToT>(value));
85 return *this;
86 }
87 template <typename ToT = Aws::String>
88 Envelope& AddTo(ToT&& value) {
89 m_toHasBeenSet = true;
90 m_to.emplace_back(std::forward<ToT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_helo;
96
97 Aws::String m_from;
98
100 bool m_heloHasBeenSet = false;
101 bool m_fromHasBeenSet = false;
102 bool m_toHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace MailManager
107} // namespace Aws
const Aws::String & GetHelo() const
Definition Envelope.h:39
const Aws::Vector< Aws::String > & GetTo() const
Definition Envelope.h:75
AWS_MAILMANAGER_API Envelope()=default
AWS_MAILMANAGER_API Envelope(Aws::Utils::Json::JsonView jsonValue)
Envelope & WithHelo(HeloT &&value)
Definition Envelope.h:47
void SetHelo(HeloT &&value)
Definition Envelope.h:42
const Aws::String & GetFrom() const
Definition Envelope.h:57
Envelope & AddTo(ToT &&value)
Definition Envelope.h:88
Envelope & WithTo(ToT &&value)
Definition Envelope.h:83
void SetFrom(FromT &&value)
Definition Envelope.h:60
Envelope & WithFrom(FromT &&value)
Definition Envelope.h:65
AWS_MAILMANAGER_API Envelope & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue