AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResponseHeadersPolicyCustomHeader.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:
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
41
43
46 inline const Aws::String& GetHeader() const{ return m_header; }
47 inline bool HeaderHasBeenSet() const { return m_headerHasBeenSet; }
48 inline void SetHeader(const Aws::String& value) { m_headerHasBeenSet = true; m_header = value; }
49 inline void SetHeader(Aws::String&& value) { m_headerHasBeenSet = true; m_header = std::move(value); }
50 inline void SetHeader(const char* value) { m_headerHasBeenSet = true; m_header.assign(value); }
51 inline ResponseHeadersPolicyCustomHeader& WithHeader(const Aws::String& value) { SetHeader(value); return *this;}
52 inline ResponseHeadersPolicyCustomHeader& WithHeader(Aws::String&& value) { SetHeader(std::move(value)); return *this;}
53 inline ResponseHeadersPolicyCustomHeader& WithHeader(const char* value) { SetHeader(value); return *this;}
55
57
60 inline const Aws::String& GetValue() const{ return m_value; }
61 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
62 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
63 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
64 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
65 inline ResponseHeadersPolicyCustomHeader& WithValue(const Aws::String& value) { SetValue(value); return *this;}
66 inline ResponseHeadersPolicyCustomHeader& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
67 inline ResponseHeadersPolicyCustomHeader& WithValue(const char* value) { SetValue(value); return *this;}
69
71
75 inline bool GetOverride() const{ return m_override; }
76 inline bool OverrideHasBeenSet() const { return m_overrideHasBeenSet; }
77 inline void SetOverride(bool value) { m_overrideHasBeenSet = true; m_override = value; }
78 inline ResponseHeadersPolicyCustomHeader& WithOverride(bool value) { SetOverride(value); return *this;}
80 private:
81
82 Aws::String m_header;
83 bool m_headerHasBeenSet = false;
84
85 Aws::String m_value;
86 bool m_valueHasBeenSet = false;
87
88 bool m_override;
89 bool m_overrideHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace CloudFront
94} // namespace Aws
ResponseHeadersPolicyCustomHeader & WithValue(const Aws::String &value)
ResponseHeadersPolicyCustomHeader & WithValue(Aws::String &&value)
AWS_CLOUDFRONT_API ResponseHeadersPolicyCustomHeader & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ResponseHeadersPolicyCustomHeader & WithHeader(const Aws::String &value)
ResponseHeadersPolicyCustomHeader & WithHeader(const char *value)
ResponseHeadersPolicyCustomHeader & WithHeader(Aws::String &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API ResponseHeadersPolicyCustomHeader(const Aws::Utils::Xml::XmlNode &xmlNode)
ResponseHeadersPolicyCustomHeader & WithValue(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String