AWS SDK for C++

AWS SDK for C++ Version 1.11.847

Loading...
Searching...
No Matches
AddHeaderAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace MailManager {
20namespace Model {
21
29 public:
30 AWS_MAILMANAGER_API AddHeaderAction() = default;
31 AWS_MAILMANAGER_API AddHeaderAction(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_MAILMANAGER_API AddHeaderAction& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
41 inline const Aws::String& GetHeaderName() const { return m_headerName; }
42 inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; }
43 template <typename HeaderNameT = Aws::String>
44 void SetHeaderName(HeaderNameT&& value) {
45 m_headerNameHasBeenSet = true;
46 m_headerName = std::forward<HeaderNameT>(value);
47 }
48 template <typename HeaderNameT = Aws::String>
49 AddHeaderAction& WithHeaderName(HeaderNameT&& value) {
50 SetHeaderName(std::forward<HeaderNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetHeaderValue() const { return m_headerValue; }
60 inline bool HeaderValueHasBeenSet() const { return m_headerValueHasBeenSet; }
61 template <typename HeaderValueT = Aws::String>
62 void SetHeaderValue(HeaderValueT&& value) {
63 m_headerValueHasBeenSet = true;
64 m_headerValue = std::forward<HeaderValueT>(value);
65 }
66 template <typename HeaderValueT = Aws::String>
67 AddHeaderAction& WithHeaderValue(HeaderValueT&& value) {
68 SetHeaderValue(std::forward<HeaderValueT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_headerName;
74
75 Aws::String m_headerValue;
76 bool m_headerNameHasBeenSet = false;
77 bool m_headerValueHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace MailManager
82} // namespace Aws
AWS_MAILMANAGER_API AddHeaderAction()=default
AWS_MAILMANAGER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AddHeaderAction & WithHeaderValue(HeaderValueT &&value)
AWS_MAILMANAGER_API AddHeaderAction(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetHeaderName(HeaderNameT &&value)
void SetHeaderValue(HeaderValueT &&value)
AWS_MAILMANAGER_API AddHeaderAction & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AddHeaderAction & WithHeaderName(HeaderNameT &&value)
const Aws::String & GetHeaderValue() const
const Aws::String & GetHeaderName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String