AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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& GetFrom() const{ return m_from; }
46 inline bool FromHasBeenSet() const { return m_fromHasBeenSet; }
47 inline void SetFrom(const Aws::String& value) { m_fromHasBeenSet = true; m_from = value; }
48 inline void SetFrom(Aws::String&& value) { m_fromHasBeenSet = true; m_from = std::move(value); }
49 inline void SetFrom(const char* value) { m_fromHasBeenSet = true; m_from.assign(value); }
50 inline Envelope& WithFrom(const Aws::String& value) { SetFrom(value); return *this;}
51 inline Envelope& WithFrom(Aws::String&& value) { SetFrom(std::move(value)); return *this;}
52 inline Envelope& WithFrom(const char* value) { SetFrom(value); return *this;}
54
56
59 inline const Aws::String& GetHelo() const{ return m_helo; }
60 inline bool HeloHasBeenSet() const { return m_heloHasBeenSet; }
61 inline void SetHelo(const Aws::String& value) { m_heloHasBeenSet = true; m_helo = value; }
62 inline void SetHelo(Aws::String&& value) { m_heloHasBeenSet = true; m_helo = std::move(value); }
63 inline void SetHelo(const char* value) { m_heloHasBeenSet = true; m_helo.assign(value); }
64 inline Envelope& WithHelo(const Aws::String& value) { SetHelo(value); return *this;}
65 inline Envelope& WithHelo(Aws::String&& value) { SetHelo(std::move(value)); return *this;}
66 inline Envelope& WithHelo(const char* value) { SetHelo(value); return *this;}
68
70
73 inline const Aws::Vector<Aws::String>& GetTo() const{ return m_to; }
74 inline bool ToHasBeenSet() const { return m_toHasBeenSet; }
75 inline void SetTo(const Aws::Vector<Aws::String>& value) { m_toHasBeenSet = true; m_to = value; }
76 inline void SetTo(Aws::Vector<Aws::String>&& value) { m_toHasBeenSet = true; m_to = std::move(value); }
77 inline Envelope& WithTo(const Aws::Vector<Aws::String>& value) { SetTo(value); return *this;}
78 inline Envelope& WithTo(Aws::Vector<Aws::String>&& value) { SetTo(std::move(value)); return *this;}
79 inline Envelope& AddTo(const Aws::String& value) { m_toHasBeenSet = true; m_to.push_back(value); return *this; }
80 inline Envelope& AddTo(Aws::String&& value) { m_toHasBeenSet = true; m_to.push_back(std::move(value)); return *this; }
81 inline Envelope& AddTo(const char* value) { m_toHasBeenSet = true; m_to.push_back(value); return *this; }
83 private:
84
85 Aws::String m_from;
86 bool m_fromHasBeenSet = false;
87
88 Aws::String m_helo;
89 bool m_heloHasBeenSet = false;
90
92 bool m_toHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace MailManager
97} // namespace Aws
const Aws::String & GetHelo() const
Definition Envelope.h:59
const Aws::Vector< Aws::String > & GetTo() const
Definition Envelope.h:73
Envelope & WithHelo(const char *value)
Definition Envelope.h:66
AWS_MAILMANAGER_API Envelope(Aws::Utils::Json::JsonView jsonValue)
void SetHelo(const char *value)
Definition Envelope.h:63
void SetFrom(const Aws::String &value)
Definition Envelope.h:47
void SetFrom(Aws::String &&value)
Definition Envelope.h:48
void SetFrom(const char *value)
Definition Envelope.h:49
Envelope & WithTo(const Aws::Vector< Aws::String > &value)
Definition Envelope.h:77
Envelope & WithHelo(const Aws::String &value)
Definition Envelope.h:64
Envelope & WithFrom(const Aws::String &value)
Definition Envelope.h:50
void SetHelo(const Aws::String &value)
Definition Envelope.h:61
Envelope & AddTo(const Aws::String &value)
Definition Envelope.h:79
Envelope & AddTo(const char *value)
Definition Envelope.h:81
Envelope & AddTo(Aws::String &&value)
Definition Envelope.h:80
Envelope & WithFrom(const char *value)
Definition Envelope.h:52
void SetTo(const Aws::Vector< Aws::String > &value)
Definition Envelope.h:75
AWS_MAILMANAGER_API Envelope()
Envelope & WithHelo(Aws::String &&value)
Definition Envelope.h:65
void SetHelo(Aws::String &&value)
Definition Envelope.h:62
const Aws::String & GetFrom() const
Definition Envelope.h:45
Envelope & WithTo(Aws::Vector< Aws::String > &&value)
Definition Envelope.h:78
void SetTo(Aws::Vector< Aws::String > &&value)
Definition Envelope.h:76
AWS_MAILMANAGER_API Envelope & operator=(Aws::Utils::Json::JsonView jsonValue)
Envelope & WithFrom(Aws::String &&value)
Definition Envelope.h:51
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