AWS SDK for C++

AWS SDK for C++ Version 1.11.634

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
65 {
66 public:
67 AWS_CLOUDFRONT_API CacheBehavior() = default;
68 AWS_CLOUDFRONT_API CacheBehavior(const Aws::Utils::Xml::XmlNode& xmlNode);
69 AWS_CLOUDFRONT_API CacheBehavior& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
70
71 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
72
73
75
90 inline const Aws::String& GetPathPattern() const { return m_pathPattern; }
91 inline bool PathPatternHasBeenSet() const { return m_pathPatternHasBeenSet; }
92 template<typename PathPatternT = Aws::String>
93 void SetPathPattern(PathPatternT&& value) { m_pathPatternHasBeenSet = true; m_pathPattern = std::forward<PathPatternT>(value); }
94 template<typename PathPatternT = Aws::String>
95 CacheBehavior& WithPathPattern(PathPatternT&& value) { SetPathPattern(std::forward<PathPatternT>(value)); return *this;}
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) { m_targetOriginIdHasBeenSet = true; m_targetOriginId = std::forward<TargetOriginIdT>(value); }
107 template<typename TargetOriginIdT = Aws::String>
108 CacheBehavior& WithTargetOriginId(TargetOriginIdT&& value) { SetTargetOriginId(std::forward<TargetOriginIdT>(value)); return *this;}
110
112
130 inline const TrustedSigners& GetTrustedSigners() const { return m_trustedSigners; }
131 inline bool TrustedSignersHasBeenSet() const { return m_trustedSignersHasBeenSet; }
132 template<typename TrustedSignersT = TrustedSigners>
133 void SetTrustedSigners(TrustedSignersT&& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = std::forward<TrustedSignersT>(value); }
134 template<typename TrustedSignersT = TrustedSigners>
135 CacheBehavior& WithTrustedSigners(TrustedSignersT&& value) { SetTrustedSigners(std::forward<TrustedSignersT>(value)); return *this;}
137
139
150 inline const TrustedKeyGroups& GetTrustedKeyGroups() const { return m_trustedKeyGroups; }
151 inline bool TrustedKeyGroupsHasBeenSet() const { return m_trustedKeyGroupsHasBeenSet; }
152 template<typename TrustedKeyGroupsT = TrustedKeyGroups>
153 void SetTrustedKeyGroups(TrustedKeyGroupsT&& value) { m_trustedKeyGroupsHasBeenSet = true; m_trustedKeyGroups = std::forward<TrustedKeyGroupsT>(value); }
154 template<typename TrustedKeyGroupsT = TrustedKeyGroups>
155 CacheBehavior& WithTrustedKeyGroups(TrustedKeyGroupsT&& value) { SetTrustedKeyGroups(std::forward<TrustedKeyGroupsT>(value)); return *this;}
157
159
183 inline ViewerProtocolPolicy GetViewerProtocolPolicy() const { return m_viewerProtocolPolicy; }
184 inline bool ViewerProtocolPolicyHasBeenSet() const { return m_viewerProtocolPolicyHasBeenSet; }
185 inline void SetViewerProtocolPolicy(ViewerProtocolPolicy value) { m_viewerProtocolPolicyHasBeenSet = true; m_viewerProtocolPolicy = value; }
188
190
191 inline const AllowedMethods& GetAllowedMethods() const { return m_allowedMethods; }
192 inline bool AllowedMethodsHasBeenSet() const { return m_allowedMethodsHasBeenSet; }
193 template<typename AllowedMethodsT = AllowedMethods>
194 void SetAllowedMethods(AllowedMethodsT&& value) { m_allowedMethodsHasBeenSet = true; m_allowedMethods = std::forward<AllowedMethodsT>(value); }
195 template<typename AllowedMethodsT = AllowedMethods>
196 CacheBehavior& WithAllowedMethods(AllowedMethodsT&& value) { SetAllowedMethods(std::forward<AllowedMethodsT>(value)); return *this;}
198
200
213 inline bool GetSmoothStreaming() const { return m_smoothStreaming; }
214 inline bool SmoothStreamingHasBeenSet() const { return m_smoothStreamingHasBeenSet; }
215 inline void SetSmoothStreaming(bool value) { m_smoothStreamingHasBeenSet = true; m_smoothStreaming = value; }
216 inline CacheBehavior& WithSmoothStreaming(bool value) { SetSmoothStreaming(value); return *this;}
218
220
227 inline bool GetCompress() const { return m_compress; }
228 inline bool CompressHasBeenSet() const { return m_compressHasBeenSet; }
229 inline void SetCompress(bool value) { m_compressHasBeenSet = true; m_compress = value; }
230 inline CacheBehavior& WithCompress(bool value) { SetCompress(value); return *this;}
232
234
238 inline const LambdaFunctionAssociations& GetLambdaFunctionAssociations() const { return m_lambdaFunctionAssociations; }
239 inline bool LambdaFunctionAssociationsHasBeenSet() const { return m_lambdaFunctionAssociationsHasBeenSet; }
240 template<typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
241 void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { m_lambdaFunctionAssociationsHasBeenSet = true; m_lambdaFunctionAssociations = std::forward<LambdaFunctionAssociationsT>(value); }
242 template<typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
243 CacheBehavior& WithLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { SetLambdaFunctionAssociations(std::forward<LambdaFunctionAssociationsT>(value)); return *this;}
245
247
252 inline const FunctionAssociations& GetFunctionAssociations() const { return m_functionAssociations; }
253 inline bool FunctionAssociationsHasBeenSet() const { return m_functionAssociationsHasBeenSet; }
254 template<typename FunctionAssociationsT = FunctionAssociations>
255 void SetFunctionAssociations(FunctionAssociationsT&& value) { m_functionAssociationsHasBeenSet = true; m_functionAssociations = std::forward<FunctionAssociationsT>(value); }
256 template<typename FunctionAssociationsT = FunctionAssociations>
257 CacheBehavior& WithFunctionAssociations(FunctionAssociationsT&& value) { SetFunctionAssociations(std::forward<FunctionAssociationsT>(value)); return *this;}
259
261
266 inline const Aws::String& GetFieldLevelEncryptionId() const { return m_fieldLevelEncryptionId; }
267 inline bool FieldLevelEncryptionIdHasBeenSet() const { return m_fieldLevelEncryptionIdHasBeenSet; }
268 template<typename FieldLevelEncryptionIdT = Aws::String>
269 void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { m_fieldLevelEncryptionIdHasBeenSet = true; m_fieldLevelEncryptionId = std::forward<FieldLevelEncryptionIdT>(value); }
270 template<typename FieldLevelEncryptionIdT = Aws::String>
271 CacheBehavior& WithFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { SetFieldLevelEncryptionId(std::forward<FieldLevelEncryptionIdT>(value)); return *this;}
273
275
281 inline const Aws::String& GetRealtimeLogConfigArn() const { return m_realtimeLogConfigArn; }
282 inline bool RealtimeLogConfigArnHasBeenSet() const { return m_realtimeLogConfigArnHasBeenSet; }
283 template<typename RealtimeLogConfigArnT = Aws::String>
284 void SetRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn = std::forward<RealtimeLogConfigArnT>(value); }
285 template<typename RealtimeLogConfigArnT = Aws::String>
286 CacheBehavior& WithRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { SetRealtimeLogConfigArn(std::forward<RealtimeLogConfigArnT>(value)); return *this;}
288
290
301 inline const Aws::String& GetCachePolicyId() const { return m_cachePolicyId; }
302 inline bool CachePolicyIdHasBeenSet() const { return m_cachePolicyIdHasBeenSet; }
303 template<typename CachePolicyIdT = Aws::String>
304 void SetCachePolicyId(CachePolicyIdT&& value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId = std::forward<CachePolicyIdT>(value); }
305 template<typename CachePolicyIdT = Aws::String>
306 CacheBehavior& WithCachePolicyId(CachePolicyIdT&& value) { SetCachePolicyId(std::forward<CachePolicyIdT>(value)); return *this;}
308
310
319 inline const Aws::String& GetOriginRequestPolicyId() const { return m_originRequestPolicyId; }
320 inline bool OriginRequestPolicyIdHasBeenSet() const { return m_originRequestPolicyIdHasBeenSet; }
321 template<typename OriginRequestPolicyIdT = Aws::String>
322 void SetOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId = std::forward<OriginRequestPolicyIdT>(value); }
323 template<typename OriginRequestPolicyIdT = Aws::String>
324 CacheBehavior& WithOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { SetOriginRequestPolicyId(std::forward<OriginRequestPolicyIdT>(value)); return *this;}
326
328
331 inline const Aws::String& GetResponseHeadersPolicyId() const { return m_responseHeadersPolicyId; }
332 inline bool ResponseHeadersPolicyIdHasBeenSet() const { return m_responseHeadersPolicyIdHasBeenSet; }
333 template<typename ResponseHeadersPolicyIdT = Aws::String>
334 void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId = std::forward<ResponseHeadersPolicyIdT>(value); }
335 template<typename ResponseHeadersPolicyIdT = Aws::String>
336 CacheBehavior& WithResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { SetResponseHeadersPolicyId(std::forward<ResponseHeadersPolicyIdT>(value)); return *this;}
338
340
343 inline const GrpcConfig& GetGrpcConfig() const { return m_grpcConfig; }
344 inline bool GrpcConfigHasBeenSet() const { return m_grpcConfigHasBeenSet; }
345 template<typename GrpcConfigT = GrpcConfig>
346 void SetGrpcConfig(GrpcConfigT&& value) { m_grpcConfigHasBeenSet = true; m_grpcConfig = std::forward<GrpcConfigT>(value); }
347 template<typename GrpcConfigT = GrpcConfig>
348 CacheBehavior& WithGrpcConfig(GrpcConfigT&& value) { SetGrpcConfig(std::forward<GrpcConfigT>(value)); return *this;}
350 private:
351
352 Aws::String m_pathPattern;
353 bool m_pathPatternHasBeenSet = false;
354
355 Aws::String m_targetOriginId;
356 bool m_targetOriginIdHasBeenSet = false;
357
358 TrustedSigners m_trustedSigners;
359 bool m_trustedSignersHasBeenSet = false;
360
361 TrustedKeyGroups m_trustedKeyGroups;
362 bool m_trustedKeyGroupsHasBeenSet = false;
363
365 bool m_viewerProtocolPolicyHasBeenSet = false;
366
367 AllowedMethods m_allowedMethods;
368 bool m_allowedMethodsHasBeenSet = false;
369
370 bool m_smoothStreaming{false};
371 bool m_smoothStreamingHasBeenSet = false;
372
373 bool m_compress{false};
374 bool m_compressHasBeenSet = false;
375
376 LambdaFunctionAssociations m_lambdaFunctionAssociations;
377 bool m_lambdaFunctionAssociationsHasBeenSet = false;
378
379 FunctionAssociations m_functionAssociations;
380 bool m_functionAssociationsHasBeenSet = false;
381
382 Aws::String m_fieldLevelEncryptionId;
383 bool m_fieldLevelEncryptionIdHasBeenSet = false;
384
385 Aws::String m_realtimeLogConfigArn;
386 bool m_realtimeLogConfigArnHasBeenSet = false;
387
388 Aws::String m_cachePolicyId;
389 bool m_cachePolicyIdHasBeenSet = false;
390
391 Aws::String m_originRequestPolicyId;
392 bool m_originRequestPolicyIdHasBeenSet = false;
393
394 Aws::String m_responseHeadersPolicyId;
395 bool m_responseHeadersPolicyIdHasBeenSet = false;
396
397 GrpcConfig m_grpcConfig;
398 bool m_grpcConfigHasBeenSet = false;
399 };
400
401} // namespace Model
402} // namespace CloudFront
403} // 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