AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResponseHeadersPolicyConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/cloudfront/model/ResponseHeadersPolicyCorsConfig.h>
10#include <aws/cloudfront/model/ResponseHeadersPolicySecurityHeadersConfig.h>
11#include <aws/cloudfront/model/ResponseHeadersPolicyServerTimingHeadersConfig.h>
12#include <aws/cloudfront/model/ResponseHeadersPolicyCustomHeadersConfig.h>
13#include <aws/cloudfront/model/ResponseHeadersPolicyRemoveHeadersConfig.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudFront
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_CLOUDFRONT_API ResponseHeadersPolicyConfig();
41 AWS_CLOUDFRONT_API ResponseHeadersPolicyConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
52 inline const Aws::String& GetComment() const{ return m_comment; }
53 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
54 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
55 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
56 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
57 inline ResponseHeadersPolicyConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
58 inline ResponseHeadersPolicyConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
59 inline ResponseHeadersPolicyConfig& WithComment(const char* value) { SetComment(value); return *this;}
61
63
67 inline const Aws::String& GetName() const{ return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
70 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
71 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
72 inline ResponseHeadersPolicyConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
73 inline ResponseHeadersPolicyConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 inline ResponseHeadersPolicyConfig& WithName(const char* value) { SetName(value); return *this;}
76
78
82 inline const ResponseHeadersPolicyCorsConfig& GetCorsConfig() const{ return m_corsConfig; }
83 inline bool CorsConfigHasBeenSet() const { return m_corsConfigHasBeenSet; }
84 inline void SetCorsConfig(const ResponseHeadersPolicyCorsConfig& value) { m_corsConfigHasBeenSet = true; m_corsConfig = value; }
85 inline void SetCorsConfig(ResponseHeadersPolicyCorsConfig&& value) { m_corsConfigHasBeenSet = true; m_corsConfig = std::move(value); }
89
91
94 inline const ResponseHeadersPolicySecurityHeadersConfig& GetSecurityHeadersConfig() const{ return m_securityHeadersConfig; }
95 inline bool SecurityHeadersConfigHasBeenSet() const { return m_securityHeadersConfigHasBeenSet; }
96 inline void SetSecurityHeadersConfig(const ResponseHeadersPolicySecurityHeadersConfig& value) { m_securityHeadersConfigHasBeenSet = true; m_securityHeadersConfig = value; }
97 inline void SetSecurityHeadersConfig(ResponseHeadersPolicySecurityHeadersConfig&& value) { m_securityHeadersConfigHasBeenSet = true; m_securityHeadersConfig = std::move(value); }
101
103
107 inline const ResponseHeadersPolicyServerTimingHeadersConfig& GetServerTimingHeadersConfig() const{ return m_serverTimingHeadersConfig; }
108 inline bool ServerTimingHeadersConfigHasBeenSet() const { return m_serverTimingHeadersConfigHasBeenSet; }
109 inline void SetServerTimingHeadersConfig(const ResponseHeadersPolicyServerTimingHeadersConfig& value) { m_serverTimingHeadersConfigHasBeenSet = true; m_serverTimingHeadersConfig = value; }
110 inline void SetServerTimingHeadersConfig(ResponseHeadersPolicyServerTimingHeadersConfig&& value) { m_serverTimingHeadersConfigHasBeenSet = true; m_serverTimingHeadersConfig = std::move(value); }
114
116
119 inline const ResponseHeadersPolicyCustomHeadersConfig& GetCustomHeadersConfig() const{ return m_customHeadersConfig; }
120 inline bool CustomHeadersConfigHasBeenSet() const { return m_customHeadersConfigHasBeenSet; }
121 inline void SetCustomHeadersConfig(const ResponseHeadersPolicyCustomHeadersConfig& value) { m_customHeadersConfigHasBeenSet = true; m_customHeadersConfig = value; }
122 inline void SetCustomHeadersConfig(ResponseHeadersPolicyCustomHeadersConfig&& value) { m_customHeadersConfigHasBeenSet = true; m_customHeadersConfig = std::move(value); }
126
128
132 inline const ResponseHeadersPolicyRemoveHeadersConfig& GetRemoveHeadersConfig() const{ return m_removeHeadersConfig; }
133 inline bool RemoveHeadersConfigHasBeenSet() const { return m_removeHeadersConfigHasBeenSet; }
134 inline void SetRemoveHeadersConfig(const ResponseHeadersPolicyRemoveHeadersConfig& value) { m_removeHeadersConfigHasBeenSet = true; m_removeHeadersConfig = value; }
135 inline void SetRemoveHeadersConfig(ResponseHeadersPolicyRemoveHeadersConfig&& value) { m_removeHeadersConfigHasBeenSet = true; m_removeHeadersConfig = std::move(value); }
139 private:
140
141 Aws::String m_comment;
142 bool m_commentHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
148 bool m_corsConfigHasBeenSet = false;
149
150 ResponseHeadersPolicySecurityHeadersConfig m_securityHeadersConfig;
151 bool m_securityHeadersConfigHasBeenSet = false;
152
153 ResponseHeadersPolicyServerTimingHeadersConfig m_serverTimingHeadersConfig;
154 bool m_serverTimingHeadersConfigHasBeenSet = false;
155
156 ResponseHeadersPolicyCustomHeadersConfig m_customHeadersConfig;
157 bool m_customHeadersConfigHasBeenSet = false;
158
159 ResponseHeadersPolicyRemoveHeadersConfig m_removeHeadersConfig;
160 bool m_removeHeadersConfigHasBeenSet = false;
161 };
162
163} // namespace Model
164} // namespace CloudFront
165} // namespace Aws
ResponseHeadersPolicyConfig & WithServerTimingHeadersConfig(const ResponseHeadersPolicyServerTimingHeadersConfig &value)
void SetRemoveHeadersConfig(ResponseHeadersPolicyRemoveHeadersConfig &&value)
ResponseHeadersPolicyConfig & WithComment(const char *value)
void SetCustomHeadersConfig(const ResponseHeadersPolicyCustomHeadersConfig &value)
void SetRemoveHeadersConfig(const ResponseHeadersPolicyRemoveHeadersConfig &value)
void SetSecurityHeadersConfig(const ResponseHeadersPolicySecurityHeadersConfig &value)
void SetSecurityHeadersConfig(ResponseHeadersPolicySecurityHeadersConfig &&value)
ResponseHeadersPolicyConfig & WithCorsConfig(ResponseHeadersPolicyCorsConfig &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ResponseHeadersPolicyConfig & WithCorsConfig(const ResponseHeadersPolicyCorsConfig &value)
void SetServerTimingHeadersConfig(const ResponseHeadersPolicyServerTimingHeadersConfig &value)
ResponseHeadersPolicyConfig & WithRemoveHeadersConfig(const ResponseHeadersPolicyRemoveHeadersConfig &value)
ResponseHeadersPolicyConfig & WithName(Aws::String &&value)
const ResponseHeadersPolicyCustomHeadersConfig & GetCustomHeadersConfig() const
ResponseHeadersPolicyConfig & WithCustomHeadersConfig(ResponseHeadersPolicyCustomHeadersConfig &&value)
void SetCustomHeadersConfig(ResponseHeadersPolicyCustomHeadersConfig &&value)
void SetServerTimingHeadersConfig(ResponseHeadersPolicyServerTimingHeadersConfig &&value)
ResponseHeadersPolicyConfig & WithServerTimingHeadersConfig(ResponseHeadersPolicyServerTimingHeadersConfig &&value)
ResponseHeadersPolicyConfig & WithSecurityHeadersConfig(ResponseHeadersPolicySecurityHeadersConfig &&value)
const ResponseHeadersPolicyRemoveHeadersConfig & GetRemoveHeadersConfig() const
ResponseHeadersPolicyConfig & WithSecurityHeadersConfig(const ResponseHeadersPolicySecurityHeadersConfig &value)
ResponseHeadersPolicyConfig & WithCustomHeadersConfig(const ResponseHeadersPolicyCustomHeadersConfig &value)
void SetCorsConfig(ResponseHeadersPolicyCorsConfig &&value)
ResponseHeadersPolicyConfig & WithRemoveHeadersConfig(ResponseHeadersPolicyRemoveHeadersConfig &&value)
ResponseHeadersPolicyConfig & WithComment(Aws::String &&value)
const ResponseHeadersPolicyCorsConfig & GetCorsConfig() const
void SetCorsConfig(const ResponseHeadersPolicyCorsConfig &value)
ResponseHeadersPolicyConfig & WithName(const Aws::String &value)
const ResponseHeadersPolicyServerTimingHeadersConfig & GetServerTimingHeadersConfig() const
ResponseHeadersPolicyConfig & WithName(const char *value)
AWS_CLOUDFRONT_API ResponseHeadersPolicyConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
const ResponseHeadersPolicySecurityHeadersConfig & GetSecurityHeadersConfig() const
ResponseHeadersPolicyConfig & WithComment(const Aws::String &value)
AWS_CLOUDFRONT_API ResponseHeadersPolicyConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String