AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Envelope.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 MailManager
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MAILMANAGER_API Envelope() = default;
36 AWS_MAILMANAGER_API Envelope(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MAILMANAGER_API Envelope& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetHelo() const { return m_helo; }
46 inline bool HeloHasBeenSet() const { return m_heloHasBeenSet; }
47 template<typename HeloT = Aws::String>
48 void SetHelo(HeloT&& value) { m_heloHasBeenSet = true; m_helo = std::forward<HeloT>(value); }
49 template<typename HeloT = Aws::String>
50 Envelope& WithHelo(HeloT&& value) { SetHelo(std::forward<HeloT>(value)); return *this;}
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) { m_fromHasBeenSet = true; m_from = std::forward<FromT>(value); }
61 template<typename FromT = Aws::String>
62 Envelope& WithFrom(FromT&& value) { SetFrom(std::forward<FromT>(value)); return *this;}
64
66
69 inline const Aws::Vector<Aws::String>& GetTo() const { return m_to; }
70 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
71 template<typename ToT = Aws::Vector<Aws::String>>
72 void SetTo(ToT&& value) { m_toHasBeenSet = true; m_to = std::forward<ToT>(value); }
73 template<typename ToT = Aws::Vector<Aws::String>>
74 Envelope& WithTo(ToT&& value) { SetTo(std::forward<ToT>(value)); return *this;}
75 template<typename ToT = Aws::String>
76 Envelope& AddTo(ToT&& value) { m_toHasBeenSet = true; m_to.emplace_back(std::forward<ToT>(value)); return *this; }
78 private:
79
80 Aws::String m_helo;
81 bool m_heloHasBeenSet = false;
82
83 Aws::String m_from;
84 bool m_fromHasBeenSet = false;
85
87 bool m_toHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace MailManager
92} // namespace Aws
const Aws::String & GetHelo() const
Definition Envelope.h:45
const Aws::Vector< Aws::String > & GetTo() const
Definition Envelope.h:69
AWS_MAILMANAGER_API Envelope()=default
AWS_MAILMANAGER_API Envelope(Aws::Utils::Json::JsonView jsonValue)
Envelope & WithHelo(HeloT &&value)
Definition Envelope.h:50
void SetHelo(HeloT &&value)
Definition Envelope.h:48
const Aws::String & GetFrom() const
Definition Envelope.h:57
Envelope & AddTo(ToT &&value)
Definition Envelope.h:76
Envelope & WithTo(ToT &&value)
Definition Envelope.h:74
void SetFrom(FromT &&value)
Definition Envelope.h:60
Envelope & WithFrom(FromT &&value)
Definition Envelope.h:62
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