AWS SDK for C++

AWS SDK for C++ Version 1.11.847

Loading...
Searching...
No Matches
ReplaceRecipientAction.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/crt/cbor/Cbor.h>
10#include <aws/mailmanager/MailManager_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace MailManager {
21namespace Model {
22
33 public:
34 AWS_MAILMANAGER_API ReplaceRecipientAction() = default;
35 AWS_MAILMANAGER_API ReplaceRecipientAction(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_MAILMANAGER_API ReplaceRecipientAction& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
38
40
44 inline const Aws::Vector<Aws::String>& GetReplaceWith() const { return m_replaceWith; }
45 inline bool ReplaceWithHasBeenSet() const { return m_replaceWithHasBeenSet; }
46 template <typename ReplaceWithT = Aws::Vector<Aws::String>>
47 void SetReplaceWith(ReplaceWithT&& value) {
48 m_replaceWithHasBeenSet = true;
49 m_replaceWith = std::forward<ReplaceWithT>(value);
50 }
51 template <typename ReplaceWithT = Aws::Vector<Aws::String>>
52 ReplaceRecipientAction& WithReplaceWith(ReplaceWithT&& value) {
53 SetReplaceWith(std::forward<ReplaceWithT>(value));
54 return *this;
55 }
56 template <typename ReplaceWithT = Aws::String>
57 ReplaceRecipientAction& AddReplaceWith(ReplaceWithT&& value) {
58 m_replaceWithHasBeenSet = true;
59 m_replaceWith.emplace_back(std::forward<ReplaceWithT>(value));
60 return *this;
61 }
63 private:
64 Aws::Vector<Aws::String> m_replaceWith;
65 bool m_replaceWithHasBeenSet = false;
66};
67
68} // namespace Model
69} // namespace MailManager
70} // namespace Aws
AWS_MAILMANAGER_API ReplaceRecipientAction(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_MAILMANAGER_API ReplaceRecipientAction()=default
const Aws::Vector< Aws::String > & GetReplaceWith() const
ReplaceRecipientAction & AddReplaceWith(ReplaceWithT &&value)
AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_MAILMANAGER_API ReplaceRecipientAction & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ReplaceRecipientAction & WithReplaceWith(ReplaceWithT &&value)
std::vector< T, Aws::Allocator< T > > Vector