7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/cloudfront/model/AllowedMethods.h>
9#include <aws/cloudfront/model/FunctionAssociations.h>
10#include <aws/cloudfront/model/GrpcConfig.h>
11#include <aws/cloudfront/model/LambdaFunctionAssociations.h>
12#include <aws/cloudfront/model/TrustedKeyGroups.h>
13#include <aws/cloudfront/model/TrustedSigners.h>
14#include <aws/cloudfront/model/ViewerProtocolPolicy.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
86 template <
typename PathPatternT = Aws::String>
88 m_pathPatternHasBeenSet =
true;
89 m_pathPattern = std::forward<PathPatternT>(value);
91 template <
typename PathPatternT = Aws::String>
105 template <
typename TargetOriginIdT = Aws::String>
107 m_targetOriginIdHasBeenSet =
true;
108 m_targetOriginId = std::forward<TargetOriginIdT>(value);
110 template <
typename TargetOriginIdT = Aws::String>
138 template <
typename TrustedSignersT = TrustedSigners>
140 m_trustedSignersHasBeenSet =
true;
141 m_trustedSigners = std::forward<TrustedSignersT>(value);
143 template <
typename TrustedSignersT = TrustedSigners>
164 template <
typename TrustedKeyGroupsT = TrustedKeyGroups>
166 m_trustedKeyGroupsHasBeenSet =
true;
167 m_trustedKeyGroups = std::forward<TrustedKeyGroupsT>(value);
169 template <
typename TrustedKeyGroupsT = TrustedKeyGroups>
204 m_viewerProtocolPolicyHasBeenSet =
true;
205 m_viewerProtocolPolicy = value;
217 template <
typename AllowedMethodsT = AllowedMethods>
219 m_allowedMethodsHasBeenSet =
true;
220 m_allowedMethods = std::forward<AllowedMethodsT>(value);
222 template <
typename AllowedMethodsT = AllowedMethods>
246 m_smoothStreamingHasBeenSet =
true;
247 m_smoothStreaming = value;
266 m_compressHasBeenSet =
true;
282 template <
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
284 m_lambdaFunctionAssociationsHasBeenSet =
true;
285 m_lambdaFunctionAssociations = std::forward<LambdaFunctionAssociationsT>(value);
287 template <
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
302 template <
typename FunctionAssociationsT = FunctionAssociations>
304 m_functionAssociationsHasBeenSet =
true;
305 m_functionAssociations = std::forward<FunctionAssociationsT>(value);
307 template <
typename FunctionAssociationsT = FunctionAssociations>
322 template <
typename FieldLevelEncryptionIdT = Aws::String>
324 m_fieldLevelEncryptionIdHasBeenSet =
true;
325 m_fieldLevelEncryptionId = std::forward<FieldLevelEncryptionIdT>(value);
327 template <
typename FieldLevelEncryptionIdT = Aws::String>
343 template <
typename RealtimeLogConfigArnT = Aws::String>
345 m_realtimeLogConfigArnHasBeenSet =
true;
346 m_realtimeLogConfigArn = std::forward<RealtimeLogConfigArnT>(value);
348 template <
typename RealtimeLogConfigArnT = Aws::String>
369 template <
typename CachePolicyIdT = Aws::String>
371 m_cachePolicyIdHasBeenSet =
true;
372 m_cachePolicyId = std::forward<CachePolicyIdT>(value);
374 template <
typename CachePolicyIdT = Aws::String>
393 template <
typename OriginRequestPolicyIdT = Aws::String>
395 m_originRequestPolicyIdHasBeenSet =
true;
396 m_originRequestPolicyId = std::forward<OriginRequestPolicyIdT>(value);
398 template <
typename OriginRequestPolicyIdT = Aws::String>
411 template <
typename ResponseHeadersPolicyIdT = Aws::String>
413 m_responseHeadersPolicyIdHasBeenSet =
true;
414 m_responseHeadersPolicyId = std::forward<ResponseHeadersPolicyIdT>(value);
416 template <
typename ResponseHeadersPolicyIdT = Aws::String>
429 template <
typename GrpcConfigT = GrpcConfig>
431 m_grpcConfigHasBeenSet =
true;
432 m_grpcConfig = std::forward<GrpcConfigT>(value);
434 template <
typename GrpcConfigT = GrpcConfig>
451 AllowedMethods m_allowedMethods;
453 bool m_smoothStreaming{
false};
455 bool m_compress{
false};
457 LambdaFunctionAssociations m_lambdaFunctionAssociations;
459 FunctionAssociations m_functionAssociations;
471 GrpcConfig m_grpcConfig;
472 bool m_pathPatternHasBeenSet =
false;
473 bool m_targetOriginIdHasBeenSet =
false;
474 bool m_trustedSignersHasBeenSet =
false;
475 bool m_trustedKeyGroupsHasBeenSet =
false;
476 bool m_viewerProtocolPolicyHasBeenSet =
false;
477 bool m_allowedMethodsHasBeenSet =
false;
478 bool m_smoothStreamingHasBeenSet =
false;
479 bool m_compressHasBeenSet =
false;
480 bool m_lambdaFunctionAssociationsHasBeenSet =
false;
481 bool m_functionAssociationsHasBeenSet =
false;
482 bool m_fieldLevelEncryptionIdHasBeenSet =
false;
483 bool m_realtimeLogConfigArnHasBeenSet =
false;
484 bool m_cachePolicyIdHasBeenSet =
false;
485 bool m_originRequestPolicyIdHasBeenSet =
false;
486 bool m_responseHeadersPolicyIdHasBeenSet =
false;
487 bool m_grpcConfigHasBeenSet =
false;
void SetPathPattern(PathPatternT &&value)
const AllowedMethods & GetAllowedMethods() const
void SetTrustedSigners(TrustedSignersT &&value)
bool TrustedKeyGroupsHasBeenSet() const
CacheBehavior & WithSmoothStreaming(bool value)
CacheBehavior & WithAllowedMethods(AllowedMethodsT &&value)
bool ViewerProtocolPolicyHasBeenSet() const
bool LambdaFunctionAssociationsHasBeenSet() const
void SetViewerProtocolPolicy(ViewerProtocolPolicy value)
CacheBehavior & WithLambdaFunctionAssociations(LambdaFunctionAssociationsT &&value)
CacheBehavior & WithPathPattern(PathPatternT &&value)
bool TargetOriginIdHasBeenSet() const
void SetOriginRequestPolicyId(OriginRequestPolicyIdT &&value)
bool ResponseHeadersPolicyIdHasBeenSet() const
bool AllowedMethodsHasBeenSet() const
bool SmoothStreamingHasBeenSet() const
void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT &&value)
CacheBehavior & WithOriginRequestPolicyId(OriginRequestPolicyIdT &&value)
void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT &&value)
void SetSmoothStreaming(bool 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)
bool FunctionAssociationsHasBeenSet() const
bool CachePolicyIdHasBeenSet() const
void SetGrpcConfig(GrpcConfigT &&value)
void SetRealtimeLogConfigArn(RealtimeLogConfigArnT &&value)
void SetAllowedMethods(AllowedMethodsT &&value)
void SetCompress(bool value)
const Aws::String & GetCachePolicyId() const
const Aws::String & GetFieldLevelEncryptionId() const
bool CompressHasBeenSet() const
const Aws::String & GetTargetOriginId() const
bool RealtimeLogConfigArnHasBeenSet() const
CacheBehavior & WithGrpcConfig(GrpcConfigT &&value)
CacheBehavior & WithRealtimeLogConfigArn(RealtimeLogConfigArnT &&value)
CacheBehavior & WithResponseHeadersPolicyId(ResponseHeadersPolicyIdT &&value)
const GrpcConfig & GetGrpcConfig() const
bool OriginRequestPolicyIdHasBeenSet() const
bool FieldLevelEncryptionIdHasBeenSet() const
const Aws::String & GetPathPattern() const
AWS_CLOUDFRONT_API CacheBehavior(const Aws::Utils::Xml::XmlNode &xmlNode)
bool PathPatternHasBeenSet() const
bool GetSmoothStreaming() const
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
bool TrustedSignersHasBeenSet() const
CacheBehavior & WithFieldLevelEncryptionId(FieldLevelEncryptionIdT &&value)
AWS_CLOUDFRONT_API CacheBehavior()=default
void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT &&value)
bool GrpcConfigHasBeenSet() const
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