AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace CloudFront
27{
28namespace Model
29{
30
60 {
61 public:
62 AWS_CLOUDFRONT_API CacheBehavior();
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
68
70
85 inline const Aws::String& GetPathPattern() const{ return m_pathPattern; }
86 inline bool PathPatternHasBeenSet() const { return m_pathPatternHasBeenSet; }
87 inline void SetPathPattern(const Aws::String& value) { m_pathPatternHasBeenSet = true; m_pathPattern = value; }
88 inline void SetPathPattern(Aws::String&& value) { m_pathPatternHasBeenSet = true; m_pathPattern = std::move(value); }
89 inline void SetPathPattern(const char* value) { m_pathPatternHasBeenSet = true; m_pathPattern.assign(value); }
90 inline CacheBehavior& WithPathPattern(const Aws::String& value) { SetPathPattern(value); return *this;}
91 inline CacheBehavior& WithPathPattern(Aws::String&& value) { SetPathPattern(std::move(value)); return *this;}
92 inline CacheBehavior& WithPathPattern(const char* value) { SetPathPattern(value); return *this;}
94
96
100 inline const Aws::String& GetTargetOriginId() const{ return m_targetOriginId; }
101 inline bool TargetOriginIdHasBeenSet() const { return m_targetOriginIdHasBeenSet; }
102 inline void SetTargetOriginId(const Aws::String& value) { m_targetOriginIdHasBeenSet = true; m_targetOriginId = value; }
103 inline void SetTargetOriginId(Aws::String&& value) { m_targetOriginIdHasBeenSet = true; m_targetOriginId = std::move(value); }
104 inline void SetTargetOriginId(const char* value) { m_targetOriginIdHasBeenSet = true; m_targetOriginId.assign(value); }
105 inline CacheBehavior& WithTargetOriginId(const Aws::String& value) { SetTargetOriginId(value); return *this;}
106 inline CacheBehavior& WithTargetOriginId(Aws::String&& value) { SetTargetOriginId(std::move(value)); return *this;}
107 inline CacheBehavior& WithTargetOriginId(const char* value) { SetTargetOriginId(value); return *this;}
109
111
124 inline const TrustedSigners& GetTrustedSigners() const{ return m_trustedSigners; }
125 inline bool TrustedSignersHasBeenSet() const { return m_trustedSignersHasBeenSet; }
126 inline void SetTrustedSigners(const TrustedSigners& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = value; }
127 inline void SetTrustedSigners(TrustedSigners&& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = std::move(value); }
128 inline CacheBehavior& WithTrustedSigners(const TrustedSigners& value) { SetTrustedSigners(value); return *this;}
129 inline CacheBehavior& WithTrustedSigners(TrustedSigners&& value) { SetTrustedSigners(std::move(value)); return *this;}
131
133
144 inline const TrustedKeyGroups& GetTrustedKeyGroups() const{ return m_trustedKeyGroups; }
145 inline bool TrustedKeyGroupsHasBeenSet() const { return m_trustedKeyGroupsHasBeenSet; }
146 inline void SetTrustedKeyGroups(const TrustedKeyGroups& value) { m_trustedKeyGroupsHasBeenSet = true; m_trustedKeyGroups = value; }
147 inline void SetTrustedKeyGroups(TrustedKeyGroups&& value) { m_trustedKeyGroupsHasBeenSet = true; m_trustedKeyGroups = std::move(value); }
148 inline CacheBehavior& WithTrustedKeyGroups(const TrustedKeyGroups& value) { SetTrustedKeyGroups(value); return *this;}
149 inline CacheBehavior& WithTrustedKeyGroups(TrustedKeyGroups&& value) { SetTrustedKeyGroups(std::move(value)); return *this;}
151
153
177 inline const ViewerProtocolPolicy& GetViewerProtocolPolicy() const{ return m_viewerProtocolPolicy; }
178 inline bool ViewerProtocolPolicyHasBeenSet() const { return m_viewerProtocolPolicyHasBeenSet; }
179 inline void SetViewerProtocolPolicy(const ViewerProtocolPolicy& value) { m_viewerProtocolPolicyHasBeenSet = true; m_viewerProtocolPolicy = value; }
180 inline void SetViewerProtocolPolicy(ViewerProtocolPolicy&& value) { m_viewerProtocolPolicyHasBeenSet = true; m_viewerProtocolPolicy = std::move(value); }
182 inline CacheBehavior& WithViewerProtocolPolicy(ViewerProtocolPolicy&& value) { SetViewerProtocolPolicy(std::move(value)); return *this;}
184
186
187 inline const AllowedMethods& GetAllowedMethods() const{ return m_allowedMethods; }
188 inline bool AllowedMethodsHasBeenSet() const { return m_allowedMethodsHasBeenSet; }
189 inline void SetAllowedMethods(const AllowedMethods& value) { m_allowedMethodsHasBeenSet = true; m_allowedMethods = value; }
190 inline void SetAllowedMethods(AllowedMethods&& value) { m_allowedMethodsHasBeenSet = true; m_allowedMethods = std::move(value); }
191 inline CacheBehavior& WithAllowedMethods(const AllowedMethods& value) { SetAllowedMethods(value); return *this;}
192 inline CacheBehavior& WithAllowedMethods(AllowedMethods&& value) { SetAllowedMethods(std::move(value)); return *this;}
194
196
204 inline bool GetSmoothStreaming() const{ return m_smoothStreaming; }
205 inline bool SmoothStreamingHasBeenSet() const { return m_smoothStreamingHasBeenSet; }
206 inline void SetSmoothStreaming(bool value) { m_smoothStreamingHasBeenSet = true; m_smoothStreaming = value; }
207 inline CacheBehavior& WithSmoothStreaming(bool value) { SetSmoothStreaming(value); return *this;}
209
211
218 inline bool GetCompress() const{ return m_compress; }
219 inline bool CompressHasBeenSet() const { return m_compressHasBeenSet; }
220 inline void SetCompress(bool value) { m_compressHasBeenSet = true; m_compress = value; }
221 inline CacheBehavior& WithCompress(bool value) { SetCompress(value); return *this;}
223
225
229 inline const LambdaFunctionAssociations& GetLambdaFunctionAssociations() const{ return m_lambdaFunctionAssociations; }
230 inline bool LambdaFunctionAssociationsHasBeenSet() const { return m_lambdaFunctionAssociationsHasBeenSet; }
231 inline void SetLambdaFunctionAssociations(const LambdaFunctionAssociations& value) { m_lambdaFunctionAssociationsHasBeenSet = true; m_lambdaFunctionAssociations = value; }
232 inline void SetLambdaFunctionAssociations(LambdaFunctionAssociations&& value) { m_lambdaFunctionAssociationsHasBeenSet = true; m_lambdaFunctionAssociations = std::move(value); }
236
238
243 inline const FunctionAssociations& GetFunctionAssociations() const{ return m_functionAssociations; }
244 inline bool FunctionAssociationsHasBeenSet() const { return m_functionAssociationsHasBeenSet; }
245 inline void SetFunctionAssociations(const FunctionAssociations& value) { m_functionAssociationsHasBeenSet = true; m_functionAssociations = value; }
246 inline void SetFunctionAssociations(FunctionAssociations&& value) { m_functionAssociationsHasBeenSet = true; m_functionAssociations = std::move(value); }
248 inline CacheBehavior& WithFunctionAssociations(FunctionAssociations&& value) { SetFunctionAssociations(std::move(value)); return *this;}
250
252
257 inline const Aws::String& GetFieldLevelEncryptionId() const{ return m_fieldLevelEncryptionId; }
258 inline bool FieldLevelEncryptionIdHasBeenSet() const { return m_fieldLevelEncryptionIdHasBeenSet; }
259 inline void SetFieldLevelEncryptionId(const Aws::String& value) { m_fieldLevelEncryptionIdHasBeenSet = true; m_fieldLevelEncryptionId = value; }
260 inline void SetFieldLevelEncryptionId(Aws::String&& value) { m_fieldLevelEncryptionIdHasBeenSet = true; m_fieldLevelEncryptionId = std::move(value); }
261 inline void SetFieldLevelEncryptionId(const char* value) { m_fieldLevelEncryptionIdHasBeenSet = true; m_fieldLevelEncryptionId.assign(value); }
263 inline CacheBehavior& WithFieldLevelEncryptionId(Aws::String&& value) { SetFieldLevelEncryptionId(std::move(value)); return *this;}
264 inline CacheBehavior& WithFieldLevelEncryptionId(const char* value) { SetFieldLevelEncryptionId(value); return *this;}
266
268
274 inline const Aws::String& GetRealtimeLogConfigArn() const{ return m_realtimeLogConfigArn; }
275 inline bool RealtimeLogConfigArnHasBeenSet() const { return m_realtimeLogConfigArnHasBeenSet; }
276 inline void SetRealtimeLogConfigArn(const Aws::String& value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn = value; }
277 inline void SetRealtimeLogConfigArn(Aws::String&& value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn = std::move(value); }
278 inline void SetRealtimeLogConfigArn(const char* value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn.assign(value); }
279 inline CacheBehavior& WithRealtimeLogConfigArn(const Aws::String& value) { SetRealtimeLogConfigArn(value); return *this;}
280 inline CacheBehavior& WithRealtimeLogConfigArn(Aws::String&& value) { SetRealtimeLogConfigArn(std::move(value)); return *this;}
281 inline CacheBehavior& WithRealtimeLogConfigArn(const char* value) { SetRealtimeLogConfigArn(value); return *this;}
283
285
296 inline const Aws::String& GetCachePolicyId() const{ return m_cachePolicyId; }
297 inline bool CachePolicyIdHasBeenSet() const { return m_cachePolicyIdHasBeenSet; }
298 inline void SetCachePolicyId(const Aws::String& value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId = value; }
299 inline void SetCachePolicyId(Aws::String&& value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId = std::move(value); }
300 inline void SetCachePolicyId(const char* value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId.assign(value); }
301 inline CacheBehavior& WithCachePolicyId(const Aws::String& value) { SetCachePolicyId(value); return *this;}
302 inline CacheBehavior& WithCachePolicyId(Aws::String&& value) { SetCachePolicyId(std::move(value)); return *this;}
303 inline CacheBehavior& WithCachePolicyId(const char* value) { SetCachePolicyId(value); return *this;}
305
307
316 inline const Aws::String& GetOriginRequestPolicyId() const{ return m_originRequestPolicyId; }
317 inline bool OriginRequestPolicyIdHasBeenSet() const { return m_originRequestPolicyIdHasBeenSet; }
318 inline void SetOriginRequestPolicyId(const Aws::String& value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId = value; }
319 inline void SetOriginRequestPolicyId(Aws::String&& value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId = std::move(value); }
320 inline void SetOriginRequestPolicyId(const char* value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId.assign(value); }
322 inline CacheBehavior& WithOriginRequestPolicyId(Aws::String&& value) { SetOriginRequestPolicyId(std::move(value)); return *this;}
323 inline CacheBehavior& WithOriginRequestPolicyId(const char* value) { SetOriginRequestPolicyId(value); return *this;}
325
327
330 inline const Aws::String& GetResponseHeadersPolicyId() const{ return m_responseHeadersPolicyId; }
331 inline bool ResponseHeadersPolicyIdHasBeenSet() const { return m_responseHeadersPolicyIdHasBeenSet; }
332 inline void SetResponseHeadersPolicyId(const Aws::String& value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId = value; }
333 inline void SetResponseHeadersPolicyId(Aws::String&& value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId = std::move(value); }
334 inline void SetResponseHeadersPolicyId(const char* value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId.assign(value); }
336 inline CacheBehavior& WithResponseHeadersPolicyId(Aws::String&& value) { SetResponseHeadersPolicyId(std::move(value)); return *this;}
337 inline CacheBehavior& WithResponseHeadersPolicyId(const char* value) { SetResponseHeadersPolicyId(value); return *this;}
339 private:
340
341 Aws::String m_pathPattern;
342 bool m_pathPatternHasBeenSet = false;
343
344 Aws::String m_targetOriginId;
345 bool m_targetOriginIdHasBeenSet = false;
346
347 TrustedSigners m_trustedSigners;
348 bool m_trustedSignersHasBeenSet = false;
349
350 TrustedKeyGroups m_trustedKeyGroups;
351 bool m_trustedKeyGroupsHasBeenSet = false;
352
353 ViewerProtocolPolicy m_viewerProtocolPolicy;
354 bool m_viewerProtocolPolicyHasBeenSet = false;
355
356 AllowedMethods m_allowedMethods;
357 bool m_allowedMethodsHasBeenSet = false;
358
359 bool m_smoothStreaming;
360 bool m_smoothStreamingHasBeenSet = false;
361
362 bool m_compress;
363 bool m_compressHasBeenSet = false;
364
365 LambdaFunctionAssociations m_lambdaFunctionAssociations;
366 bool m_lambdaFunctionAssociationsHasBeenSet = false;
367
368 FunctionAssociations m_functionAssociations;
369 bool m_functionAssociationsHasBeenSet = false;
370
371 Aws::String m_fieldLevelEncryptionId;
372 bool m_fieldLevelEncryptionIdHasBeenSet = false;
373
374 Aws::String m_realtimeLogConfigArn;
375 bool m_realtimeLogConfigArnHasBeenSet = false;
376
377 Aws::String m_cachePolicyId;
378 bool m_cachePolicyIdHasBeenSet = false;
379
380 Aws::String m_originRequestPolicyId;
381 bool m_originRequestPolicyIdHasBeenSet = false;
382
383 Aws::String m_responseHeadersPolicyId;
384 bool m_responseHeadersPolicyIdHasBeenSet = false;
385 };
386
387} // namespace Model
388} // namespace CloudFront
389} // namespace Aws
const AllowedMethods & GetAllowedMethods() const
CacheBehavior & WithAllowedMethods(const AllowedMethods &value)
CacheBehavior & WithRealtimeLogConfigArn(Aws::String &&value)
void SetViewerProtocolPolicy(const ViewerProtocolPolicy &value)
CacheBehavior & WithFieldLevelEncryptionId(Aws::String &&value)
CacheBehavior & WithSmoothStreaming(bool value)
void SetFieldLevelEncryptionId(const char *value)
void SetPathPattern(Aws::String &&value)
CacheBehavior & WithLambdaFunctionAssociations(const LambdaFunctionAssociations &value)
void SetFunctionAssociations(FunctionAssociations &&value)
void SetTargetOriginId(Aws::String &&value)
void SetLambdaFunctionAssociations(LambdaFunctionAssociations &&value)
void SetResponseHeadersPolicyId(const Aws::String &value)
CacheBehavior & WithTargetOriginId(const Aws::String &value)
CacheBehavior & WithOriginRequestPolicyId(Aws::String &&value)
void SetTrustedKeyGroups(const TrustedKeyGroups &value)
CacheBehavior & WithCachePolicyId(const char *value)
void SetResponseHeadersPolicyId(Aws::String &&value)
CacheBehavior & WithOriginRequestPolicyId(const char *value)
CacheBehavior & WithFieldLevelEncryptionId(const char *value)
CacheBehavior & WithCachePolicyId(const Aws::String &value)
void SetCachePolicyId(const char *value)
CacheBehavior & WithViewerProtocolPolicy(ViewerProtocolPolicy &&value)
void SetTargetOriginId(const char *value)
CacheBehavior & WithFunctionAssociations(FunctionAssociations &&value)
CacheBehavior & WithLambdaFunctionAssociations(LambdaFunctionAssociations &&value)
void SetFieldLevelEncryptionId(const Aws::String &value)
void SetFunctionAssociations(const FunctionAssociations &value)
void SetOriginRequestPolicyId(const Aws::String &value)
CacheBehavior & WithFieldLevelEncryptionId(const Aws::String &value)
const Aws::String & GetResponseHeadersPolicyId() const
void SetCachePolicyId(const Aws::String &value)
void SetCachePolicyId(Aws::String &&value)
const Aws::String & GetRealtimeLogConfigArn() const
CacheBehavior & WithTrustedSigners(const TrustedSigners &value)
CacheBehavior & WithAllowedMethods(AllowedMethods &&value)
CacheBehavior & WithTrustedSigners(TrustedSigners &&value)
void SetTrustedKeyGroups(TrustedKeyGroups &&value)
const Aws::String & GetCachePolicyId() const
CacheBehavior & WithResponseHeadersPolicyId(const char *value)
const Aws::String & GetFieldLevelEncryptionId() const
void SetLambdaFunctionAssociations(const LambdaFunctionAssociations &value)
void SetPathPattern(const char *value)
CacheBehavior & WithPathPattern(const Aws::String &value)
CacheBehavior & WithTargetOriginId(Aws::String &&value)
const Aws::String & GetTargetOriginId() const
CacheBehavior & WithViewerProtocolPolicy(const ViewerProtocolPolicy &value)
void SetTrustedSigners(const TrustedSigners &value)
void SetViewerProtocolPolicy(ViewerProtocolPolicy &&value)
void SetRealtimeLogConfigArn(const char *value)
const Aws::String & GetPathPattern() const
AWS_CLOUDFRONT_API CacheBehavior(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResponseHeadersPolicyId(const char *value)
void SetTrustedSigners(TrustedSigners &&value)
const FunctionAssociations & GetFunctionAssociations() const
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
CacheBehavior & WithRealtimeLogConfigArn(const char *value)
const LambdaFunctionAssociations & GetLambdaFunctionAssociations() const
CacheBehavior & WithPathPattern(Aws::String &&value)
void SetOriginRequestPolicyId(Aws::String &&value)
const TrustedKeyGroups & GetTrustedKeyGroups() const
CacheBehavior & WithPathPattern(const char *value)
const Aws::String & GetOriginRequestPolicyId() const
void SetPathPattern(const Aws::String &value)
CacheBehavior & WithCompress(bool value)
void SetAllowedMethods(const AllowedMethods &value)
const TrustedSigners & GetTrustedSigners() const
CacheBehavior & WithFunctionAssociations(const FunctionAssociations &value)
CacheBehavior & WithResponseHeadersPolicyId(Aws::String &&value)
void SetTargetOriginId(const Aws::String &value)
CacheBehavior & WithRealtimeLogConfigArn(const Aws::String &value)
void SetOriginRequestPolicyId(const char *value)
void SetFieldLevelEncryptionId(Aws::String &&value)
CacheBehavior & WithTrustedKeyGroups(TrustedKeyGroups &&value)
void SetAllowedMethods(AllowedMethods &&value)
CacheBehavior & WithResponseHeadersPolicyId(const Aws::String &value)
void SetRealtimeLogConfigArn(const Aws::String &value)
CacheBehavior & WithTargetOriginId(const char *value)
CacheBehavior & WithTrustedKeyGroups(const TrustedKeyGroups &value)
CacheBehavior & WithCachePolicyId(Aws::String &&value)
AWS_CLOUDFRONT_API CacheBehavior & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
CacheBehavior & WithOriginRequestPolicyId(const Aws::String &value)
void SetRealtimeLogConfigArn(Aws::String &&value)
const ViewerProtocolPolicy & GetViewerProtocolPolicy() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String