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>
92 template<
typename PathPatternT = Aws::String>
93 void SetPathPattern(PathPatternT&& value) { m_pathPatternHasBeenSet =
true; m_pathPattern = std::forward<PathPatternT>(value); }
94 template<
typename PathPatternT = Aws::String>
105 template<
typename TargetOriginIdT = Aws::String>
106 void SetTargetOriginId(TargetOriginIdT&& value) { m_targetOriginIdHasBeenSet =
true; m_targetOriginId = std::forward<TargetOriginIdT>(value); }
107 template<
typename TargetOriginIdT = Aws::String>
132 template<
typename TrustedSignersT = TrustedSigners>
133 void SetTrustedSigners(TrustedSignersT&& value) { m_trustedSignersHasBeenSet =
true; m_trustedSigners = std::forward<TrustedSignersT>(value); }
134 template<
typename TrustedSignersT = TrustedSigners>
152 template<
typename TrustedKeyGroupsT = TrustedKeyGroups>
153 void SetTrustedKeyGroups(TrustedKeyGroupsT&& value) { m_trustedKeyGroupsHasBeenSet =
true; m_trustedKeyGroups = std::forward<TrustedKeyGroupsT>(value); }
154 template<
typename TrustedKeyGroupsT = TrustedKeyGroups>
193 template<
typename AllowedMethodsT = AllowedMethods>
194 void SetAllowedMethods(AllowedMethodsT&& value) { m_allowedMethodsHasBeenSet =
true; m_allowedMethods = std::forward<AllowedMethodsT>(value); }
195 template<
typename AllowedMethodsT = AllowedMethods>
215 inline void SetSmoothStreaming(
bool value) { m_smoothStreamingHasBeenSet =
true; m_smoothStreaming = value; }
229 inline void SetCompress(
bool value) { m_compressHasBeenSet =
true; m_compress = value; }
240 template<
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
241 void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { m_lambdaFunctionAssociationsHasBeenSet =
true; m_lambdaFunctionAssociations = std::forward<LambdaFunctionAssociationsT>(value); }
242 template<
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
254 template<
typename FunctionAssociationsT = FunctionAssociations>
255 void SetFunctionAssociations(FunctionAssociationsT&& value) { m_functionAssociationsHasBeenSet =
true; m_functionAssociations = std::forward<FunctionAssociationsT>(value); }
256 template<
typename FunctionAssociationsT = FunctionAssociations>
268 template<
typename FieldLevelEncryptionIdT = Aws::String>
269 void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { m_fieldLevelEncryptionIdHasBeenSet =
true; m_fieldLevelEncryptionId = std::forward<FieldLevelEncryptionIdT>(value); }
270 template<
typename FieldLevelEncryptionIdT = Aws::String>
283 template<
typename RealtimeLogConfigArnT = Aws::String>
284 void SetRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { m_realtimeLogConfigArnHasBeenSet =
true; m_realtimeLogConfigArn = std::forward<RealtimeLogConfigArnT>(value); }
285 template<
typename RealtimeLogConfigArnT = Aws::String>
303 template<
typename CachePolicyIdT = Aws::String>
304 void SetCachePolicyId(CachePolicyIdT&& value) { m_cachePolicyIdHasBeenSet =
true; m_cachePolicyId = std::forward<CachePolicyIdT>(value); }
305 template<
typename CachePolicyIdT = Aws::String>
321 template<
typename OriginRequestPolicyIdT = Aws::String>
322 void SetOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { m_originRequestPolicyIdHasBeenSet =
true; m_originRequestPolicyId = std::forward<OriginRequestPolicyIdT>(value); }
323 template<
typename OriginRequestPolicyIdT = Aws::String>
333 template<
typename ResponseHeadersPolicyIdT = Aws::String>
334 void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { m_responseHeadersPolicyIdHasBeenSet =
true; m_responseHeadersPolicyId = std::forward<ResponseHeadersPolicyIdT>(value); }
335 template<
typename ResponseHeadersPolicyIdT = Aws::String>
345 template<
typename GrpcConfigT = GrpcConfig>
346 void SetGrpcConfig(GrpcConfigT&& value) { m_grpcConfigHasBeenSet =
true; m_grpcConfig = std::forward<GrpcConfigT>(value); }
347 template<
typename GrpcConfigT = GrpcConfig>
353 bool m_pathPatternHasBeenSet =
false;
356 bool m_targetOriginIdHasBeenSet =
false;
359 bool m_trustedSignersHasBeenSet =
false;
362 bool m_trustedKeyGroupsHasBeenSet =
false;
365 bool m_viewerProtocolPolicyHasBeenSet =
false;
367 AllowedMethods m_allowedMethods;
368 bool m_allowedMethodsHasBeenSet =
false;
370 bool m_smoothStreaming{
false};
371 bool m_smoothStreamingHasBeenSet =
false;
373 bool m_compress{
false};
374 bool m_compressHasBeenSet =
false;
376 LambdaFunctionAssociations m_lambdaFunctionAssociations;
377 bool m_lambdaFunctionAssociationsHasBeenSet =
false;
379 FunctionAssociations m_functionAssociations;
380 bool m_functionAssociationsHasBeenSet =
false;
383 bool m_fieldLevelEncryptionIdHasBeenSet =
false;
386 bool m_realtimeLogConfigArnHasBeenSet =
false;
389 bool m_cachePolicyIdHasBeenSet =
false;
392 bool m_originRequestPolicyIdHasBeenSet =
false;
395 bool m_responseHeadersPolicyIdHasBeenSet =
false;
397 GrpcConfig m_grpcConfig;
398 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