AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CacheBehavior.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
61 {
62 public:
63 AWS_CLOUDFRONT_API CacheBehavior() = default;
64 AWS_CLOUDFRONT_API CacheBehavior(const Aws::Utils::Xml::XmlNode& xmlNode);
65 AWS_CLOUDFRONT_API CacheBehavior& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
66
67 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
68
69
71
86 inline const Aws::String& GetPathPattern() const { return m_pathPattern; }
87 inline bool PathPatternHasBeenSet() const { return m_pathPatternHasBeenSet; }
88 template<typename PathPatternT = Aws::String>
89 void SetPathPattern(PathPatternT&& value) { m_pathPatternHasBeenSet = true; m_pathPattern = std::forward<PathPatternT>(value); }
90 template<typename PathPatternT = Aws::String>
91 CacheBehavior& WithPathPattern(PathPatternT&& value) { SetPathPattern(std::forward<PathPatternT>(value)); return *this;}
93
95
99 inline const Aws::String& GetTargetOriginId() const { return m_targetOriginId; }
100 inline bool TargetOriginIdHasBeenSet() const { return m_targetOriginIdHasBeenSet; }
101 template<typename TargetOriginIdT = Aws::String>
102 void SetTargetOriginId(TargetOriginIdT&& value) { m_targetOriginIdHasBeenSet = true; m_targetOriginId = std::forward<TargetOriginIdT>(value); }
103 template<typename TargetOriginIdT = Aws::String>
104 CacheBehavior& WithTargetOriginId(TargetOriginIdT&& value) { SetTargetOriginId(std::forward<TargetOriginIdT>(value)); return *this;}
106
108
126 inline const TrustedSigners& GetTrustedSigners() const { return m_trustedSigners; }
127 inline bool TrustedSignersHasBeenSet() const { return m_trustedSignersHasBeenSet; }
128 template<typename TrustedSignersT = TrustedSigners>
129 void SetTrustedSigners(TrustedSignersT&& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = std::forward<TrustedSignersT>(value); }
130 template<typename TrustedSignersT = TrustedSigners>
131 CacheBehavior& WithTrustedSigners(TrustedSignersT&& value) { SetTrustedSigners(std::forward<TrustedSignersT>(value)); return *this;}
133
135
146 inline const TrustedKeyGroups& GetTrustedKeyGroups() const { return m_trustedKeyGroups; }
147 inline bool TrustedKeyGroupsHasBeenSet() const { return m_trustedKeyGroupsHasBeenSet; }
148 template<typename TrustedKeyGroupsT = TrustedKeyGroups>
149 void SetTrustedKeyGroups(TrustedKeyGroupsT&& value) { m_trustedKeyGroupsHasBeenSet = true; m_trustedKeyGroups = std::forward<TrustedKeyGroupsT>(value); }
150 template<typename TrustedKeyGroupsT = TrustedKeyGroups>
151 CacheBehavior& WithTrustedKeyGroups(TrustedKeyGroupsT&& value) { SetTrustedKeyGroups(std::forward<TrustedKeyGroupsT>(value)); return *this;}
153
155
179 inline ViewerProtocolPolicy GetViewerProtocolPolicy() const { return m_viewerProtocolPolicy; }
180 inline bool ViewerProtocolPolicyHasBeenSet() const { return m_viewerProtocolPolicyHasBeenSet; }
181 inline void SetViewerProtocolPolicy(ViewerProtocolPolicy value) { m_viewerProtocolPolicyHasBeenSet = true; m_viewerProtocolPolicy = value; }
184
186
187 inline const AllowedMethods& GetAllowedMethods() const { return m_allowedMethods; }
188 inline bool AllowedMethodsHasBeenSet() const { return m_allowedMethodsHasBeenSet; }
189 template<typename AllowedMethodsT = AllowedMethods>
190 void SetAllowedMethods(AllowedMethodsT&& value) { m_allowedMethodsHasBeenSet = true; m_allowedMethods = std::forward<AllowedMethodsT>(value); }
191 template<typename AllowedMethodsT = AllowedMethods>
192 CacheBehavior& WithAllowedMethods(AllowedMethodsT&& value) { SetAllowedMethods(std::forward<AllowedMethodsT>(value)); return *this;}
194
196
209 inline bool GetSmoothStreaming() const { return m_smoothStreaming; }
210 inline bool SmoothStreamingHasBeenSet() const { return m_smoothStreamingHasBeenSet; }
211 inline void SetSmoothStreaming(bool value) { m_smoothStreamingHasBeenSet = true; m_smoothStreaming = value; }
212 inline CacheBehavior& WithSmoothStreaming(bool value) { SetSmoothStreaming(value); return *this;}
214
216
223 inline bool GetCompress() const { return m_compress; }
224 inline bool CompressHasBeenSet() const { return m_compressHasBeenSet; }
225 inline void SetCompress(bool value) { m_compressHasBeenSet = true; m_compress = value; }
226 inline CacheBehavior& WithCompress(bool value) { SetCompress(value); return *this;}
228
230
234 inline const LambdaFunctionAssociations& GetLambdaFunctionAssociations() const { return m_lambdaFunctionAssociations; }
235 inline bool LambdaFunctionAssociationsHasBeenSet() const { return m_lambdaFunctionAssociationsHasBeenSet; }
236 template<typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
237 void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { m_lambdaFunctionAssociationsHasBeenSet = true; m_lambdaFunctionAssociations = std::forward<LambdaFunctionAssociationsT>(value); }
238 template<typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
239 CacheBehavior& WithLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { SetLambdaFunctionAssociations(std::forward<LambdaFunctionAssociationsT>(value)); return *this;}
241
243
248 inline const FunctionAssociations& GetFunctionAssociations() const { return m_functionAssociations; }
249 inline bool FunctionAssociationsHasBeenSet() const { return m_functionAssociationsHasBeenSet; }
250 template<typename FunctionAssociationsT = FunctionAssociations>
251 void SetFunctionAssociations(FunctionAssociationsT&& value) { m_functionAssociationsHasBeenSet = true; m_functionAssociations = std::forward<FunctionAssociationsT>(value); }
252 template<typename FunctionAssociationsT = FunctionAssociations>
253 CacheBehavior& WithFunctionAssociations(FunctionAssociationsT&& value) { SetFunctionAssociations(std::forward<FunctionAssociationsT>(value)); return *this;}
255
257
262 inline const Aws::String& GetFieldLevelEncryptionId() const { return m_fieldLevelEncryptionId; }
263 inline bool FieldLevelEncryptionIdHasBeenSet() const { return m_fieldLevelEncryptionIdHasBeenSet; }
264 template<typename FieldLevelEncryptionIdT = Aws::String>
265 void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { m_fieldLevelEncryptionIdHasBeenSet = true; m_fieldLevelEncryptionId = std::forward<FieldLevelEncryptionIdT>(value); }
266 template<typename FieldLevelEncryptionIdT = Aws::String>
267 CacheBehavior& WithFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { SetFieldLevelEncryptionId(std::forward<FieldLevelEncryptionIdT>(value)); return *this;}
269
271
277 inline const Aws::String& GetRealtimeLogConfigArn() const { return m_realtimeLogConfigArn; }
278 inline bool RealtimeLogConfigArnHasBeenSet() const { return m_realtimeLogConfigArnHasBeenSet; }
279 template<typename RealtimeLogConfigArnT = Aws::String>
280 void SetRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn = std::forward<RealtimeLogConfigArnT>(value); }
281 template<typename RealtimeLogConfigArnT = Aws::String>
282 CacheBehavior& WithRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { SetRealtimeLogConfigArn(std::forward<RealtimeLogConfigArnT>(value)); return *this;}
284
286
297 inline const Aws::String& GetCachePolicyId() const { return m_cachePolicyId; }
298 inline bool CachePolicyIdHasBeenSet() const { return m_cachePolicyIdHasBeenSet; }
299 template<typename CachePolicyIdT = Aws::String>
300 void SetCachePolicyId(CachePolicyIdT&& value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId = std::forward<CachePolicyIdT>(value); }
301 template<typename CachePolicyIdT = Aws::String>
302 CacheBehavior& WithCachePolicyId(CachePolicyIdT&& value) { SetCachePolicyId(std::forward<CachePolicyIdT>(value)); return *this;}
304
306
315 inline const Aws::String& GetOriginRequestPolicyId() const { return m_originRequestPolicyId; }
316 inline bool OriginRequestPolicyIdHasBeenSet() const { return m_originRequestPolicyIdHasBeenSet; }
317 template<typename OriginRequestPolicyIdT = Aws::String>
318 void SetOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId = std::forward<OriginRequestPolicyIdT>(value); }
319 template<typename OriginRequestPolicyIdT = Aws::String>
320 CacheBehavior& WithOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { SetOriginRequestPolicyId(std::forward<OriginRequestPolicyIdT>(value)); return *this;}
322
324
327 inline const Aws::String& GetResponseHeadersPolicyId() const { return m_responseHeadersPolicyId; }
328 inline bool ResponseHeadersPolicyIdHasBeenSet() const { return m_responseHeadersPolicyIdHasBeenSet; }
329 template<typename ResponseHeadersPolicyIdT = Aws::String>
330 void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId = std::forward<ResponseHeadersPolicyIdT>(value); }
331 template<typename ResponseHeadersPolicyIdT = Aws::String>
332 CacheBehavior& WithResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { SetResponseHeadersPolicyId(std::forward<ResponseHeadersPolicyIdT>(value)); return *this;}
334
336
339 inline const GrpcConfig& GetGrpcConfig() const { return m_grpcConfig; }
340 inline bool GrpcConfigHasBeenSet() const { return m_grpcConfigHasBeenSet; }
341 template<typename GrpcConfigT = GrpcConfig>
342 void SetGrpcConfig(GrpcConfigT&& value) { m_grpcConfigHasBeenSet = true; m_grpcConfig = std::forward<GrpcConfigT>(value); }
343 template<typename GrpcConfigT = GrpcConfig>
344 CacheBehavior& WithGrpcConfig(GrpcConfigT&& value) { SetGrpcConfig(std::forward<GrpcConfigT>(value)); return *this;}
346 private:
347
348 Aws::String m_pathPattern;
349 bool m_pathPatternHasBeenSet = false;
350
351 Aws::String m_targetOriginId;
352 bool m_targetOriginIdHasBeenSet = false;
353
354 TrustedSigners m_trustedSigners;
355 bool m_trustedSignersHasBeenSet = false;
356
357 TrustedKeyGroups m_trustedKeyGroups;
358 bool m_trustedKeyGroupsHasBeenSet = false;
359
361 bool m_viewerProtocolPolicyHasBeenSet = false;
362
363 AllowedMethods m_allowedMethods;
364 bool m_allowedMethodsHasBeenSet = false;
365
366 bool m_smoothStreaming{false};
367 bool m_smoothStreamingHasBeenSet = false;
368
369 bool m_compress{false};
370 bool m_compressHasBeenSet = false;
371
372 LambdaFunctionAssociations m_lambdaFunctionAssociations;
373 bool m_lambdaFunctionAssociationsHasBeenSet = false;
374
375 FunctionAssociations m_functionAssociations;
376 bool m_functionAssociationsHasBeenSet = false;
377
378 Aws::String m_fieldLevelEncryptionId;
379 bool m_fieldLevelEncryptionIdHasBeenSet = false;
380
381 Aws::String m_realtimeLogConfigArn;
382 bool m_realtimeLogConfigArnHasBeenSet = false;
383
384 Aws::String m_cachePolicyId;
385 bool m_cachePolicyIdHasBeenSet = false;
386
387 Aws::String m_originRequestPolicyId;
388 bool m_originRequestPolicyIdHasBeenSet = false;
389
390 Aws::String m_responseHeadersPolicyId;
391 bool m_responseHeadersPolicyIdHasBeenSet = false;
392
393 GrpcConfig m_grpcConfig;
394 bool m_grpcConfigHasBeenSet = false;
395 };
396
397} // namespace Model
398} // namespace CloudFront
399} // 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