AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DefaultCacheBehavior.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/TrustedSigners.h>
10#include <aws/cloudfront/model/TrustedKeyGroups.h>
11#include <aws/cloudfront/model/ViewerProtocolPolicy.h>
12#include <aws/cloudfront/model/AllowedMethods.h>
13#include <aws/cloudfront/model/LambdaFunctionAssociations.h>
14#include <aws/cloudfront/model/FunctionAssociations.h>
15#include <aws/cloudfront/model/GrpcConfig.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace CloudFront
28{
29namespace Model
30{
31
41 {
42 public:
43 AWS_CLOUDFRONT_API DefaultCacheBehavior() = default;
44 AWS_CLOUDFRONT_API DefaultCacheBehavior(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_CLOUDFRONT_API DefaultCacheBehavior& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
48
49
51
55 inline const Aws::String& GetTargetOriginId() const { return m_targetOriginId; }
56 inline bool TargetOriginIdHasBeenSet() const { return m_targetOriginIdHasBeenSet; }
57 template<typename TargetOriginIdT = Aws::String>
58 void SetTargetOriginId(TargetOriginIdT&& value) { m_targetOriginIdHasBeenSet = true; m_targetOriginId = std::forward<TargetOriginIdT>(value); }
59 template<typename TargetOriginIdT = Aws::String>
60 DefaultCacheBehavior& WithTargetOriginId(TargetOriginIdT&& value) { SetTargetOriginId(std::forward<TargetOriginIdT>(value)); return *this;}
62
64
82 inline const TrustedSigners& GetTrustedSigners() const { return m_trustedSigners; }
83 inline bool TrustedSignersHasBeenSet() const { return m_trustedSignersHasBeenSet; }
84 template<typename TrustedSignersT = TrustedSigners>
85 void SetTrustedSigners(TrustedSignersT&& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = std::forward<TrustedSignersT>(value); }
86 template<typename TrustedSignersT = TrustedSigners>
87 DefaultCacheBehavior& WithTrustedSigners(TrustedSignersT&& value) { SetTrustedSigners(std::forward<TrustedSignersT>(value)); return *this;}
89
91
102 inline const TrustedKeyGroups& GetTrustedKeyGroups() const { return m_trustedKeyGroups; }
103 inline bool TrustedKeyGroupsHasBeenSet() const { return m_trustedKeyGroupsHasBeenSet; }
104 template<typename TrustedKeyGroupsT = TrustedKeyGroups>
105 void SetTrustedKeyGroups(TrustedKeyGroupsT&& value) { m_trustedKeyGroupsHasBeenSet = true; m_trustedKeyGroups = std::forward<TrustedKeyGroupsT>(value); }
106 template<typename TrustedKeyGroupsT = TrustedKeyGroups>
107 DefaultCacheBehavior& WithTrustedKeyGroups(TrustedKeyGroupsT&& value) { SetTrustedKeyGroups(std::forward<TrustedKeyGroupsT>(value)); return *this;}
109
111
135 inline ViewerProtocolPolicy GetViewerProtocolPolicy() const { return m_viewerProtocolPolicy; }
136 inline bool ViewerProtocolPolicyHasBeenSet() const { return m_viewerProtocolPolicyHasBeenSet; }
137 inline void SetViewerProtocolPolicy(ViewerProtocolPolicy value) { m_viewerProtocolPolicyHasBeenSet = true; m_viewerProtocolPolicy = value; }
140
142
143 inline const AllowedMethods& GetAllowedMethods() const { return m_allowedMethods; }
144 inline bool AllowedMethodsHasBeenSet() const { return m_allowedMethodsHasBeenSet; }
145 template<typename AllowedMethodsT = AllowedMethods>
146 void SetAllowedMethods(AllowedMethodsT&& value) { m_allowedMethodsHasBeenSet = true; m_allowedMethods = std::forward<AllowedMethodsT>(value); }
147 template<typename AllowedMethodsT = AllowedMethods>
148 DefaultCacheBehavior& WithAllowedMethods(AllowedMethodsT&& value) { SetAllowedMethods(std::forward<AllowedMethodsT>(value)); return *this;}
150
152
165 inline bool GetSmoothStreaming() const { return m_smoothStreaming; }
166 inline bool SmoothStreamingHasBeenSet() const { return m_smoothStreamingHasBeenSet; }
167 inline void SetSmoothStreaming(bool value) { m_smoothStreamingHasBeenSet = true; m_smoothStreaming = value; }
168 inline DefaultCacheBehavior& WithSmoothStreaming(bool value) { SetSmoothStreaming(value); return *this;}
170
172
179 inline bool GetCompress() const { return m_compress; }
180 inline bool CompressHasBeenSet() const { return m_compressHasBeenSet; }
181 inline void SetCompress(bool value) { m_compressHasBeenSet = true; m_compress = value; }
182 inline DefaultCacheBehavior& WithCompress(bool value) { SetCompress(value); return *this;}
184
186
190 inline const LambdaFunctionAssociations& GetLambdaFunctionAssociations() const { return m_lambdaFunctionAssociations; }
191 inline bool LambdaFunctionAssociationsHasBeenSet() const { return m_lambdaFunctionAssociationsHasBeenSet; }
192 template<typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
193 void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { m_lambdaFunctionAssociationsHasBeenSet = true; m_lambdaFunctionAssociations = std::forward<LambdaFunctionAssociationsT>(value); }
194 template<typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
195 DefaultCacheBehavior& WithLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { SetLambdaFunctionAssociations(std::forward<LambdaFunctionAssociationsT>(value)); return *this;}
197
199
204 inline const FunctionAssociations& GetFunctionAssociations() const { return m_functionAssociations; }
205 inline bool FunctionAssociationsHasBeenSet() const { return m_functionAssociationsHasBeenSet; }
206 template<typename FunctionAssociationsT = FunctionAssociations>
207 void SetFunctionAssociations(FunctionAssociationsT&& value) { m_functionAssociationsHasBeenSet = true; m_functionAssociations = std::forward<FunctionAssociationsT>(value); }
208 template<typename FunctionAssociationsT = FunctionAssociations>
209 DefaultCacheBehavior& WithFunctionAssociations(FunctionAssociationsT&& value) { SetFunctionAssociations(std::forward<FunctionAssociationsT>(value)); return *this;}
211
213
218 inline const Aws::String& GetFieldLevelEncryptionId() const { return m_fieldLevelEncryptionId; }
219 inline bool FieldLevelEncryptionIdHasBeenSet() const { return m_fieldLevelEncryptionIdHasBeenSet; }
220 template<typename FieldLevelEncryptionIdT = Aws::String>
221 void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { m_fieldLevelEncryptionIdHasBeenSet = true; m_fieldLevelEncryptionId = std::forward<FieldLevelEncryptionIdT>(value); }
222 template<typename FieldLevelEncryptionIdT = Aws::String>
223 DefaultCacheBehavior& WithFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { SetFieldLevelEncryptionId(std::forward<FieldLevelEncryptionIdT>(value)); return *this;}
225
227
233 inline const Aws::String& GetRealtimeLogConfigArn() const { return m_realtimeLogConfigArn; }
234 inline bool RealtimeLogConfigArnHasBeenSet() const { return m_realtimeLogConfigArnHasBeenSet; }
235 template<typename RealtimeLogConfigArnT = Aws::String>
236 void SetRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn = std::forward<RealtimeLogConfigArnT>(value); }
237 template<typename RealtimeLogConfigArnT = Aws::String>
238 DefaultCacheBehavior& WithRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { SetRealtimeLogConfigArn(std::forward<RealtimeLogConfigArnT>(value)); return *this;}
240
242
253 inline const Aws::String& GetCachePolicyId() const { return m_cachePolicyId; }
254 inline bool CachePolicyIdHasBeenSet() const { return m_cachePolicyIdHasBeenSet; }
255 template<typename CachePolicyIdT = Aws::String>
256 void SetCachePolicyId(CachePolicyIdT&& value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId = std::forward<CachePolicyIdT>(value); }
257 template<typename CachePolicyIdT = Aws::String>
258 DefaultCacheBehavior& WithCachePolicyId(CachePolicyIdT&& value) { SetCachePolicyId(std::forward<CachePolicyIdT>(value)); return *this;}
260
262
271 inline const Aws::String& GetOriginRequestPolicyId() const { return m_originRequestPolicyId; }
272 inline bool OriginRequestPolicyIdHasBeenSet() const { return m_originRequestPolicyIdHasBeenSet; }
273 template<typename OriginRequestPolicyIdT = Aws::String>
274 void SetOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId = std::forward<OriginRequestPolicyIdT>(value); }
275 template<typename OriginRequestPolicyIdT = Aws::String>
276 DefaultCacheBehavior& WithOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { SetOriginRequestPolicyId(std::forward<OriginRequestPolicyIdT>(value)); return *this;}
278
280
283 inline const Aws::String& GetResponseHeadersPolicyId() const { return m_responseHeadersPolicyId; }
284 inline bool ResponseHeadersPolicyIdHasBeenSet() const { return m_responseHeadersPolicyIdHasBeenSet; }
285 template<typename ResponseHeadersPolicyIdT = Aws::String>
286 void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId = std::forward<ResponseHeadersPolicyIdT>(value); }
287 template<typename ResponseHeadersPolicyIdT = Aws::String>
288 DefaultCacheBehavior& WithResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { SetResponseHeadersPolicyId(std::forward<ResponseHeadersPolicyIdT>(value)); return *this;}
290
292
295 inline const GrpcConfig& GetGrpcConfig() const { return m_grpcConfig; }
296 inline bool GrpcConfigHasBeenSet() const { return m_grpcConfigHasBeenSet; }
297 template<typename GrpcConfigT = GrpcConfig>
298 void SetGrpcConfig(GrpcConfigT&& value) { m_grpcConfigHasBeenSet = true; m_grpcConfig = std::forward<GrpcConfigT>(value); }
299 template<typename GrpcConfigT = GrpcConfig>
300 DefaultCacheBehavior& WithGrpcConfig(GrpcConfigT&& value) { SetGrpcConfig(std::forward<GrpcConfigT>(value)); return *this;}
302 private:
303
304 Aws::String m_targetOriginId;
305 bool m_targetOriginIdHasBeenSet = false;
306
307 TrustedSigners m_trustedSigners;
308 bool m_trustedSignersHasBeenSet = false;
309
310 TrustedKeyGroups m_trustedKeyGroups;
311 bool m_trustedKeyGroupsHasBeenSet = false;
312
314 bool m_viewerProtocolPolicyHasBeenSet = false;
315
316 AllowedMethods m_allowedMethods;
317 bool m_allowedMethodsHasBeenSet = false;
318
319 bool m_smoothStreaming{false};
320 bool m_smoothStreamingHasBeenSet = false;
321
322 bool m_compress{false};
323 bool m_compressHasBeenSet = false;
324
325 LambdaFunctionAssociations m_lambdaFunctionAssociations;
326 bool m_lambdaFunctionAssociationsHasBeenSet = false;
327
328 FunctionAssociations m_functionAssociations;
329 bool m_functionAssociationsHasBeenSet = false;
330
331 Aws::String m_fieldLevelEncryptionId;
332 bool m_fieldLevelEncryptionIdHasBeenSet = false;
333
334 Aws::String m_realtimeLogConfigArn;
335 bool m_realtimeLogConfigArnHasBeenSet = false;
336
337 Aws::String m_cachePolicyId;
338 bool m_cachePolicyIdHasBeenSet = false;
339
340 Aws::String m_originRequestPolicyId;
341 bool m_originRequestPolicyIdHasBeenSet = false;
342
343 Aws::String m_responseHeadersPolicyId;
344 bool m_responseHeadersPolicyIdHasBeenSet = false;
345
346 GrpcConfig m_grpcConfig;
347 bool m_grpcConfigHasBeenSet = false;
348 };
349
350} // namespace Model
351} // namespace CloudFront
352} // namespace Aws
void SetRealtimeLogConfigArn(RealtimeLogConfigArnT &&value)
DefaultCacheBehavior & WithCachePolicyId(CachePolicyIdT &&value)
void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT &&value)
DefaultCacheBehavior & WithLambdaFunctionAssociations(LambdaFunctionAssociationsT &&value)
const FunctionAssociations & GetFunctionAssociations() const
DefaultCacheBehavior & WithRealtimeLogConfigArn(RealtimeLogConfigArnT &&value)
DefaultCacheBehavior & WithTrustedKeyGroups(TrustedKeyGroupsT &&value)
DefaultCacheBehavior & WithAllowedMethods(AllowedMethodsT &&value)
DefaultCacheBehavior & WithViewerProtocolPolicy(ViewerProtocolPolicy value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API DefaultCacheBehavior()=default
void SetTrustedKeyGroups(TrustedKeyGroupsT &&value)
DefaultCacheBehavior & WithSmoothStreaming(bool value)
void SetOriginRequestPolicyId(OriginRequestPolicyIdT &&value)
DefaultCacheBehavior & WithGrpcConfig(GrpcConfigT &&value)
const TrustedKeyGroups & GetTrustedKeyGroups() const
DefaultCacheBehavior & WithResponseHeadersPolicyId(ResponseHeadersPolicyIdT &&value)
void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT &&value)
AWS_CLOUDFRONT_API DefaultCacheBehavior & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const TrustedSigners & GetTrustedSigners() const
DefaultCacheBehavior & WithTrustedSigners(TrustedSignersT &&value)
DefaultCacheBehavior & WithFieldLevelEncryptionId(FieldLevelEncryptionIdT &&value)
DefaultCacheBehavior & WithFunctionAssociations(FunctionAssociationsT &&value)
AWS_CLOUDFRONT_API DefaultCacheBehavior(const Aws::Utils::Xml::XmlNode &xmlNode)
DefaultCacheBehavior & WithOriginRequestPolicyId(OriginRequestPolicyIdT &&value)
void SetFunctionAssociations(FunctionAssociationsT &&value)
const LambdaFunctionAssociations & GetLambdaFunctionAssociations() const
DefaultCacheBehavior & WithCompress(bool value)
void SetViewerProtocolPolicy(ViewerProtocolPolicy value)
DefaultCacheBehavior & WithTargetOriginId(TargetOriginIdT &&value)
void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String