AWS SDK for C++  1.9.19
AWS SDK for C++
OriginRequestPolicyConfig.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Xml
19 {
20  class XmlNode;
21 } // namespace Xml
22 } // namespace Utils
23 namespace CloudFront
24 {
25 namespace Model
26 {
27 
47  {
48  public:
52 
53  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
54 
55 
60  inline const Aws::String& GetComment() const{ return m_comment; }
61 
66  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
67 
72  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
73 
78  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
79 
84  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
85 
90  inline OriginRequestPolicyConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
91 
96  inline OriginRequestPolicyConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
97 
102  inline OriginRequestPolicyConfig& WithComment(const char* value) { SetComment(value); return *this;}
103 
104 
108  inline const Aws::String& GetName() const{ return m_name; }
109 
113  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
114 
118  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
119 
123  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
124 
128  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
129 
133  inline OriginRequestPolicyConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
134 
138  inline OriginRequestPolicyConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
139 
143  inline OriginRequestPolicyConfig& WithName(const char* value) { SetName(value); return *this;}
144 
145 
150  inline const OriginRequestPolicyHeadersConfig& GetHeadersConfig() const{ return m_headersConfig; }
151 
156  inline bool HeadersConfigHasBeenSet() const { return m_headersConfigHasBeenSet; }
157 
162  inline void SetHeadersConfig(const OriginRequestPolicyHeadersConfig& value) { m_headersConfigHasBeenSet = true; m_headersConfig = value; }
163 
168  inline void SetHeadersConfig(OriginRequestPolicyHeadersConfig&& value) { m_headersConfigHasBeenSet = true; m_headersConfig = std::move(value); }
169 
174  inline OriginRequestPolicyConfig& WithHeadersConfig(const OriginRequestPolicyHeadersConfig& value) { SetHeadersConfig(value); return *this;}
175 
180  inline OriginRequestPolicyConfig& WithHeadersConfig(OriginRequestPolicyHeadersConfig&& value) { SetHeadersConfig(std::move(value)); return *this;}
181 
182 
186  inline const OriginRequestPolicyCookiesConfig& GetCookiesConfig() const{ return m_cookiesConfig; }
187 
191  inline bool CookiesConfigHasBeenSet() const { return m_cookiesConfigHasBeenSet; }
192 
196  inline void SetCookiesConfig(const OriginRequestPolicyCookiesConfig& value) { m_cookiesConfigHasBeenSet = true; m_cookiesConfig = value; }
197 
201  inline void SetCookiesConfig(OriginRequestPolicyCookiesConfig&& value) { m_cookiesConfigHasBeenSet = true; m_cookiesConfig = std::move(value); }
202 
206  inline OriginRequestPolicyConfig& WithCookiesConfig(const OriginRequestPolicyCookiesConfig& value) { SetCookiesConfig(value); return *this;}
207 
211  inline OriginRequestPolicyConfig& WithCookiesConfig(OriginRequestPolicyCookiesConfig&& value) { SetCookiesConfig(std::move(value)); return *this;}
212 
213 
217  inline const OriginRequestPolicyQueryStringsConfig& GetQueryStringsConfig() const{ return m_queryStringsConfig; }
218 
222  inline bool QueryStringsConfigHasBeenSet() const { return m_queryStringsConfigHasBeenSet; }
223 
227  inline void SetQueryStringsConfig(const OriginRequestPolicyQueryStringsConfig& value) { m_queryStringsConfigHasBeenSet = true; m_queryStringsConfig = value; }
228 
232  inline void SetQueryStringsConfig(OriginRequestPolicyQueryStringsConfig&& value) { m_queryStringsConfigHasBeenSet = true; m_queryStringsConfig = std::move(value); }
233 
237  inline OriginRequestPolicyConfig& WithQueryStringsConfig(const OriginRequestPolicyQueryStringsConfig& value) { SetQueryStringsConfig(value); return *this;}
238 
242  inline OriginRequestPolicyConfig& WithQueryStringsConfig(OriginRequestPolicyQueryStringsConfig&& value) { SetQueryStringsConfig(std::move(value)); return *this;}
243 
244  private:
245 
246  Aws::String m_comment;
247  bool m_commentHasBeenSet;
248 
249  Aws::String m_name;
250  bool m_nameHasBeenSet;
251 
252  OriginRequestPolicyHeadersConfig m_headersConfig;
253  bool m_headersConfigHasBeenSet;
254 
255  OriginRequestPolicyCookiesConfig m_cookiesConfig;
256  bool m_cookiesConfigHasBeenSet;
257 
258  OriginRequestPolicyQueryStringsConfig m_queryStringsConfig;
259  bool m_queryStringsConfigHasBeenSet;
260  };
261 
262 } // namespace Model
263 } // namespace CloudFront
264 } // namespace Aws
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetQueryStringsConfig
void SetQueryStringsConfig(OriginRequestPolicyQueryStringsConfig &&value)
Definition: OriginRequestPolicyConfig.h:232
Aws::CloudFront::Model::OriginRequestPolicyConfig::operator=
OriginRequestPolicyConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginRequestPolicyCookiesConfig
Definition: OriginRequestPolicyCookiesConfig.h:34
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithName
OriginRequestPolicyConfig & WithName(const char *value)
Definition: OriginRequestPolicyConfig.h:143
Aws::CloudFront::Model::OriginRequestPolicyConfig::OriginRequestPolicyConfig
OriginRequestPolicyConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginRequestPolicyConfig::GetComment
const Aws::String & GetComment() const
Definition: OriginRequestPolicyConfig.h:60
Aws::CloudFront::Model::OriginRequestPolicyConfig::NameHasBeenSet
bool NameHasBeenSet() const
Definition: OriginRequestPolicyConfig.h:113
Aws::CloudFront::Model::OriginRequestPolicyConfig::GetHeadersConfig
const OriginRequestPolicyHeadersConfig & GetHeadersConfig() const
Definition: OriginRequestPolicyConfig.h:150
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithComment
OriginRequestPolicyConfig & WithComment(const char *value)
Definition: OriginRequestPolicyConfig.h:102
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithCookiesConfig
OriginRequestPolicyConfig & WithCookiesConfig(OriginRequestPolicyCookiesConfig &&value)
Definition: OriginRequestPolicyConfig.h:211
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithQueryStringsConfig
OriginRequestPolicyConfig & WithQueryStringsConfig(const OriginRequestPolicyQueryStringsConfig &value)
Definition: OriginRequestPolicyConfig.h:237
Aws::CloudFront::Model::OriginRequestPolicyConfig::OriginRequestPolicyConfig
OriginRequestPolicyConfig()
Aws::CloudFront::Model::OriginRequestPolicyConfig::GetQueryStringsConfig
const OriginRequestPolicyQueryStringsConfig & GetQueryStringsConfig() const
Definition: OriginRequestPolicyConfig.h:217
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetName
void SetName(const Aws::String &value)
Definition: OriginRequestPolicyConfig.h:118
Aws::CloudFront::Model::OriginRequestPolicyQueryStringsConfig
Definition: OriginRequestPolicyQueryStringsConfig.h:34
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetCookiesConfig
void SetCookiesConfig(const OriginRequestPolicyCookiesConfig &value)
Definition: OriginRequestPolicyConfig.h:196
Aws::CloudFront::Model::OriginRequestPolicyHeadersConfig
Definition: OriginRequestPolicyHeadersConfig.h:34
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetComment
void SetComment(const Aws::String &value)
Definition: OriginRequestPolicyConfig.h:72
OriginRequestPolicyHeadersConfig.h
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithComment
OriginRequestPolicyConfig & WithComment(const Aws::String &value)
Definition: OriginRequestPolicyConfig.h:90
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithCookiesConfig
OriginRequestPolicyConfig & WithCookiesConfig(const OriginRequestPolicyCookiesConfig &value)
Definition: OriginRequestPolicyConfig.h:206
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithQueryStringsConfig
OriginRequestPolicyConfig & WithQueryStringsConfig(OriginRequestPolicyQueryStringsConfig &&value)
Definition: OriginRequestPolicyConfig.h:242
Aws::CloudFront::Model::OriginRequestPolicyConfig::HeadersConfigHasBeenSet
bool HeadersConfigHasBeenSet() const
Definition: OriginRequestPolicyConfig.h:156
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithName
OriginRequestPolicyConfig & WithName(const Aws::String &value)
Definition: OriginRequestPolicyConfig.h:133
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetCookiesConfig
void SetCookiesConfig(OriginRequestPolicyCookiesConfig &&value)
Definition: OriginRequestPolicyConfig.h:201
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetName
void SetName(Aws::String &&value)
Definition: OriginRequestPolicyConfig.h:123
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetQueryStringsConfig
void SetQueryStringsConfig(const OriginRequestPolicyQueryStringsConfig &value)
Definition: OriginRequestPolicyConfig.h:227
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithComment
OriginRequestPolicyConfig & WithComment(Aws::String &&value)
Definition: OriginRequestPolicyConfig.h:96
Aws::CloudFront::Model::OriginRequestPolicyConfig::CommentHasBeenSet
bool CommentHasBeenSet() const
Definition: OriginRequestPolicyConfig.h:66
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetHeadersConfig
void SetHeadersConfig(const OriginRequestPolicyHeadersConfig &value)
Definition: OriginRequestPolicyConfig.h:162
Aws::CloudFront::Model::OriginRequestPolicyConfig::CookiesConfigHasBeenSet
bool CookiesConfigHasBeenSet() const
Definition: OriginRequestPolicyConfig.h:191
OriginRequestPolicyCookiesConfig.h
Aws::CloudFront::Model::OriginRequestPolicyConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetComment
void SetComment(const char *value)
Definition: OriginRequestPolicyConfig.h:84
Aws::CloudFront::Model::OriginRequestPolicyConfig::QueryStringsConfigHasBeenSet
bool QueryStringsConfigHasBeenSet() const
Definition: OriginRequestPolicyConfig.h:222
AWSString.h
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetHeadersConfig
void SetHeadersConfig(OriginRequestPolicyHeadersConfig &&value)
Definition: OriginRequestPolicyConfig.h:168
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithHeadersConfig
OriginRequestPolicyConfig & WithHeadersConfig(OriginRequestPolicyHeadersConfig &&value)
Definition: OriginRequestPolicyConfig.h:180
CloudFront_EXPORTS.h
Aws::CloudFront::Model::OriginRequestPolicyConfig::GetName
const Aws::String & GetName() const
Definition: OriginRequestPolicyConfig.h:108
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithName
OriginRequestPolicyConfig & WithName(Aws::String &&value)
Definition: OriginRequestPolicyConfig.h:138
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetComment
void SetComment(Aws::String &&value)
Definition: OriginRequestPolicyConfig.h:78
OriginRequestPolicyQueryStringsConfig.h
Aws::CloudFront::Model::OriginRequestPolicyConfig::WithHeadersConfig
OriginRequestPolicyConfig & WithHeadersConfig(const OriginRequestPolicyHeadersConfig &value)
Definition: OriginRequestPolicyConfig.h:174
Aws::CloudFront::Model::OriginRequestPolicyConfig::SetName
void SetName(const char *value)
Definition: OriginRequestPolicyConfig.h:128
Aws::CloudFront::Model::OriginRequestPolicyConfig::GetCookiesConfig
const OriginRequestPolicyCookiesConfig & GetCookiesConfig() const
Definition: OriginRequestPolicyConfig.h:186
Aws::CloudFront::Model::OriginRequestPolicyConfig
Definition: OriginRequestPolicyConfig.h:47