AWS SDK for C++

AWS SDK for C++ Version 1.11.634

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 <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
46 {
47 public:
48 AWS_CLOUDFRONT_API DefaultCacheBehavior() = default;
49 AWS_CLOUDFRONT_API DefaultCacheBehavior(const Aws::Utils::Xml::XmlNode& xmlNode);
50 AWS_CLOUDFRONT_API DefaultCacheBehavior& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
51
52 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
53
54
56
60 inline const Aws::String& GetTargetOriginId() const { return m_targetOriginId; }
61 inline bool TargetOriginIdHasBeenSet() const { return m_targetOriginIdHasBeenSet; }
62 template<typename TargetOriginIdT = Aws::String>
63 void SetTargetOriginId(TargetOriginIdT&& value) { m_targetOriginIdHasBeenSet = true; m_targetOriginId = std::forward<TargetOriginIdT>(value); }
64 template<typename TargetOriginIdT = Aws::String>
65 DefaultCacheBehavior& WithTargetOriginId(TargetOriginIdT&& value) { SetTargetOriginId(std::forward<TargetOriginIdT>(value)); return *this;}
67
69
87 inline const TrustedSigners& GetTrustedSigners() const { return m_trustedSigners; }
88 inline bool TrustedSignersHasBeenSet() const { return m_trustedSignersHasBeenSet; }
89 template<typename TrustedSignersT = TrustedSigners>
90 void SetTrustedSigners(TrustedSignersT&& value) { m_trustedSignersHasBeenSet = true; m_trustedSigners = std::forward<TrustedSignersT>(value); }
91 template<typename TrustedSignersT = TrustedSigners>
92 DefaultCacheBehavior& WithTrustedSigners(TrustedSignersT&& value) { SetTrustedSigners(std::forward<TrustedSignersT>(value)); return *this;}
94
96
107 inline const TrustedKeyGroups& GetTrustedKeyGroups() const { return m_trustedKeyGroups; }
108 inline bool TrustedKeyGroupsHasBeenSet() const { return m_trustedKeyGroupsHasBeenSet; }
109 template<typename TrustedKeyGroupsT = TrustedKeyGroups>
110 void SetTrustedKeyGroups(TrustedKeyGroupsT&& value) { m_trustedKeyGroupsHasBeenSet = true; m_trustedKeyGroups = std::forward<TrustedKeyGroupsT>(value); }
111 template<typename TrustedKeyGroupsT = TrustedKeyGroups>
112 DefaultCacheBehavior& WithTrustedKeyGroups(TrustedKeyGroupsT&& value) { SetTrustedKeyGroups(std::forward<TrustedKeyGroupsT>(value)); return *this;}
114
116
140 inline ViewerProtocolPolicy GetViewerProtocolPolicy() const { return m_viewerProtocolPolicy; }
141 inline bool ViewerProtocolPolicyHasBeenSet() const { return m_viewerProtocolPolicyHasBeenSet; }
142 inline void SetViewerProtocolPolicy(ViewerProtocolPolicy value) { m_viewerProtocolPolicyHasBeenSet = true; m_viewerProtocolPolicy = value; }
145
147
148 inline const AllowedMethods& GetAllowedMethods() const { return m_allowedMethods; }
149 inline bool AllowedMethodsHasBeenSet() const { return m_allowedMethodsHasBeenSet; }
150 template<typename AllowedMethodsT = AllowedMethods>
151 void SetAllowedMethods(AllowedMethodsT&& value) { m_allowedMethodsHasBeenSet = true; m_allowedMethods = std::forward<AllowedMethodsT>(value); }
152 template<typename AllowedMethodsT = AllowedMethods>
153 DefaultCacheBehavior& WithAllowedMethods(AllowedMethodsT&& value) { SetAllowedMethods(std::forward<AllowedMethodsT>(value)); return *this;}
155
157
170 inline bool GetSmoothStreaming() const { return m_smoothStreaming; }
171 inline bool SmoothStreamingHasBeenSet() const { return m_smoothStreamingHasBeenSet; }
172 inline void SetSmoothStreaming(bool value) { m_smoothStreamingHasBeenSet = true; m_smoothStreaming = value; }
173 inline DefaultCacheBehavior& WithSmoothStreaming(bool value) { SetSmoothStreaming(value); return *this;}
175
177
184 inline bool GetCompress() const { return m_compress; }
185 inline bool CompressHasBeenSet() const { return m_compressHasBeenSet; }
186 inline void SetCompress(bool value) { m_compressHasBeenSet = true; m_compress = value; }
187 inline DefaultCacheBehavior& WithCompress(bool value) { SetCompress(value); return *this;}
189
191
195 inline const LambdaFunctionAssociations& GetLambdaFunctionAssociations() const { return m_lambdaFunctionAssociations; }
196 inline bool LambdaFunctionAssociationsHasBeenSet() const { return m_lambdaFunctionAssociationsHasBeenSet; }
197 template<typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
198 void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { m_lambdaFunctionAssociationsHasBeenSet = true; m_lambdaFunctionAssociations = std::forward<LambdaFunctionAssociationsT>(value); }
199 template<typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
200 DefaultCacheBehavior& WithLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { SetLambdaFunctionAssociations(std::forward<LambdaFunctionAssociationsT>(value)); return *this;}
202
204
209 inline const FunctionAssociations& GetFunctionAssociations() const { return m_functionAssociations; }
210 inline bool FunctionAssociationsHasBeenSet() const { return m_functionAssociationsHasBeenSet; }
211 template<typename FunctionAssociationsT = FunctionAssociations>
212 void SetFunctionAssociations(FunctionAssociationsT&& value) { m_functionAssociationsHasBeenSet = true; m_functionAssociations = std::forward<FunctionAssociationsT>(value); }
213 template<typename FunctionAssociationsT = FunctionAssociations>
214 DefaultCacheBehavior& WithFunctionAssociations(FunctionAssociationsT&& value) { SetFunctionAssociations(std::forward<FunctionAssociationsT>(value)); return *this;}
216
218
223 inline const Aws::String& GetFieldLevelEncryptionId() const { return m_fieldLevelEncryptionId; }
224 inline bool FieldLevelEncryptionIdHasBeenSet() const { return m_fieldLevelEncryptionIdHasBeenSet; }
225 template<typename FieldLevelEncryptionIdT = Aws::String>
226 void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { m_fieldLevelEncryptionIdHasBeenSet = true; m_fieldLevelEncryptionId = std::forward<FieldLevelEncryptionIdT>(value); }
227 template<typename FieldLevelEncryptionIdT = Aws::String>
228 DefaultCacheBehavior& WithFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { SetFieldLevelEncryptionId(std::forward<FieldLevelEncryptionIdT>(value)); return *this;}
230
232
238 inline const Aws::String& GetRealtimeLogConfigArn() const { return m_realtimeLogConfigArn; }
239 inline bool RealtimeLogConfigArnHasBeenSet() const { return m_realtimeLogConfigArnHasBeenSet; }
240 template<typename RealtimeLogConfigArnT = Aws::String>
241 void SetRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { m_realtimeLogConfigArnHasBeenSet = true; m_realtimeLogConfigArn = std::forward<RealtimeLogConfigArnT>(value); }
242 template<typename RealtimeLogConfigArnT = Aws::String>
243 DefaultCacheBehavior& WithRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { SetRealtimeLogConfigArn(std::forward<RealtimeLogConfigArnT>(value)); return *this;}
245
247
258 inline const Aws::String& GetCachePolicyId() const { return m_cachePolicyId; }
259 inline bool CachePolicyIdHasBeenSet() const { return m_cachePolicyIdHasBeenSet; }
260 template<typename CachePolicyIdT = Aws::String>
261 void SetCachePolicyId(CachePolicyIdT&& value) { m_cachePolicyIdHasBeenSet = true; m_cachePolicyId = std::forward<CachePolicyIdT>(value); }
262 template<typename CachePolicyIdT = Aws::String>
263 DefaultCacheBehavior& WithCachePolicyId(CachePolicyIdT&& value) { SetCachePolicyId(std::forward<CachePolicyIdT>(value)); return *this;}
265
267
276 inline const Aws::String& GetOriginRequestPolicyId() const { return m_originRequestPolicyId; }
277 inline bool OriginRequestPolicyIdHasBeenSet() const { return m_originRequestPolicyIdHasBeenSet; }
278 template<typename OriginRequestPolicyIdT = Aws::String>
279 void SetOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { m_originRequestPolicyIdHasBeenSet = true; m_originRequestPolicyId = std::forward<OriginRequestPolicyIdT>(value); }
280 template<typename OriginRequestPolicyIdT = Aws::String>
281 DefaultCacheBehavior& WithOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { SetOriginRequestPolicyId(std::forward<OriginRequestPolicyIdT>(value)); return *this;}
283
285
288 inline const Aws::String& GetResponseHeadersPolicyId() const { return m_responseHeadersPolicyId; }
289 inline bool ResponseHeadersPolicyIdHasBeenSet() const { return m_responseHeadersPolicyIdHasBeenSet; }
290 template<typename ResponseHeadersPolicyIdT = Aws::String>
291 void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { m_responseHeadersPolicyIdHasBeenSet = true; m_responseHeadersPolicyId = std::forward<ResponseHeadersPolicyIdT>(value); }
292 template<typename ResponseHeadersPolicyIdT = Aws::String>
293 DefaultCacheBehavior& WithResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { SetResponseHeadersPolicyId(std::forward<ResponseHeadersPolicyIdT>(value)); return *this;}
295
297
300 inline const GrpcConfig& GetGrpcConfig() const { return m_grpcConfig; }
301 inline bool GrpcConfigHasBeenSet() const { return m_grpcConfigHasBeenSet; }
302 template<typename GrpcConfigT = GrpcConfig>
303 void SetGrpcConfig(GrpcConfigT&& value) { m_grpcConfigHasBeenSet = true; m_grpcConfig = std::forward<GrpcConfigT>(value); }
304 template<typename GrpcConfigT = GrpcConfig>
305 DefaultCacheBehavior& WithGrpcConfig(GrpcConfigT&& value) { SetGrpcConfig(std::forward<GrpcConfigT>(value)); return *this;}
307 private:
308
309 Aws::String m_targetOriginId;
310 bool m_targetOriginIdHasBeenSet = false;
311
312 TrustedSigners m_trustedSigners;
313 bool m_trustedSignersHasBeenSet = false;
314
315 TrustedKeyGroups m_trustedKeyGroups;
316 bool m_trustedKeyGroupsHasBeenSet = false;
317
319 bool m_viewerProtocolPolicyHasBeenSet = false;
320
321 AllowedMethods m_allowedMethods;
322 bool m_allowedMethodsHasBeenSet = false;
323
324 bool m_smoothStreaming{false};
325 bool m_smoothStreamingHasBeenSet = false;
326
327 bool m_compress{false};
328 bool m_compressHasBeenSet = false;
329
330 LambdaFunctionAssociations m_lambdaFunctionAssociations;
331 bool m_lambdaFunctionAssociationsHasBeenSet = false;
332
333 FunctionAssociations m_functionAssociations;
334 bool m_functionAssociationsHasBeenSet = false;
335
336 Aws::String m_fieldLevelEncryptionId;
337 bool m_fieldLevelEncryptionIdHasBeenSet = false;
338
339 Aws::String m_realtimeLogConfigArn;
340 bool m_realtimeLogConfigArnHasBeenSet = false;
341
342 Aws::String m_cachePolicyId;
343 bool m_cachePolicyIdHasBeenSet = false;
344
345 Aws::String m_originRequestPolicyId;
346 bool m_originRequestPolicyIdHasBeenSet = false;
347
348 Aws::String m_responseHeadersPolicyId;
349 bool m_responseHeadersPolicyIdHasBeenSet = false;
350
351 GrpcConfig m_grpcConfig;
352 bool m_grpcConfigHasBeenSet = false;
353 };
354
355} // namespace Model
356} // namespace CloudFront
357} // namespace Aws
void SetRealtimeLogConfigArn(RealtimeLogConfigArnT &&value)
DefaultCacheBehavior & WithCachePolicyId(CachePolicyIdT &&value)
void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT &&value)
DefaultCacheBehavior & WithLambdaFunctionAssociations(LambdaFunctionAssociationsT &&value)
const FunctionAssociations & GetFunctionAssociations() const
DefaultCacheBehavior & WithRealtimeLogConfigArn(RealtimeLogConfigArnT &&value)
DefaultCacheBehavior & WithTrustedKeyGroups(TrustedKeyGroupsT &&value)
DefaultCacheBehavior & WithAllowedMethods(AllowedMethodsT &&value)
DefaultCacheBehavior & WithViewerProtocolPolicy(ViewerProtocolPolicy value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_CLOUDFRONT_API DefaultCacheBehavior()=default
void SetTrustedKeyGroups(TrustedKeyGroupsT &&value)
DefaultCacheBehavior & WithSmoothStreaming(bool value)
void SetOriginRequestPolicyId(OriginRequestPolicyIdT &&value)
DefaultCacheBehavior & WithGrpcConfig(GrpcConfigT &&value)
const TrustedKeyGroups & GetTrustedKeyGroups() const
DefaultCacheBehavior & WithResponseHeadersPolicyId(ResponseHeadersPolicyIdT &&value)
void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT &&value)
AWS_CLOUDFRONT_API DefaultCacheBehavior & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const TrustedSigners & GetTrustedSigners() const
DefaultCacheBehavior & WithTrustedSigners(TrustedSignersT &&value)
DefaultCacheBehavior & WithFieldLevelEncryptionId(FieldLevelEncryptionIdT &&value)
DefaultCacheBehavior & WithFunctionAssociations(FunctionAssociationsT &&value)
AWS_CLOUDFRONT_API DefaultCacheBehavior(const Aws::Utils::Xml::XmlNode &xmlNode)
DefaultCacheBehavior & WithOriginRequestPolicyId(OriginRequestPolicyIdT &&value)
void SetFunctionAssociations(FunctionAssociationsT &&value)
const LambdaFunctionAssociations & GetLambdaFunctionAssociations() const
DefaultCacheBehavior & WithCompress(bool value)
void SetViewerProtocolPolicy(ViewerProtocolPolicy value)
DefaultCacheBehavior & WithTargetOriginId(TargetOriginIdT &&value)
void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String