AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ReplaceRecipientAction.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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
37 {
38 public:
39 AWS_MAILMANAGER_API ReplaceRecipientAction() = default;
40 AWS_MAILMANAGER_API ReplaceRecipientAction(Aws::Utils::Json::JsonView jsonValue);
42 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<Aws::String>& GetReplaceWith() const { return m_replaceWith; }
51 inline bool ReplaceWithHasBeenSet() const { return m_replaceWithHasBeenSet; }
52 template<typename ReplaceWithT = Aws::Vector<Aws::String>>
53 void SetReplaceWith(ReplaceWithT&& value) { m_replaceWithHasBeenSet = true; m_replaceWith = std::forward<ReplaceWithT>(value); }
54 template<typename ReplaceWithT = Aws::Vector<Aws::String>>
55 ReplaceRecipientAction& WithReplaceWith(ReplaceWithT&& value) { SetReplaceWith(std::forward<ReplaceWithT>(value)); return *this;}
56 template<typename ReplaceWithT = Aws::String>
57 ReplaceRecipientAction& AddReplaceWith(ReplaceWithT&& value) { m_replaceWithHasBeenSet = true; m_replaceWith.emplace_back(std::forward<ReplaceWithT>(value)); return *this; }
59 private:
60
61 Aws::Vector<Aws::String> m_replaceWith;
62 bool m_replaceWithHasBeenSet = false;
63 };
64
65} // namespace Model
66} // namespace MailManager
67} // namespace Aws
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MAILMANAGER_API ReplaceRecipientAction()=default
const Aws::Vector< Aws::String > & GetReplaceWith() const
ReplaceRecipientAction & AddReplaceWith(ReplaceWithT &&value)
AWS_MAILMANAGER_API ReplaceRecipientAction & operator=(Aws::Utils::Json::JsonView jsonValue)
ReplaceRecipientAction & WithReplaceWith(ReplaceWithT &&value)
AWS_MAILMANAGER_API ReplaceRecipientAction(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue