AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <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
40 {
41 public:
42 AWS_CLOUDFRONT_API DefaultCacheBehavior();
43 AWS_CLOUDFRONT_API DefaultCacheBehavior(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_CLOUDFRONT_API DefaultCacheBehavior& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47
48
50
54 inline const Aws::String& GetTargetOriginId() const{ return m_targetOriginId; }
55 inline bool TargetOriginIdHasBeenSet() const { return m_targetOriginIdHasBeenSet; }
56 inline void SetTargetOriginId(const Aws::String& value) { m_targetOriginIdHasBeenSet = true; m_targetOriginId = value; }
57 inline void SetTargetOriginId(Aws::String&& value) { m_targetOriginIdHasBeenSet = true; m_targetOriginId = std::move(value); }
58 inline void SetTargetOriginId(const char* value) { m_targetOriginIdHasBeenSet = true; m_targetOriginId.assign(value); }
59 inline DefaultCacheBehavior& WithTargetOriginId(const Aws::String& value) { SetTargetOriginId(value); return *this;}
60 inline DefaultCacheBehavior& WithTargetOriginId(Aws::String&& value) { SetTargetOriginId(std::move(value)); return *this;}
61 inline DefaultCacheBehavior& WithTargetOriginId(const char* value) { SetTargetOriginId(value); return *this;}
63
65
78 inline const TrustedSigners& GetTrustedSigners() const{ return m_trustedSigners; }
79 inline bool TrustedSignersHasBeenSet() const { return m_trustedSignersHasBeenSet; }
80 inline void SetTrustedSigners(const TrustedSigners& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = value; }
81 inline void SetTrustedSigners(TrustedSigners&& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = std::move(value); }
82 inline DefaultCacheBehavior& WithTrustedSigners(const TrustedSigners& value) { SetTrustedSigners(value); return *this;}
83 inline DefaultCacheBehavior& WithTrustedSigners(TrustedSigners&& value) { SetTrustedSigners(std::move(value)); return *this;}
85
87
98 inline const TrustedKeyGroups& GetTrustedKeyGroups() const{ return m_trustedKeyGroups; }
99 inline bool TrustedKeyGroupsHasBeenSet() const { return m_trustedKeyGroupsHasBeenSet; }
100 inline void SetTrustedKeyGroups(const TrustedKeyGroups& value) { m_trustedKeyGroupsHasBeenSet = true; m_trustedKeyGroups = value; }
101 inline void SetTrustedKeyGroups(TrustedKeyGroups&& value) { m_trustedKeyGroupsHasBeenSet = true; m_trustedKeyGroups = std::move(value); }
103 inline DefaultCacheBehavior& WithTrustedKeyGroups(TrustedKeyGroups&& value) { SetTrustedKeyGroups(std::move(value)); return *this;}
105
107
131 inline const ViewerProtocolPolicy& GetViewerProtocolPolicy() const{ return m_viewerProtocolPolicy; }
132 inline bool ViewerProtocolPolicyHasBeenSet() const { return m_viewerProtocolPolicyHasBeenSet; }
133 inline void SetViewerProtocolPolicy(const ViewerProtocolPolicy& value) { m_viewerProtocolPolicyHasBeenSet = true; m_viewerProtocolPolicy = value; }
134 inline void SetViewerProtocolPolicy(ViewerProtocolPolicy&& value) { m_viewerProtocolPolicyHasBeenSet = true; m_viewerProtocolPolicy = std::move(value); }
138
140
141 inline const AllowedMethods& GetAllowedMethods() const{ return m_allowedMethods; }
142 inline bool AllowedMethodsHasBeenSet() const { return m_allowedMethodsHasBeenSet; }
143 inline void SetAllowedMethods(const AllowedMethods& value) { m_allowedMethodsHasBeenSet = true; m_allowedMethods = value; }
144 inline void SetAllowedMethods(AllowedMethods&& value) { m_allowedMethodsHasBeenSet = true; m_allowedMethods = std::move(value); }
145 inline DefaultCacheBehavior& WithAllowedMethods(const AllowedMethods& value) { SetAllowedMethods(value); return *this;}
146 inline DefaultCacheBehavior& WithAllowedMethods(AllowedMethods&& value) { SetAllowedMethods(std::move(value)); return *this;}
148
150
158 inline bool GetSmoothStreaming() const{ return m_smoothStreaming; }
159 inline bool SmoothStreamingHasBeenSet() const { return m_smoothStreamingHasBeenSet; }
160 inline void SetSmoothStreaming(bool value) { m_smoothStreamingHasBeenSet = true; m_smoothStreaming = value; }
161 inline DefaultCacheBehavior& WithSmoothStreaming(bool value) { SetSmoothStreaming(value); return *this;}
163
165
172 inline bool GetCompress() const{ return m_compress; }
173 inline bool CompressHasBeenSet() const { return m_compressHasBeenSet; }
174 inline void SetCompress(bool value) { m_compressHasBeenSet = true; m_compress = value; }
175 inline DefaultCacheBehavior& WithCompress(bool value) { SetCompress(value); return *this;}
177
179
183 inline const LambdaFunctionAssociations& GetLambdaFunctionAssociations() const{ return m_lambdaFunctionAssociations; }
184 inline bool LambdaFunctionAssociationsHasBeenSet() const { return m_lambdaFunctionAssociationsHasBeenSet; }
185 inline void SetLambdaFunctionAssociations(const LambdaFunctionAssociations& value) { m_lambdaFunctionAssociationsHasBeenSet = true; m_lambdaFunctionAssociations = value; }
186 inline void SetLambdaFunctionAssociations(LambdaFunctionAssociations&& value) { m_lambdaFunctionAssociationsHasBeenSet = true; m_lambdaFunctionAssociations = std::move(value); }
190
192
197 inline const FunctionAssociations& GetFunctionAssociations() const{ return m_functionAssociations; }
198 inline bool FunctionAssociationsHasBeenSet() const { return m_functionAssociationsHasBeenSet; }
199 inline void SetFunctionAssociations(const FunctionAssociations& value) { m_functionAssociationsHasBeenSet = true; m_functionAssociations = value; }
200 inline void SetFunctionAssociations(FunctionAssociations&& value) { m_functionAssociationsHasBeenSet = true; m_functionAssociations = std::move(value); }
204
206
211 inline const Aws::String& GetFieldLevelEncryptionId() const{ return m_fieldLevelEncryptionId; }
212 inline bool FieldLevelEncryptionIdHasBeenSet() const { return m_fieldLevelEncryptionIdHasBeenSet; }
213 inline void SetFieldLevelEncryptionId(const Aws::String& value) { m_fieldLevelEncryptionIdHasBeenSet = true; m_fieldLevelEncryptionId = value; }
214 inline void SetFieldLevelEncryptionId(Aws::String&& value) { m_fieldLevelEncryptionIdHasBeenSet = true; m_fieldLevelEncryptionId = std::move(value); }
215 inline void SetFieldLevelEncryptionId(const char* value) { m_fieldLevelEncryptionIdHasBeenSet = true; m_fieldLevelEncryptionId.assign(value); }
218 inline DefaultCacheBehavior& WithFieldLevelEncryptionId(const char* value) { SetFieldLevelEncryptionId(value); return *this;}
220
222
228 inline const Aws::String& GetRealtimeLogConfigArn() const{ return m_realtimeLogConfigArn; }
229 inline bool RealtimeLogConfigArnHasBeenSet() const { return m_realtimeLogConfigArnHasBeenSet; }
230 inline void SetRealtimeLogConfigArn(const Aws::String& value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn = value; }
231 inline void SetRealtimeLogConfigArn(Aws::String&& value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn = std::move(value); }
232 inline void SetRealtimeLogConfigArn(const char* value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn.assign(value); }
234 inline DefaultCacheBehavior& WithRealtimeLogConfigArn(Aws::String&& value) { SetRealtimeLogConfigArn(std::move(value)); return *this;}
235 inline DefaultCacheBehavior& WithRealtimeLogConfigArn(const char* value) { SetRealtimeLogConfigArn(value); return *this;}
237
239
250 inline const Aws::String& GetCachePolicyId() const{ return m_cachePolicyId; }
251 inline bool CachePolicyIdHasBeenSet() const { return m_cachePolicyIdHasBeenSet; }
252 inline void SetCachePolicyId(const Aws::String& value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId = value; }
253 inline void SetCachePolicyId(Aws::String&& value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId = std::move(value); }
254 inline void SetCachePolicyId(const char* value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId.assign(value); }
255 inline DefaultCacheBehavior& WithCachePolicyId(const Aws::String& value) { SetCachePolicyId(value); return *this;}
256 inline DefaultCacheBehavior& WithCachePolicyId(Aws::String&& value) { SetCachePolicyId(std::move(value)); return *this;}
257 inline DefaultCacheBehavior& WithCachePolicyId(const char* value) { SetCachePolicyId(value); return *this;}
259
261
270 inline const Aws::String& GetOriginRequestPolicyId() const{ return m_originRequestPolicyId; }
271 inline bool OriginRequestPolicyIdHasBeenSet() const { return m_originRequestPolicyIdHasBeenSet; }
272 inline void SetOriginRequestPolicyId(const Aws::String& value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId = value; }
273 inline void SetOriginRequestPolicyId(Aws::String&& value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId = std::move(value); }
274 inline void SetOriginRequestPolicyId(const char* value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId.assign(value); }
276 inline DefaultCacheBehavior& WithOriginRequestPolicyId(Aws::String&& value) { SetOriginRequestPolicyId(std::move(value)); return *this;}
277 inline DefaultCacheBehavior& WithOriginRequestPolicyId(const char* value) { SetOriginRequestPolicyId(value); return *this;}
279
281
284 inline const Aws::String& GetResponseHeadersPolicyId() const{ return m_responseHeadersPolicyId; }
285 inline bool ResponseHeadersPolicyIdHasBeenSet() const { return m_responseHeadersPolicyIdHasBeenSet; }
286 inline void SetResponseHeadersPolicyId(const Aws::String& value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId = value; }
287 inline void SetResponseHeadersPolicyId(Aws::String&& value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId = std::move(value); }
288 inline void SetResponseHeadersPolicyId(const char* value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId.assign(value); }
291 inline DefaultCacheBehavior& WithResponseHeadersPolicyId(const char* value) { SetResponseHeadersPolicyId(value); return *this;}
293 private:
294
295 Aws::String m_targetOriginId;
296 bool m_targetOriginIdHasBeenSet = false;
297
298 TrustedSigners m_trustedSigners;
299 bool m_trustedSignersHasBeenSet = false;
300
301 TrustedKeyGroups m_trustedKeyGroups;
302 bool m_trustedKeyGroupsHasBeenSet = false;
303
304 ViewerProtocolPolicy m_viewerProtocolPolicy;
305 bool m_viewerProtocolPolicyHasBeenSet = false;
306
307 AllowedMethods m_allowedMethods;
308 bool m_allowedMethodsHasBeenSet = false;
309
310 bool m_smoothStreaming;
311 bool m_smoothStreamingHasBeenSet = false;
312
313 bool m_compress;
314 bool m_compressHasBeenSet = false;
315
316 LambdaFunctionAssociations m_lambdaFunctionAssociations;
317 bool m_lambdaFunctionAssociationsHasBeenSet = false;
318
319 FunctionAssociations m_functionAssociations;
320 bool m_functionAssociationsHasBeenSet = false;
321
322 Aws::String m_fieldLevelEncryptionId;
323 bool m_fieldLevelEncryptionIdHasBeenSet = false;
324
325 Aws::String m_realtimeLogConfigArn;
326 bool m_realtimeLogConfigArnHasBeenSet = false;
327
328 Aws::String m_cachePolicyId;
329 bool m_cachePolicyIdHasBeenSet = false;
330
331 Aws::String m_originRequestPolicyId;
332 bool m_originRequestPolicyIdHasBeenSet = false;
333
334 Aws::String m_responseHeadersPolicyId;
335 bool m_responseHeadersPolicyIdHasBeenSet = false;
336 };
337
338} // namespace Model
339} // namespace CloudFront
340} // namespace Aws
DefaultCacheBehavior & WithViewerProtocolPolicy(ViewerProtocolPolicy &&value)
DefaultCacheBehavior & WithFieldLevelEncryptionId(const char *value)
DefaultCacheBehavior & WithLambdaFunctionAssociations(LambdaFunctionAssociations &&value)
DefaultCacheBehavior & WithOriginRequestPolicyId(const char *value)
void SetViewerProtocolPolicy(ViewerProtocolPolicy &&value)
void SetLambdaFunctionAssociations(LambdaFunctionAssociations &&value)
DefaultCacheBehavior & WithCachePolicyId(Aws::String &&value)
const FunctionAssociations & GetFunctionAssociations() const
DefaultCacheBehavior & WithResponseHeadersPolicyId(const Aws::String &value)
DefaultCacheBehavior & WithTrustedKeyGroups(TrustedKeyGroups &&value)
DefaultCacheBehavior & WithRealtimeLogConfigArn(const char *value)
DefaultCacheBehavior & WithFieldLevelEncryptionId(Aws::String &&value)
void SetTrustedSigners(const TrustedSigners &value)
DefaultCacheBehavior & WithOriginRequestPolicyId(const Aws::String &value)
DefaultCacheBehavior & WithRealtimeLogConfigArn(Aws::String &&value)
DefaultCacheBehavior & WithResponseHeadersPolicyId(Aws::String &&value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
DefaultCacheBehavior & WithRealtimeLogConfigArn(const Aws::String &value)
DefaultCacheBehavior & WithViewerProtocolPolicy(const ViewerProtocolPolicy &value)
void SetRealtimeLogConfigArn(const Aws::String &value)
DefaultCacheBehavior & WithTargetOriginId(const char *value)
void SetFieldLevelEncryptionId(const Aws::String &value)
void SetTargetOriginId(const Aws::String &value)
DefaultCacheBehavior & WithTrustedSigners(const TrustedSigners &value)
DefaultCacheBehavior & WithTargetOriginId(Aws::String &&value)
DefaultCacheBehavior & WithLambdaFunctionAssociations(const LambdaFunctionAssociations &value)
void SetFunctionAssociations(const FunctionAssociations &value)
void SetAllowedMethods(const AllowedMethods &value)
DefaultCacheBehavior & WithTargetOriginId(const Aws::String &value)
DefaultCacheBehavior & WithSmoothStreaming(bool value)
const ViewerProtocolPolicy & GetViewerProtocolPolicy() const
DefaultCacheBehavior & WithTrustedKeyGroups(const TrustedKeyGroups &value)
void SetLambdaFunctionAssociations(const LambdaFunctionAssociations &value)
DefaultCacheBehavior & WithResponseHeadersPolicyId(const char *value)
DefaultCacheBehavior & WithFunctionAssociations(FunctionAssociations &&value)
void SetResponseHeadersPolicyId(const Aws::String &value)
DefaultCacheBehavior & WithCachePolicyId(const char *value)
void SetViewerProtocolPolicy(const ViewerProtocolPolicy &value)
const TrustedKeyGroups & GetTrustedKeyGroups() const
DefaultCacheBehavior & WithTrustedSigners(TrustedSigners &&value)
DefaultCacheBehavior & WithAllowedMethods(const AllowedMethods &value)
void SetTrustedKeyGroups(const TrustedKeyGroups &value)
void SetFunctionAssociations(FunctionAssociations &&value)
void SetTrustedKeyGroups(TrustedKeyGroups &&value)
DefaultCacheBehavior & WithFunctionAssociations(const FunctionAssociations &value)
AWS_CLOUDFRONT_API DefaultCacheBehavior & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const TrustedSigners & GetTrustedSigners() const
void SetOriginRequestPolicyId(const Aws::String &value)
DefaultCacheBehavior & WithFieldLevelEncryptionId(const Aws::String &value)
AWS_CLOUDFRONT_API DefaultCacheBehavior(const Aws::Utils::Xml::XmlNode &xmlNode)
DefaultCacheBehavior & WithAllowedMethods(AllowedMethods &&value)
const LambdaFunctionAssociations & GetLambdaFunctionAssociations() const
DefaultCacheBehavior & WithCachePolicyId(const Aws::String &value)
DefaultCacheBehavior & WithCompress(bool value)
DefaultCacheBehavior & WithOriginRequestPolicyId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String