AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
OriginRequestPolicyConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/OriginRequestPolicyCookiesConfig.h>
9#include <aws/cloudfront/model/OriginRequestPolicyHeadersConfig.h>
10#include <aws/cloudfront/model/OriginRequestPolicyQueryStringsConfig.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront {
22namespace Model {
23
43 public:
44 AWS_CLOUDFRONT_API OriginRequestPolicyConfig() = default;
45 AWS_CLOUDFRONT_API OriginRequestPolicyConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
47
48 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
49
51
55 inline const Aws::String& GetComment() const { return m_comment; }
56 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
57 template <typename CommentT = Aws::String>
58 void SetComment(CommentT&& value) {
59 m_commentHasBeenSet = true;
60 m_comment = std::forward<CommentT>(value);
61 }
62 template <typename CommentT = Aws::String>
64 SetComment(std::forward<CommentT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
92 inline const OriginRequestPolicyHeadersConfig& GetHeadersConfig() const { return m_headersConfig; }
93 inline bool HeadersConfigHasBeenSet() const { return m_headersConfigHasBeenSet; }
94 template <typename HeadersConfigT = OriginRequestPolicyHeadersConfig>
95 void SetHeadersConfig(HeadersConfigT&& value) {
96 m_headersConfigHasBeenSet = true;
97 m_headersConfig = std::forward<HeadersConfigT>(value);
98 }
99 template <typename HeadersConfigT = OriginRequestPolicyHeadersConfig>
101 SetHeadersConfig(std::forward<HeadersConfigT>(value));
102 return *this;
103 }
105
107
110 inline const OriginRequestPolicyCookiesConfig& GetCookiesConfig() const { return m_cookiesConfig; }
111 inline bool CookiesConfigHasBeenSet() const { return m_cookiesConfigHasBeenSet; }
112 template <typename CookiesConfigT = OriginRequestPolicyCookiesConfig>
113 void SetCookiesConfig(CookiesConfigT&& value) {
114 m_cookiesConfigHasBeenSet = true;
115 m_cookiesConfig = std::forward<CookiesConfigT>(value);
116 }
117 template <typename CookiesConfigT = OriginRequestPolicyCookiesConfig>
119 SetCookiesConfig(std::forward<CookiesConfigT>(value));
120 return *this;
121 }
123
125
128 inline const OriginRequestPolicyQueryStringsConfig& GetQueryStringsConfig() const { return m_queryStringsConfig; }
129 inline bool QueryStringsConfigHasBeenSet() const { return m_queryStringsConfigHasBeenSet; }
130 template <typename QueryStringsConfigT = OriginRequestPolicyQueryStringsConfig>
131 void SetQueryStringsConfig(QueryStringsConfigT&& value) {
132 m_queryStringsConfigHasBeenSet = true;
133 m_queryStringsConfig = std::forward<QueryStringsConfigT>(value);
134 }
135 template <typename QueryStringsConfigT = OriginRequestPolicyQueryStringsConfig>
136 OriginRequestPolicyConfig& WithQueryStringsConfig(QueryStringsConfigT&& value) {
137 SetQueryStringsConfig(std::forward<QueryStringsConfigT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_comment;
143
144 Aws::String m_name;
145
146 OriginRequestPolicyHeadersConfig m_headersConfig;
147
148 OriginRequestPolicyCookiesConfig m_cookiesConfig;
149
150 OriginRequestPolicyQueryStringsConfig m_queryStringsConfig;
151 bool m_commentHasBeenSet = false;
152 bool m_nameHasBeenSet = false;
153 bool m_headersConfigHasBeenSet = false;
154 bool m_cookiesConfigHasBeenSet = false;
155 bool m_queryStringsConfigHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace CloudFront
160} // namespace Aws
OriginRequestPolicyConfig & WithComment(CommentT &&value)
OriginRequestPolicyConfig & WithCookiesConfig(CookiesConfigT &&value)
AWS_CLOUDFRONT_API OriginRequestPolicyConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API OriginRequestPolicyConfig()=default
OriginRequestPolicyConfig & WithHeadersConfig(HeadersConfigT &&value)
OriginRequestPolicyConfig & WithName(NameT &&value)
const OriginRequestPolicyQueryStringsConfig & GetQueryStringsConfig() const
AWS_CLOUDFRONT_API OriginRequestPolicyConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
const OriginRequestPolicyCookiesConfig & GetCookiesConfig() const
const OriginRequestPolicyHeadersConfig & GetHeadersConfig() const
OriginRequestPolicyConfig & WithQueryStringsConfig(QueryStringsConfigT &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String