AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CacheBehavior.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/AllowedMethods.h>
9#include <aws/cloudfront/model/FunctionAssociations.h>
10#include <aws/cloudfront/model/GrpcConfig.h>
11#include <aws/cloudfront/model/LambdaFunctionAssociations.h>
12#include <aws/cloudfront/model/TrustedKeyGroups.h>
13#include <aws/cloudfront/model/TrustedSigners.h>
14#include <aws/cloudfront/model/ViewerProtocolPolicy.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudFront {
26namespace Model {
27
61 public:
62 AWS_CLOUDFRONT_API CacheBehavior() = default;
63 AWS_CLOUDFRONT_API CacheBehavior(const Aws::Utils::Xml::XmlNode& xmlNode);
64 AWS_CLOUDFRONT_API CacheBehavior& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
65
66 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
67
69
84 inline const Aws::String& GetPathPattern() const { return m_pathPattern; }
85 inline bool PathPatternHasBeenSet() const { return m_pathPatternHasBeenSet; }
86 template <typename PathPatternT = Aws::String>
87 void SetPathPattern(PathPatternT&& value) {
88 m_pathPatternHasBeenSet = true;
89 m_pathPattern = std::forward<PathPatternT>(value);
90 }
91 template <typename PathPatternT = Aws::String>
92 CacheBehavior& WithPathPattern(PathPatternT&& value) {
93 SetPathPattern(std::forward<PathPatternT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetTargetOriginId() const { return m_targetOriginId; }
104 inline bool TargetOriginIdHasBeenSet() const { return m_targetOriginIdHasBeenSet; }
105 template <typename TargetOriginIdT = Aws::String>
106 void SetTargetOriginId(TargetOriginIdT&& value) {
107 m_targetOriginIdHasBeenSet = true;
108 m_targetOriginId = std::forward<TargetOriginIdT>(value);
109 }
110 template <typename TargetOriginIdT = Aws::String>
111 CacheBehavior& WithTargetOriginId(TargetOriginIdT&& value) {
112 SetTargetOriginId(std::forward<TargetOriginIdT>(value));
113 return *this;
114 }
116
118
136 inline const TrustedSigners& GetTrustedSigners() const { return m_trustedSigners; }
137 inline bool TrustedSignersHasBeenSet() const { return m_trustedSignersHasBeenSet; }
138 template <typename TrustedSignersT = TrustedSigners>
139 void SetTrustedSigners(TrustedSignersT&& value) {
140 m_trustedSignersHasBeenSet = true;
141 m_trustedSigners = std::forward<TrustedSignersT>(value);
142 }
143 template <typename TrustedSignersT = TrustedSigners>
144 CacheBehavior& WithTrustedSigners(TrustedSignersT&& value) {
145 SetTrustedSigners(std::forward<TrustedSignersT>(value));
146 return *this;
147 }
149
151
162 inline const TrustedKeyGroups& GetTrustedKeyGroups() const { return m_trustedKeyGroups; }
163 inline bool TrustedKeyGroupsHasBeenSet() const { return m_trustedKeyGroupsHasBeenSet; }
164 template <typename TrustedKeyGroupsT = TrustedKeyGroups>
165 void SetTrustedKeyGroups(TrustedKeyGroupsT&& value) {
166 m_trustedKeyGroupsHasBeenSet = true;
167 m_trustedKeyGroups = std::forward<TrustedKeyGroupsT>(value);
168 }
169 template <typename TrustedKeyGroupsT = TrustedKeyGroups>
170 CacheBehavior& WithTrustedKeyGroups(TrustedKeyGroupsT&& value) {
171 SetTrustedKeyGroups(std::forward<TrustedKeyGroupsT>(value));
172 return *this;
173 }
175
177
201 inline ViewerProtocolPolicy GetViewerProtocolPolicy() const { return m_viewerProtocolPolicy; }
202 inline bool ViewerProtocolPolicyHasBeenSet() const { return m_viewerProtocolPolicyHasBeenSet; }
204 m_viewerProtocolPolicyHasBeenSet = true;
205 m_viewerProtocolPolicy = value;
206 }
209 return *this;
210 }
212
214
215 inline const AllowedMethods& GetAllowedMethods() const { return m_allowedMethods; }
216 inline bool AllowedMethodsHasBeenSet() const { return m_allowedMethodsHasBeenSet; }
217 template <typename AllowedMethodsT = AllowedMethods>
218 void SetAllowedMethods(AllowedMethodsT&& value) {
219 m_allowedMethodsHasBeenSet = true;
220 m_allowedMethods = std::forward<AllowedMethodsT>(value);
221 }
222 template <typename AllowedMethodsT = AllowedMethods>
223 CacheBehavior& WithAllowedMethods(AllowedMethodsT&& value) {
224 SetAllowedMethods(std::forward<AllowedMethodsT>(value));
225 return *this;
226 }
228
230
243 inline bool GetSmoothStreaming() const { return m_smoothStreaming; }
244 inline bool SmoothStreamingHasBeenSet() const { return m_smoothStreamingHasBeenSet; }
245 inline void SetSmoothStreaming(bool value) {
246 m_smoothStreamingHasBeenSet = true;
247 m_smoothStreaming = value;
248 }
249 inline CacheBehavior& WithSmoothStreaming(bool value) {
250 SetSmoothStreaming(value);
251 return *this;
252 }
254
256
263 inline bool GetCompress() const { return m_compress; }
264 inline bool CompressHasBeenSet() const { return m_compressHasBeenSet; }
265 inline void SetCompress(bool value) {
266 m_compressHasBeenSet = true;
267 m_compress = value;
268 }
269 inline CacheBehavior& WithCompress(bool value) {
270 SetCompress(value);
271 return *this;
272 }
274
276
280 inline const LambdaFunctionAssociations& GetLambdaFunctionAssociations() const { return m_lambdaFunctionAssociations; }
281 inline bool LambdaFunctionAssociationsHasBeenSet() const { return m_lambdaFunctionAssociationsHasBeenSet; }
282 template <typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
283 void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) {
284 m_lambdaFunctionAssociationsHasBeenSet = true;
285 m_lambdaFunctionAssociations = std::forward<LambdaFunctionAssociationsT>(value);
286 }
287 template <typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
288 CacheBehavior& WithLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) {
289 SetLambdaFunctionAssociations(std::forward<LambdaFunctionAssociationsT>(value));
290 return *this;
291 }
293
295
300 inline const FunctionAssociations& GetFunctionAssociations() const { return m_functionAssociations; }
301 inline bool FunctionAssociationsHasBeenSet() const { return m_functionAssociationsHasBeenSet; }
302 template <typename FunctionAssociationsT = FunctionAssociations>
303 void SetFunctionAssociations(FunctionAssociationsT&& value) {
304 m_functionAssociationsHasBeenSet = true;
305 m_functionAssociations = std::forward<FunctionAssociationsT>(value);
306 }
307 template <typename FunctionAssociationsT = FunctionAssociations>
308 CacheBehavior& WithFunctionAssociations(FunctionAssociationsT&& value) {
309 SetFunctionAssociations(std::forward<FunctionAssociationsT>(value));
310 return *this;
311 }
313
315
320 inline const Aws::String& GetFieldLevelEncryptionId() const { return m_fieldLevelEncryptionId; }
321 inline bool FieldLevelEncryptionIdHasBeenSet() const { return m_fieldLevelEncryptionIdHasBeenSet; }
322 template <typename FieldLevelEncryptionIdT = Aws::String>
323 void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) {
324 m_fieldLevelEncryptionIdHasBeenSet = true;
325 m_fieldLevelEncryptionId = std::forward<FieldLevelEncryptionIdT>(value);
326 }
327 template <typename FieldLevelEncryptionIdT = Aws::String>
328 CacheBehavior& WithFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) {
329 SetFieldLevelEncryptionId(std::forward<FieldLevelEncryptionIdT>(value));
330 return *this;
331 }
333
335
341 inline const Aws::String& GetRealtimeLogConfigArn() const { return m_realtimeLogConfigArn; }
342 inline bool RealtimeLogConfigArnHasBeenSet() const { return m_realtimeLogConfigArnHasBeenSet; }
343 template <typename RealtimeLogConfigArnT = Aws::String>
344 void SetRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) {
345 m_realtimeLogConfigArnHasBeenSet = true;
346 m_realtimeLogConfigArn = std::forward<RealtimeLogConfigArnT>(value);
347 }
348 template <typename RealtimeLogConfigArnT = Aws::String>
349 CacheBehavior& WithRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) {
350 SetRealtimeLogConfigArn(std::forward<RealtimeLogConfigArnT>(value));
351 return *this;
352 }
354
356
367 inline const Aws::String& GetCachePolicyId() const { return m_cachePolicyId; }
368 inline bool CachePolicyIdHasBeenSet() const { return m_cachePolicyIdHasBeenSet; }
369 template <typename CachePolicyIdT = Aws::String>
370 void SetCachePolicyId(CachePolicyIdT&& value) {
371 m_cachePolicyIdHasBeenSet = true;
372 m_cachePolicyId = std::forward<CachePolicyIdT>(value);
373 }
374 template <typename CachePolicyIdT = Aws::String>
375 CacheBehavior& WithCachePolicyId(CachePolicyIdT&& value) {
376 SetCachePolicyId(std::forward<CachePolicyIdT>(value));
377 return *this;
378 }
380
382
391 inline const Aws::String& GetOriginRequestPolicyId() const { return m_originRequestPolicyId; }
392 inline bool OriginRequestPolicyIdHasBeenSet() const { return m_originRequestPolicyIdHasBeenSet; }
393 template <typename OriginRequestPolicyIdT = Aws::String>
394 void SetOriginRequestPolicyId(OriginRequestPolicyIdT&& value) {
395 m_originRequestPolicyIdHasBeenSet = true;
396 m_originRequestPolicyId = std::forward<OriginRequestPolicyIdT>(value);
397 }
398 template <typename OriginRequestPolicyIdT = Aws::String>
399 CacheBehavior& WithOriginRequestPolicyId(OriginRequestPolicyIdT&& value) {
400 SetOriginRequestPolicyId(std::forward<OriginRequestPolicyIdT>(value));
401 return *this;
402 }
404
406
409 inline const Aws::String& GetResponseHeadersPolicyId() const { return m_responseHeadersPolicyId; }
410 inline bool ResponseHeadersPolicyIdHasBeenSet() const { return m_responseHeadersPolicyIdHasBeenSet; }
411 template <typename ResponseHeadersPolicyIdT = Aws::String>
412 void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) {
413 m_responseHeadersPolicyIdHasBeenSet = true;
414 m_responseHeadersPolicyId = std::forward<ResponseHeadersPolicyIdT>(value);
415 }
416 template <typename ResponseHeadersPolicyIdT = Aws::String>
417 CacheBehavior& WithResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) {
418 SetResponseHeadersPolicyId(std::forward<ResponseHeadersPolicyIdT>(value));
419 return *this;
420 }
422
424
427 inline const GrpcConfig& GetGrpcConfig() const { return m_grpcConfig; }
428 inline bool GrpcConfigHasBeenSet() const { return m_grpcConfigHasBeenSet; }
429 template <typename GrpcConfigT = GrpcConfig>
430 void SetGrpcConfig(GrpcConfigT&& value) {
431 m_grpcConfigHasBeenSet = true;
432 m_grpcConfig = std::forward<GrpcConfigT>(value);
433 }
434 template <typename GrpcConfigT = GrpcConfig>
435 CacheBehavior& WithGrpcConfig(GrpcConfigT&& value) {
436 SetGrpcConfig(std::forward<GrpcConfigT>(value));
437 return *this;
438 }
440 private:
441 Aws::String m_pathPattern;
442
443 Aws::String m_targetOriginId;
444
445 TrustedSigners m_trustedSigners;
446
447 TrustedKeyGroups m_trustedKeyGroups;
448
450
451 AllowedMethods m_allowedMethods;
452
453 bool m_smoothStreaming{false};
454
455 bool m_compress{false};
456
457 LambdaFunctionAssociations m_lambdaFunctionAssociations;
458
459 FunctionAssociations m_functionAssociations;
460
461 Aws::String m_fieldLevelEncryptionId;
462
463 Aws::String m_realtimeLogConfigArn;
464
465 Aws::String m_cachePolicyId;
466
467 Aws::String m_originRequestPolicyId;
468
469 Aws::String m_responseHeadersPolicyId;
470
471 GrpcConfig m_grpcConfig;
472 bool m_pathPatternHasBeenSet = false;
473 bool m_targetOriginIdHasBeenSet = false;
474 bool m_trustedSignersHasBeenSet = false;
475 bool m_trustedKeyGroupsHasBeenSet = false;
476 bool m_viewerProtocolPolicyHasBeenSet = false;
477 bool m_allowedMethodsHasBeenSet = false;
478 bool m_smoothStreamingHasBeenSet = false;
479 bool m_compressHasBeenSet = false;
480 bool m_lambdaFunctionAssociationsHasBeenSet = false;
481 bool m_functionAssociationsHasBeenSet = false;
482 bool m_fieldLevelEncryptionIdHasBeenSet = false;
483 bool m_realtimeLogConfigArnHasBeenSet = false;
484 bool m_cachePolicyIdHasBeenSet = false;
485 bool m_originRequestPolicyIdHasBeenSet = false;
486 bool m_responseHeadersPolicyIdHasBeenSet = false;
487 bool m_grpcConfigHasBeenSet = false;
488};
489
490} // namespace Model
491} // namespace CloudFront
492} // namespace Aws
void SetPathPattern(PathPatternT &&value)
const AllowedMethods & GetAllowedMethods() const
void SetTrustedSigners(TrustedSignersT &&value)
CacheBehavior & WithSmoothStreaming(bool value)
CacheBehavior & WithAllowedMethods(AllowedMethodsT &&value)
void SetViewerProtocolPolicy(ViewerProtocolPolicy value)
CacheBehavior & WithLambdaFunctionAssociations(LambdaFunctionAssociationsT &&value)
CacheBehavior & WithPathPattern(PathPatternT &&value)
void SetOriginRequestPolicyId(OriginRequestPolicyIdT &&value)
void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT &&value)
CacheBehavior & WithOriginRequestPolicyId(OriginRequestPolicyIdT &&value)
void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT &&value)
CacheBehavior & WithCachePolicyId(CachePolicyIdT &&value)
CacheBehavior & WithTargetOriginId(TargetOriginIdT &&value)
void SetCachePolicyId(CachePolicyIdT &&value)
CacheBehavior & WithTrustedKeyGroups(TrustedKeyGroupsT &&value)
const Aws::String & GetResponseHeadersPolicyId() const
void SetTrustedKeyGroups(TrustedKeyGroupsT &&value)
const Aws::String & GetRealtimeLogConfigArn() const
void SetFunctionAssociations(FunctionAssociationsT &&value)
ViewerProtocolPolicy GetViewerProtocolPolicy() const
CacheBehavior & WithFunctionAssociations(FunctionAssociationsT &&value)
void SetGrpcConfig(GrpcConfigT &&value)
void SetRealtimeLogConfigArn(RealtimeLogConfigArnT &&value)
void SetAllowedMethods(AllowedMethodsT &&value)
const Aws::String & GetCachePolicyId() const
const Aws::String & GetFieldLevelEncryptionId() const
const Aws::String & GetTargetOriginId() const
CacheBehavior & WithGrpcConfig(GrpcConfigT &&value)
CacheBehavior & WithRealtimeLogConfigArn(RealtimeLogConfigArnT &&value)
CacheBehavior & WithResponseHeadersPolicyId(ResponseHeadersPolicyIdT &&value)
const GrpcConfig & GetGrpcConfig() const
const Aws::String & GetPathPattern() const
AWS_CLOUDFRONT_API CacheBehavior(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheBehavior & WithTrustedSigners(TrustedSignersT &&value)
const FunctionAssociations & GetFunctionAssociations() const
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const LambdaFunctionAssociations & GetLambdaFunctionAssociations() const
CacheBehavior & WithViewerProtocolPolicy(ViewerProtocolPolicy value)
const TrustedKeyGroups & GetTrustedKeyGroups() const
const Aws::String & GetOriginRequestPolicyId() const
CacheBehavior & WithCompress(bool value)
const TrustedSigners & GetTrustedSigners() const
CacheBehavior & WithFieldLevelEncryptionId(FieldLevelEncryptionIdT &&value)
AWS_CLOUDFRONT_API CacheBehavior()=default
void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT &&value)
void SetTargetOriginId(TargetOriginIdT &&value)
AWS_CLOUDFRONT_API CacheBehavior & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String