AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddHeaderAction.h
1
6#pragma once
7#include <aws/email/SES_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace SES
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_SES_API AddHeaderAction();
39 AWS_SES_API AddHeaderAction(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_SES_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_SES_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
52 inline const Aws::String& GetHeaderName() const{ return m_headerName; }
53 inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; }
54 inline void SetHeaderName(const Aws::String& value) { m_headerNameHasBeenSet = true; m_headerName = value; }
55 inline void SetHeaderName(Aws::String&& value) { m_headerNameHasBeenSet = true; m_headerName = std::move(value); }
56 inline void SetHeaderName(const char* value) { m_headerNameHasBeenSet = true; m_headerName.assign(value); }
57 inline AddHeaderAction& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;}
58 inline AddHeaderAction& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;}
59 inline AddHeaderAction& WithHeaderName(const char* value) { SetHeaderName(value); return *this;}
61
63
68 inline const Aws::String& GetHeaderValue() const{ return m_headerValue; }
69 inline bool HeaderValueHasBeenSet() const { return m_headerValueHasBeenSet; }
70 inline void SetHeaderValue(const Aws::String& value) { m_headerValueHasBeenSet = true; m_headerValue = value; }
71 inline void SetHeaderValue(Aws::String&& value) { m_headerValueHasBeenSet = true; m_headerValue = std::move(value); }
72 inline void SetHeaderValue(const char* value) { m_headerValueHasBeenSet = true; m_headerValue.assign(value); }
73 inline AddHeaderAction& WithHeaderValue(const Aws::String& value) { SetHeaderValue(value); return *this;}
74 inline AddHeaderAction& WithHeaderValue(Aws::String&& value) { SetHeaderValue(std::move(value)); return *this;}
75 inline AddHeaderAction& WithHeaderValue(const char* value) { SetHeaderValue(value); return *this;}
77 private:
78
79 Aws::String m_headerName;
80 bool m_headerNameHasBeenSet = false;
81
82 Aws::String m_headerValue;
83 bool m_headerValueHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace SES
88} // namespace Aws
AddHeaderAction & WithHeaderValue(const Aws::String &value)
const Aws::String & GetHeaderValue() const
void SetHeaderName(Aws::String &&value)
AddHeaderAction & WithHeaderValue(const char *value)
AWS_SES_API AddHeaderAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AddHeaderAction & WithHeaderValue(Aws::String &&value)
AWS_SES_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetHeaderName(const char *value)
void SetHeaderValue(const char *value)
AddHeaderAction & WithHeaderName(Aws::String &&value)
const Aws::String & GetHeaderName() const
void SetHeaderValue(const Aws::String &value)
AWS_SES_API AddHeaderAction(const Aws::Utils::Xml::XmlNode &xmlNode)
AddHeaderAction & WithHeaderName(const char *value)
AWS_SES_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetHeaderValue(Aws::String &&value)
void SetHeaderName(const Aws::String &value)
AddHeaderAction & WithHeaderName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream