AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginCustomHeader.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront
21{
22namespace Model
23{
24
33 {
34 public:
35 AWS_CLOUDFRONT_API OriginCustomHeader();
36 AWS_CLOUDFRONT_API OriginCustomHeader(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_CLOUDFRONT_API OriginCustomHeader& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
50 inline const Aws::String& GetHeaderName() const{ return m_headerName; }
51 inline bool HeaderNameHasBeenSet() const { return m_headerNameHasBeenSet; }
52 inline void SetHeaderName(const Aws::String& value) { m_headerNameHasBeenSet = true; m_headerName = value; }
53 inline void SetHeaderName(Aws::String&& value) { m_headerNameHasBeenSet = true; m_headerName = std::move(value); }
54 inline void SetHeaderName(const char* value) { m_headerNameHasBeenSet = true; m_headerName.assign(value); }
55 inline OriginCustomHeader& WithHeaderName(const Aws::String& value) { SetHeaderName(value); return *this;}
56 inline OriginCustomHeader& WithHeaderName(Aws::String&& value) { SetHeaderName(std::move(value)); return *this;}
57 inline OriginCustomHeader& WithHeaderName(const char* value) { SetHeaderName(value); return *this;}
59
61
65 inline const Aws::String& GetHeaderValue() const{ return m_headerValue; }
66 inline bool HeaderValueHasBeenSet() const { return m_headerValueHasBeenSet; }
67 inline void SetHeaderValue(const Aws::String& value) { m_headerValueHasBeenSet = true; m_headerValue = value; }
68 inline void SetHeaderValue(Aws::String&& value) { m_headerValueHasBeenSet = true; m_headerValue = std::move(value); }
69 inline void SetHeaderValue(const char* value) { m_headerValueHasBeenSet = true; m_headerValue.assign(value); }
70 inline OriginCustomHeader& WithHeaderValue(const Aws::String& value) { SetHeaderValue(value); return *this;}
71 inline OriginCustomHeader& WithHeaderValue(Aws::String&& value) { SetHeaderValue(std::move(value)); return *this;}
72 inline OriginCustomHeader& WithHeaderValue(const char* value) { SetHeaderValue(value); return *this;}
74 private:
75
76 Aws::String m_headerName;
77 bool m_headerNameHasBeenSet = false;
78
79 Aws::String m_headerValue;
80 bool m_headerValueHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace CloudFront
85} // namespace Aws
OriginCustomHeader & WithHeaderName(const Aws::String &value)
OriginCustomHeader & WithHeaderName(Aws::String &&value)
AWS_CLOUDFRONT_API OriginCustomHeader(const Aws::Utils::Xml::XmlNode &xmlNode)
OriginCustomHeader & WithHeaderName(const char *value)
void SetHeaderName(const Aws::String &value)
void SetHeaderValue(const Aws::String &value)
AWS_CLOUDFRONT_API OriginCustomHeader & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
OriginCustomHeader & WithHeaderValue(Aws::String &&value)
OriginCustomHeader & WithHeaderValue(const char *value)
OriginCustomHeader & WithHeaderValue(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String