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>
88 template<
typename PathPatternT = Aws::String>
89 void SetPathPattern(PathPatternT&& value) { m_pathPatternHasBeenSet =
true; m_pathPattern = std::forward<PathPatternT>(value); }
90 template<
typename PathPatternT = Aws::String>
101 template<
typename TargetOriginIdT = Aws::String>
102 void SetTargetOriginId(TargetOriginIdT&& value) { m_targetOriginIdHasBeenSet =
true; m_targetOriginId = std::forward<TargetOriginIdT>(value); }
103 template<
typename TargetOriginIdT = Aws::String>
128 template<
typename TrustedSignersT = TrustedSigners>
129 void SetTrustedSigners(TrustedSignersT&& value) { m_trustedSignersHasBeenSet =
true; m_trustedSigners = std::forward<TrustedSignersT>(value); }
130 template<
typename TrustedSignersT = TrustedSigners>
148 template<
typename TrustedKeyGroupsT = TrustedKeyGroups>
149 void SetTrustedKeyGroups(TrustedKeyGroupsT&& value) { m_trustedKeyGroupsHasBeenSet =
true; m_trustedKeyGroups = std::forward<TrustedKeyGroupsT>(value); }
150 template<
typename TrustedKeyGroupsT = TrustedKeyGroups>
189 template<
typename AllowedMethodsT = AllowedMethods>
190 void SetAllowedMethods(AllowedMethodsT&& value) { m_allowedMethodsHasBeenSet =
true; m_allowedMethods = std::forward<AllowedMethodsT>(value); }
191 template<
typename AllowedMethodsT = AllowedMethods>
211 inline void SetSmoothStreaming(
bool value) { m_smoothStreamingHasBeenSet =
true; m_smoothStreaming = value; }
225 inline void SetCompress(
bool value) { m_compressHasBeenSet =
true; m_compress = value; }
236 template<
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
237 void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { m_lambdaFunctionAssociationsHasBeenSet =
true; m_lambdaFunctionAssociations = std::forward<LambdaFunctionAssociationsT>(value); }
238 template<
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
250 template<
typename FunctionAssociationsT = FunctionAssociations>
251 void SetFunctionAssociations(FunctionAssociationsT&& value) { m_functionAssociationsHasBeenSet =
true; m_functionAssociations = std::forward<FunctionAssociationsT>(value); }
252 template<
typename FunctionAssociationsT = FunctionAssociations>
264 template<
typename FieldLevelEncryptionIdT = Aws::String>
265 void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { m_fieldLevelEncryptionIdHasBeenSet =
true; m_fieldLevelEncryptionId = std::forward<FieldLevelEncryptionIdT>(value); }
266 template<
typename FieldLevelEncryptionIdT = Aws::String>
279 template<
typename RealtimeLogConfigArnT = Aws::String>
280 void SetRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { m_realtimeLogConfigArnHasBeenSet =
true; m_realtimeLogConfigArn = std::forward<RealtimeLogConfigArnT>(value); }
281 template<
typename RealtimeLogConfigArnT = Aws::String>
299 template<
typename CachePolicyIdT = Aws::String>
300 void SetCachePolicyId(CachePolicyIdT&& value) { m_cachePolicyIdHasBeenSet =
true; m_cachePolicyId = std::forward<CachePolicyIdT>(value); }
301 template<
typename CachePolicyIdT = Aws::String>
317 template<
typename OriginRequestPolicyIdT = Aws::String>
318 void SetOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { m_originRequestPolicyIdHasBeenSet =
true; m_originRequestPolicyId = std::forward<OriginRequestPolicyIdT>(value); }
319 template<
typename OriginRequestPolicyIdT = Aws::String>
329 template<
typename ResponseHeadersPolicyIdT = Aws::String>
330 void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { m_responseHeadersPolicyIdHasBeenSet =
true; m_responseHeadersPolicyId = std::forward<ResponseHeadersPolicyIdT>(value); }
331 template<
typename ResponseHeadersPolicyIdT = Aws::String>
341 template<
typename GrpcConfigT = GrpcConfig>
342 void SetGrpcConfig(GrpcConfigT&& value) { m_grpcConfigHasBeenSet =
true; m_grpcConfig = std::forward<GrpcConfigT>(value); }
343 template<
typename GrpcConfigT = GrpcConfig>
349 bool m_pathPatternHasBeenSet =
false;
352 bool m_targetOriginIdHasBeenSet =
false;
355 bool m_trustedSignersHasBeenSet =
false;
358 bool m_trustedKeyGroupsHasBeenSet =
false;
361 bool m_viewerProtocolPolicyHasBeenSet =
false;
363 AllowedMethods m_allowedMethods;
364 bool m_allowedMethodsHasBeenSet =
false;
366 bool m_smoothStreaming{
false};
367 bool m_smoothStreamingHasBeenSet =
false;
369 bool m_compress{
false};
370 bool m_compressHasBeenSet =
false;
372 LambdaFunctionAssociations m_lambdaFunctionAssociations;
373 bool m_lambdaFunctionAssociationsHasBeenSet =
false;
375 FunctionAssociations m_functionAssociations;
376 bool m_functionAssociationsHasBeenSet =
false;
379 bool m_fieldLevelEncryptionIdHasBeenSet =
false;
382 bool m_realtimeLogConfigArnHasBeenSet =
false;
385 bool m_cachePolicyIdHasBeenSet =
false;
388 bool m_originRequestPolicyIdHasBeenSet =
false;
391 bool m_responseHeadersPolicyIdHasBeenSet =
false;
393 GrpcConfig m_grpcConfig;
394 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