AWS SDK for C++  1.8.128
AWS SDK for C++
AddHeaderAction.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace SES
22 {
23 namespace Model
24 {
25 
36  {
37  public:
41 
42  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43  void OutputToStream(Aws::OStream& oStream, const char* location) const;
44 
45 
51  inline const Aws::String& GetHeaderName() const{ return m_headerName; }
52 
58  inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; }
59 
65  inline void SetHeaderName(const Aws::String& value) { m_headerNameHasBeenSet = true; m_headerName = value; }
66 
72  inline void SetHeaderName(Aws::String&& value) { m_headerNameHasBeenSet = true; m_headerName = std::move(value); }
73 
79  inline void SetHeaderName(const char* value) { m_headerNameHasBeenSet = true; m_headerName.assign(value); }
80 
86  inline AddHeaderAction& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;}
87 
93  inline AddHeaderAction& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;}
94 
100  inline AddHeaderAction& WithHeaderName(const char* value) { SetHeaderName(value); return *this;}
101 
102 
107  inline const Aws::String& GetHeaderValue() const{ return m_headerValue; }
108 
113  inline bool HeaderValueHasBeenSet() const { return m_headerValueHasBeenSet; }
114 
119  inline void SetHeaderValue(const Aws::String& value) { m_headerValueHasBeenSet = true; m_headerValue = value; }
120 
125  inline void SetHeaderValue(Aws::String&& value) { m_headerValueHasBeenSet = true; m_headerValue = std::move(value); }
126 
131  inline void SetHeaderValue(const char* value) { m_headerValueHasBeenSet = true; m_headerValue.assign(value); }
132 
137  inline AddHeaderAction& WithHeaderValue(const Aws::String& value) { SetHeaderValue(value); return *this;}
138 
143  inline AddHeaderAction& WithHeaderValue(Aws::String&& value) { SetHeaderValue(std::move(value)); return *this;}
144 
149  inline AddHeaderAction& WithHeaderValue(const char* value) { SetHeaderValue(value); return *this;}
150 
151  private:
152 
153  Aws::String m_headerName;
154  bool m_headerNameHasBeenSet;
155 
156  Aws::String m_headerValue;
157  bool m_headerValueHasBeenSet;
158  };
159 
160 } // namespace Model
161 } // namespace SES
162 } // namespace Aws
Aws::SES::Model::AddHeaderAction::GetHeaderName
const Aws::String & GetHeaderName() const
Definition: AddHeaderAction.h:51
Aws::SES::Model::AddHeaderAction::WithHeaderName
AddHeaderAction & WithHeaderName(Aws::String &&value)
Definition: AddHeaderAction.h:93
Aws::SES::Model::AddHeaderAction::GetHeaderValue
const Aws::String & GetHeaderValue() const
Definition: AddHeaderAction.h:107
Aws::SES::Model::AddHeaderAction::SetHeaderName
void SetHeaderName(const Aws::String &value)
Definition: AddHeaderAction.h:65
AWSStreamFwd.h
Aws::SES::Model::AddHeaderAction::WithHeaderValue
AddHeaderAction & WithHeaderValue(const char *value)
Definition: AddHeaderAction.h:149
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::AddHeaderAction::SetHeaderValue
void SetHeaderValue(const Aws::String &value)
Definition: AddHeaderAction.h:119
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::AddHeaderAction::WithHeaderValue
AddHeaderAction & WithHeaderValue(const Aws::String &value)
Definition: AddHeaderAction.h:137
Aws::SES::Model::AddHeaderAction
Definition: AddHeaderAction.h:36
Aws::SES::Model::AddHeaderAction::AddHeaderAction
AddHeaderAction(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::SES::Model::AddHeaderAction::WithHeaderName
AddHeaderAction & WithHeaderName(const Aws::String &value)
Definition: AddHeaderAction.h:86
SES_EXPORTS.h
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::AddHeaderAction::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SES::Model::AddHeaderAction::operator=
AddHeaderAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::AddHeaderAction::SetHeaderValue
void SetHeaderValue(Aws::String &&value)
Definition: AddHeaderAction.h:125
Aws::SES::Model::AddHeaderAction::AddHeaderAction
AddHeaderAction()
Aws
Definition: AccessManagementClient.h:15
Aws::SES::Model::AddHeaderAction::HeaderNameHasBeenSet
bool HeaderNameHasBeenSet() const
Definition: AddHeaderAction.h:58
Aws::SES::Model::AddHeaderAction::WithHeaderName
AddHeaderAction & WithHeaderName(const char *value)
Definition: AddHeaderAction.h:100
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SES::Model::AddHeaderAction::SetHeaderValue
void SetHeaderValue(const char *value)
Definition: AddHeaderAction.h:131
index
int index
Definition: cJSON.h:171
Aws::SES::Model::AddHeaderAction::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SES::Model::AddHeaderAction::HeaderValueHasBeenSet
bool HeaderValueHasBeenSet() const
Definition: AddHeaderAction.h:113
Aws::SES::Model::AddHeaderAction::WithHeaderValue
AddHeaderAction & WithHeaderValue(Aws::String &&value)
Definition: AddHeaderAction.h:143
Aws::SES::Model::AddHeaderAction::SetHeaderName
void SetHeaderName(Aws::String &&value)
Definition: AddHeaderAction.h:72
Aws::SES::Model::AddHeaderAction::SetHeaderName
void SetHeaderName(const char *value)
Definition: AddHeaderAction.h:79