AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginRequestPolicyConfig.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/OriginRequestPolicyHeadersConfig.h>
10#include <aws/cloudfront/model/OriginRequestPolicyCookiesConfig.h>
11#include <aws/cloudfront/model/OriginRequestPolicyQueryStringsConfig.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudFront
24{
25namespace Model
26{
27
47 {
48 public:
49 AWS_CLOUDFRONT_API OriginRequestPolicyConfig();
50 AWS_CLOUDFRONT_API OriginRequestPolicyConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
52
53 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
54
55
57
61 inline const Aws::String& GetComment() const{ return m_comment; }
62 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
63 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
64 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
65 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
66 inline OriginRequestPolicyConfig& WithComment(const Aws::String& value) { SetComment(value); return *this;}
67 inline OriginRequestPolicyConfig& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
68 inline OriginRequestPolicyConfig& WithComment(const char* value) { SetComment(value); return *this;}
70
72
75 inline const Aws::String& GetName() const{ return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
78 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
79 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
80 inline OriginRequestPolicyConfig& WithName(const Aws::String& value) { SetName(value); return *this;}
81 inline OriginRequestPolicyConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
82 inline OriginRequestPolicyConfig& WithName(const char* value) { SetName(value); return *this;}
84
86
90 inline const OriginRequestPolicyHeadersConfig& GetHeadersConfig() const{ return m_headersConfig; }
91 inline bool HeadersConfigHasBeenSet() const { return m_headersConfigHasBeenSet; }
92 inline void SetHeadersConfig(const OriginRequestPolicyHeadersConfig& value) { m_headersConfigHasBeenSet = true; m_headersConfig = value; }
93 inline void SetHeadersConfig(OriginRequestPolicyHeadersConfig&& value) { m_headersConfigHasBeenSet = true; m_headersConfig = std::move(value); }
97
99
102 inline const OriginRequestPolicyCookiesConfig& GetCookiesConfig() const{ return m_cookiesConfig; }
103 inline bool CookiesConfigHasBeenSet() const { return m_cookiesConfigHasBeenSet; }
104 inline void SetCookiesConfig(const OriginRequestPolicyCookiesConfig& value) { m_cookiesConfigHasBeenSet = true; m_cookiesConfig = value; }
105 inline void SetCookiesConfig(OriginRequestPolicyCookiesConfig&& value) { m_cookiesConfigHasBeenSet = true; m_cookiesConfig = std::move(value); }
109
111
114 inline const OriginRequestPolicyQueryStringsConfig& GetQueryStringsConfig() const{ return m_queryStringsConfig; }
115 inline bool QueryStringsConfigHasBeenSet() const { return m_queryStringsConfigHasBeenSet; }
116 inline void SetQueryStringsConfig(const OriginRequestPolicyQueryStringsConfig& value) { m_queryStringsConfigHasBeenSet = true; m_queryStringsConfig = value; }
117 inline void SetQueryStringsConfig(OriginRequestPolicyQueryStringsConfig&& value) { m_queryStringsConfigHasBeenSet = true; m_queryStringsConfig = std::move(value); }
121 private:
122
123 Aws::String m_comment;
124 bool m_commentHasBeenSet = false;
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 OriginRequestPolicyHeadersConfig m_headersConfig;
130 bool m_headersConfigHasBeenSet = false;
131
132 OriginRequestPolicyCookiesConfig m_cookiesConfig;
133 bool m_cookiesConfigHasBeenSet = false;
134
135 OriginRequestPolicyQueryStringsConfig m_queryStringsConfig;
136 bool m_queryStringsConfigHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace CloudFront
141} // namespace Aws
void SetQueryStringsConfig(const OriginRequestPolicyQueryStringsConfig &value)
OriginRequestPolicyConfig & WithHeadersConfig(OriginRequestPolicyHeadersConfig &&value)
OriginRequestPolicyConfig & WithName(Aws::String &&value)
AWS_CLOUDFRONT_API OriginRequestPolicyConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCookiesConfig(OriginRequestPolicyCookiesConfig &&value)
void SetHeadersConfig(OriginRequestPolicyHeadersConfig &&value)
OriginRequestPolicyConfig & WithQueryStringsConfig(const OriginRequestPolicyQueryStringsConfig &value)
OriginRequestPolicyConfig & WithName(const char *value)
OriginRequestPolicyConfig & WithComment(const Aws::String &value)
OriginRequestPolicyConfig & WithComment(const char *value)
const OriginRequestPolicyQueryStringsConfig & GetQueryStringsConfig() const
OriginRequestPolicyConfig & WithCookiesConfig(const OriginRequestPolicyCookiesConfig &value)
OriginRequestPolicyConfig & WithName(const Aws::String &value)
OriginRequestPolicyConfig & WithCookiesConfig(OriginRequestPolicyCookiesConfig &&value)
void SetQueryStringsConfig(OriginRequestPolicyQueryStringsConfig &&value)
void SetHeadersConfig(const OriginRequestPolicyHeadersConfig &value)
OriginRequestPolicyConfig & WithComment(Aws::String &&value)
AWS_CLOUDFRONT_API OriginRequestPolicyConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
OriginRequestPolicyConfig & WithHeadersConfig(const OriginRequestPolicyHeadersConfig &value)
const OriginRequestPolicyCookiesConfig & GetCookiesConfig() const
const OriginRequestPolicyHeadersConfig & GetHeadersConfig() const
void SetCookiesConfig(const OriginRequestPolicyCookiesConfig &value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
OriginRequestPolicyConfig & WithQueryStringsConfig(OriginRequestPolicyQueryStringsConfig &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String