AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ResponseHeadersPolicyConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/ResponseHeadersPolicyCorsConfig.h>
9#include <aws/cloudfront/model/ResponseHeadersPolicyCustomHeadersConfig.h>
10#include <aws/cloudfront/model/ResponseHeadersPolicyRemoveHeadersConfig.h>
11#include <aws/cloudfront/model/ResponseHeadersPolicySecurityHeadersConfig.h>
12#include <aws/cloudfront/model/ResponseHeadersPolicyServerTimingHeadersConfig.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudFront {
24namespace Model {
25
34 public:
35 AWS_CLOUDFRONT_API ResponseHeadersPolicyConfig() = default;
36 AWS_CLOUDFRONT_API ResponseHeadersPolicyConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
42
46 inline const Aws::String& GetComment() const { return m_comment; }
47 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
48 template <typename CommentT = Aws::String>
49 void SetComment(CommentT&& value) {
50 m_commentHasBeenSet = true;
51 m_comment = std::forward<CommentT>(value);
52 }
53 template <typename CommentT = Aws::String>
55 SetComment(std::forward<CommentT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::String& GetName() const { return m_name; }
66 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
67 template <typename NameT = Aws::String>
68 void SetName(NameT&& value) {
69 m_nameHasBeenSet = true;
70 m_name = std::forward<NameT>(value);
71 }
72 template <typename NameT = Aws::String>
74 SetName(std::forward<NameT>(value));
75 return *this;
76 }
78
80
84 inline const ResponseHeadersPolicyCorsConfig& GetCorsConfig() const { return m_corsConfig; }
85 inline bool CorsConfigHasBeenSet() const { return m_corsConfigHasBeenSet; }
86 template <typename CorsConfigT = ResponseHeadersPolicyCorsConfig>
87 void SetCorsConfig(CorsConfigT&& value) {
88 m_corsConfigHasBeenSet = true;
89 m_corsConfig = std::forward<CorsConfigT>(value);
90 }
91 template <typename CorsConfigT = ResponseHeadersPolicyCorsConfig>
93 SetCorsConfig(std::forward<CorsConfigT>(value));
94 return *this;
95 }
97
99
102 inline const ResponseHeadersPolicySecurityHeadersConfig& GetSecurityHeadersConfig() const { return m_securityHeadersConfig; }
103 inline bool SecurityHeadersConfigHasBeenSet() const { return m_securityHeadersConfigHasBeenSet; }
104 template <typename SecurityHeadersConfigT = ResponseHeadersPolicySecurityHeadersConfig>
105 void SetSecurityHeadersConfig(SecurityHeadersConfigT&& value) {
106 m_securityHeadersConfigHasBeenSet = true;
107 m_securityHeadersConfig = std::forward<SecurityHeadersConfigT>(value);
108 }
109 template <typename SecurityHeadersConfigT = ResponseHeadersPolicySecurityHeadersConfig>
111 SetSecurityHeadersConfig(std::forward<SecurityHeadersConfigT>(value));
112 return *this;
113 }
115
117
121 inline const ResponseHeadersPolicyServerTimingHeadersConfig& GetServerTimingHeadersConfig() const { return m_serverTimingHeadersConfig; }
122 inline bool ServerTimingHeadersConfigHasBeenSet() const { return m_serverTimingHeadersConfigHasBeenSet; }
123 template <typename ServerTimingHeadersConfigT = ResponseHeadersPolicyServerTimingHeadersConfig>
124 void SetServerTimingHeadersConfig(ServerTimingHeadersConfigT&& value) {
125 m_serverTimingHeadersConfigHasBeenSet = true;
126 m_serverTimingHeadersConfig = std::forward<ServerTimingHeadersConfigT>(value);
127 }
128 template <typename ServerTimingHeadersConfigT = ResponseHeadersPolicyServerTimingHeadersConfig>
129 ResponseHeadersPolicyConfig& WithServerTimingHeadersConfig(ServerTimingHeadersConfigT&& value) {
130 SetServerTimingHeadersConfig(std::forward<ServerTimingHeadersConfigT>(value));
131 return *this;
132 }
134
136
139 inline const ResponseHeadersPolicyCustomHeadersConfig& GetCustomHeadersConfig() const { return m_customHeadersConfig; }
140 inline bool CustomHeadersConfigHasBeenSet() const { return m_customHeadersConfigHasBeenSet; }
141 template <typename CustomHeadersConfigT = ResponseHeadersPolicyCustomHeadersConfig>
142 void SetCustomHeadersConfig(CustomHeadersConfigT&& value) {
143 m_customHeadersConfigHasBeenSet = true;
144 m_customHeadersConfig = std::forward<CustomHeadersConfigT>(value);
145 }
146 template <typename CustomHeadersConfigT = ResponseHeadersPolicyCustomHeadersConfig>
148 SetCustomHeadersConfig(std::forward<CustomHeadersConfigT>(value));
149 return *this;
150 }
152
154
158 inline const ResponseHeadersPolicyRemoveHeadersConfig& GetRemoveHeadersConfig() const { return m_removeHeadersConfig; }
159 inline bool RemoveHeadersConfigHasBeenSet() const { return m_removeHeadersConfigHasBeenSet; }
160 template <typename RemoveHeadersConfigT = ResponseHeadersPolicyRemoveHeadersConfig>
161 void SetRemoveHeadersConfig(RemoveHeadersConfigT&& value) {
162 m_removeHeadersConfigHasBeenSet = true;
163 m_removeHeadersConfig = std::forward<RemoveHeadersConfigT>(value);
164 }
165 template <typename RemoveHeadersConfigT = ResponseHeadersPolicyRemoveHeadersConfig>
167 SetRemoveHeadersConfig(std::forward<RemoveHeadersConfigT>(value));
168 return *this;
169 }
171 private:
172 Aws::String m_comment;
173
174 Aws::String m_name;
175
177
178 ResponseHeadersPolicySecurityHeadersConfig m_securityHeadersConfig;
179
180 ResponseHeadersPolicyServerTimingHeadersConfig m_serverTimingHeadersConfig;
181
182 ResponseHeadersPolicyCustomHeadersConfig m_customHeadersConfig;
183
184 ResponseHeadersPolicyRemoveHeadersConfig m_removeHeadersConfig;
185 bool m_commentHasBeenSet = false;
186 bool m_nameHasBeenSet = false;
187 bool m_corsConfigHasBeenSet = false;
188 bool m_securityHeadersConfigHasBeenSet = false;
189 bool m_serverTimingHeadersConfigHasBeenSet = false;
190 bool m_customHeadersConfigHasBeenSet = false;
191 bool m_removeHeadersConfigHasBeenSet = false;
192};
193
194} // namespace Model
195} // namespace CloudFront
196} // namespace Aws
ResponseHeadersPolicyConfig & WithServerTimingHeadersConfig(ServerTimingHeadersConfigT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ResponseHeadersPolicyConfig & WithRemoveHeadersConfig(RemoveHeadersConfigT &&value)
AWS_CLOUDFRONT_API ResponseHeadersPolicyConfig()=default
ResponseHeadersPolicyConfig & WithName(NameT &&value)
ResponseHeadersPolicyConfig & WithSecurityHeadersConfig(SecurityHeadersConfigT &&value)
const ResponseHeadersPolicyCustomHeadersConfig & GetCustomHeadersConfig() const
const ResponseHeadersPolicyRemoveHeadersConfig & GetRemoveHeadersConfig() const
ResponseHeadersPolicyConfig & WithCorsConfig(CorsConfigT &&value)
ResponseHeadersPolicyConfig & WithCustomHeadersConfig(CustomHeadersConfigT &&value)
const ResponseHeadersPolicyCorsConfig & GetCorsConfig() const
const ResponseHeadersPolicyServerTimingHeadersConfig & GetServerTimingHeadersConfig() const
AWS_CLOUDFRONT_API ResponseHeadersPolicyConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
const ResponseHeadersPolicySecurityHeadersConfig & GetSecurityHeadersConfig() const
void SetServerTimingHeadersConfig(ServerTimingHeadersConfigT &&value)
ResponseHeadersPolicyConfig & WithComment(CommentT &&value)
AWS_CLOUDFRONT_API ResponseHeadersPolicyConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String