AWS SDK for C++  1.9.16
AWS SDK for C++
OriginCustomHeader.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace CloudFront
21 {
22 namespace Model
23 {
24 
33  {
34  public:
38 
39  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40 
41 
49  inline const Aws::String& GetHeaderName() const{ return m_headerName; }
50 
58  inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; }
59 
67  inline void SetHeaderName(const Aws::String& value) { m_headerNameHasBeenSet = true; m_headerName = value; }
68 
76  inline void SetHeaderName(Aws::String&& value) { m_headerNameHasBeenSet = true; m_headerName = std::move(value); }
77 
85  inline void SetHeaderName(const char* value) { m_headerNameHasBeenSet = true; m_headerName.assign(value); }
86 
94  inline OriginCustomHeader& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;}
95 
103  inline OriginCustomHeader& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;}
104 
112  inline OriginCustomHeader& WithHeaderName(const char* value) { SetHeaderName(value); return *this;}
113 
114 
119  inline const Aws::String& GetHeaderValue() const{ return m_headerValue; }
120 
125  inline bool HeaderValueHasBeenSet() const { return m_headerValueHasBeenSet; }
126 
131  inline void SetHeaderValue(const Aws::String& value) { m_headerValueHasBeenSet = true; m_headerValue = value; }
132 
137  inline void SetHeaderValue(Aws::String&& value) { m_headerValueHasBeenSet = true; m_headerValue = std::move(value); }
138 
143  inline void SetHeaderValue(const char* value) { m_headerValueHasBeenSet = true; m_headerValue.assign(value); }
144 
149  inline OriginCustomHeader& WithHeaderValue(const Aws::String& value) { SetHeaderValue(value); return *this;}
150 
155  inline OriginCustomHeader& WithHeaderValue(Aws::String&& value) { SetHeaderValue(std::move(value)); return *this;}
156 
161  inline OriginCustomHeader& WithHeaderValue(const char* value) { SetHeaderValue(value); return *this;}
162 
163  private:
164 
165  Aws::String m_headerName;
166  bool m_headerNameHasBeenSet;
167 
168  Aws::String m_headerValue;
169  bool m_headerValueHasBeenSet;
170  };
171 
172 } // namespace Model
173 } // namespace CloudFront
174 } // namespace Aws
Aws::CloudFront::Model::OriginCustomHeader::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::OriginCustomHeader::WithHeaderName
OriginCustomHeader & WithHeaderName(const char *value)
Definition: OriginCustomHeader.h:112
Aws::CloudFront::Model::OriginCustomHeader::OriginCustomHeader
OriginCustomHeader()
Aws::CloudFront::Model::OriginCustomHeader::HeaderValueHasBeenSet
bool HeaderValueHasBeenSet() const
Definition: OriginCustomHeader.h:125
Aws::CloudFront::Model::OriginCustomHeader::SetHeaderValue
void SetHeaderValue(const Aws::String &value)
Definition: OriginCustomHeader.h:131
Aws::CloudFront::Model::OriginCustomHeader::SetHeaderValue
void SetHeaderValue(const char *value)
Definition: OriginCustomHeader.h:143
Aws::CloudFront::Model::OriginCustomHeader::GetHeaderValue
const Aws::String & GetHeaderValue() const
Definition: OriginCustomHeader.h:119
Aws::CloudFront::Model::OriginCustomHeader
Definition: OriginCustomHeader.h:33
Aws::CloudFront::Model::OriginCustomHeader::WithHeaderName
OriginCustomHeader & WithHeaderName(Aws::String &&value)
Definition: OriginCustomHeader.h:103
Aws::CloudFront::Model::OriginCustomHeader::SetHeaderName
void SetHeaderName(const Aws::String &value)
Definition: OriginCustomHeader.h:67
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::OriginCustomHeader::GetHeaderName
const Aws::String & GetHeaderName() const
Definition: OriginCustomHeader.h:49
AWSString.h
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::OriginCustomHeader::WithHeaderValue
OriginCustomHeader & WithHeaderValue(const char *value)
Definition: OriginCustomHeader.h:161
Aws::CloudFront::Model::OriginCustomHeader::WithHeaderValue
OriginCustomHeader & WithHeaderValue(const Aws::String &value)
Definition: OriginCustomHeader.h:149
CloudFront_EXPORTS.h
Aws::CloudFront::Model::OriginCustomHeader::WithHeaderName
OriginCustomHeader & WithHeaderName(const Aws::String &value)
Definition: OriginCustomHeader.h:94
Aws::CloudFront::Model::OriginCustomHeader::WithHeaderValue
OriginCustomHeader & WithHeaderValue(Aws::String &&value)
Definition: OriginCustomHeader.h:155
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::OriginCustomHeader::operator=
OriginCustomHeader & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::OriginCustomHeader::SetHeaderValue
void SetHeaderValue(Aws::String &&value)
Definition: OriginCustomHeader.h:137
Aws::CloudFront::Model::OriginCustomHeader::HeaderNameHasBeenSet
bool HeaderNameHasBeenSet() const
Definition: OriginCustomHeader.h:58
Aws::CloudFront::Model::OriginCustomHeader::OriginCustomHeader
OriginCustomHeader(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginCustomHeader::SetHeaderName
void SetHeaderName(Aws::String &&value)
Definition: OriginCustomHeader.h:76
Aws::CloudFront::Model::OriginCustomHeader::SetHeaderName
void SetHeaderName(const char *value)
Definition: OriginCustomHeader.h:85