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>
56 template <
typename TargetOriginIdT = Aws::String>
58 m_targetOriginIdHasBeenSet =
true;
59 m_targetOriginId = std::forward<TargetOriginIdT>(value);
61 template <
typename TargetOriginIdT = Aws::String>
89 template <
typename TrustedSignersT = TrustedSigners>
91 m_trustedSignersHasBeenSet =
true;
92 m_trustedSigners = std::forward<TrustedSignersT>(value);
94 template <
typename TrustedSignersT = TrustedSigners>
115 template <
typename TrustedKeyGroupsT = TrustedKeyGroups>
117 m_trustedKeyGroupsHasBeenSet =
true;
118 m_trustedKeyGroups = std::forward<TrustedKeyGroupsT>(value);
120 template <
typename TrustedKeyGroupsT = TrustedKeyGroups>
155 m_viewerProtocolPolicyHasBeenSet =
true;
156 m_viewerProtocolPolicy = value;
168 template <
typename AllowedMethodsT = AllowedMethods>
170 m_allowedMethodsHasBeenSet =
true;
171 m_allowedMethods = std::forward<AllowedMethodsT>(value);
173 template <
typename AllowedMethodsT = AllowedMethods>
197 m_smoothStreamingHasBeenSet =
true;
198 m_smoothStreaming = value;
217 m_compressHasBeenSet =
true;
233 template <
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
235 m_lambdaFunctionAssociationsHasBeenSet =
true;
236 m_lambdaFunctionAssociations = std::forward<LambdaFunctionAssociationsT>(value);
238 template <
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
253 template <
typename FunctionAssociationsT = FunctionAssociations>
255 m_functionAssociationsHasBeenSet =
true;
256 m_functionAssociations = std::forward<FunctionAssociationsT>(value);
258 template <
typename FunctionAssociationsT = FunctionAssociations>
273 template <
typename FieldLevelEncryptionIdT = Aws::String>
275 m_fieldLevelEncryptionIdHasBeenSet =
true;
276 m_fieldLevelEncryptionId = std::forward<FieldLevelEncryptionIdT>(value);
278 template <
typename FieldLevelEncryptionIdT = Aws::String>
294 template <
typename RealtimeLogConfigArnT = Aws::String>
296 m_realtimeLogConfigArnHasBeenSet =
true;
297 m_realtimeLogConfigArn = std::forward<RealtimeLogConfigArnT>(value);
299 template <
typename RealtimeLogConfigArnT = Aws::String>
320 template <
typename CachePolicyIdT = Aws::String>
322 m_cachePolicyIdHasBeenSet =
true;
323 m_cachePolicyId = std::forward<CachePolicyIdT>(value);
325 template <
typename CachePolicyIdT = Aws::String>
344 template <
typename OriginRequestPolicyIdT = Aws::String>
346 m_originRequestPolicyIdHasBeenSet =
true;
347 m_originRequestPolicyId = std::forward<OriginRequestPolicyIdT>(value);
349 template <
typename OriginRequestPolicyIdT = Aws::String>
362 template <
typename ResponseHeadersPolicyIdT = Aws::String>
364 m_responseHeadersPolicyIdHasBeenSet =
true;
365 m_responseHeadersPolicyId = std::forward<ResponseHeadersPolicyIdT>(value);
367 template <
typename ResponseHeadersPolicyIdT = Aws::String>
380 template <
typename GrpcConfigT = GrpcConfig>
382 m_grpcConfigHasBeenSet =
true;
383 m_grpcConfig = std::forward<GrpcConfigT>(value);
385 template <
typename GrpcConfigT = GrpcConfig>
400 AllowedMethods m_allowedMethods;
402 bool m_smoothStreaming{
false};
404 bool m_compress{
false};
406 LambdaFunctionAssociations m_lambdaFunctionAssociations;
408 FunctionAssociations m_functionAssociations;
420 GrpcConfig m_grpcConfig;
421 bool m_targetOriginIdHasBeenSet =
false;
422 bool m_trustedSignersHasBeenSet =
false;
423 bool m_trustedKeyGroupsHasBeenSet =
false;
424 bool m_viewerProtocolPolicyHasBeenSet =
false;
425 bool m_allowedMethodsHasBeenSet =
false;
426 bool m_smoothStreamingHasBeenSet =
false;
427 bool m_compressHasBeenSet =
false;
428 bool m_lambdaFunctionAssociationsHasBeenSet =
false;
429 bool m_functionAssociationsHasBeenSet =
false;
430 bool m_fieldLevelEncryptionIdHasBeenSet =
false;
431 bool m_realtimeLogConfigArnHasBeenSet =
false;
432 bool m_cachePolicyIdHasBeenSet =
false;
433 bool m_originRequestPolicyIdHasBeenSet =
false;
434 bool m_responseHeadersPolicyIdHasBeenSet =
false;
435 bool m_grpcConfigHasBeenSet =
false;
void SetRealtimeLogConfigArn(RealtimeLogConfigArnT &&value)
DefaultCacheBehavior & WithCachePolicyId(CachePolicyIdT &&value)
bool OriginRequestPolicyIdHasBeenSet() const
bool TrustedSignersHasBeenSet() const
bool CompressHasBeenSet() const
void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT &&value)
DefaultCacheBehavior & WithLambdaFunctionAssociations(LambdaFunctionAssociationsT &&value)
const FunctionAssociations & GetFunctionAssociations() const
bool GetSmoothStreaming() const
DefaultCacheBehavior & WithRealtimeLogConfigArn(RealtimeLogConfigArnT &&value)
DefaultCacheBehavior & WithTrustedKeyGroups(TrustedKeyGroupsT &&value)
DefaultCacheBehavior & WithAllowedMethods(AllowedMethodsT &&value)
bool CachePolicyIdHasBeenSet() const
const Aws::String & GetResponseHeadersPolicyId() const
DefaultCacheBehavior & WithViewerProtocolPolicy(ViewerProtocolPolicy value)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
bool FunctionAssociationsHasBeenSet() const
bool AllowedMethodsHasBeenSet() const
bool TargetOriginIdHasBeenSet() const
bool RealtimeLogConfigArnHasBeenSet() const
AWS_CLOUDFRONT_API DefaultCacheBehavior()=default
ViewerProtocolPolicy GetViewerProtocolPolicy() const
const Aws::String & GetRealtimeLogConfigArn() const
void SetTrustedKeyGroups(TrustedKeyGroupsT &&value)
bool ResponseHeadersPolicyIdHasBeenSet() const
const Aws::String & GetFieldLevelEncryptionId() const
const Aws::String & GetOriginRequestPolicyId() const
void SetTargetOriginId(TargetOriginIdT &&value)
DefaultCacheBehavior & WithSmoothStreaming(bool value)
const GrpcConfig & GetGrpcConfig() const
void SetOriginRequestPolicyId(OriginRequestPolicyIdT &&value)
DefaultCacheBehavior & WithGrpcConfig(GrpcConfigT &&value)
const Aws::String & GetTargetOriginId() const
bool ViewerProtocolPolicyHasBeenSet() const
void SetAllowedMethods(AllowedMethodsT &&value)
const TrustedKeyGroups & GetTrustedKeyGroups() const
DefaultCacheBehavior & WithResponseHeadersPolicyId(ResponseHeadersPolicyIdT &&value)
void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT &&value)
bool TrustedKeyGroupsHasBeenSet() const
void SetSmoothStreaming(bool value)
bool LambdaFunctionAssociationsHasBeenSet() const
void SetGrpcConfig(GrpcConfigT &&value)
AWS_CLOUDFRONT_API DefaultCacheBehavior & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
bool SmoothStreamingHasBeenSet() const
const TrustedSigners & GetTrustedSigners() const
bool GrpcConfigHasBeenSet() const
void SetCachePolicyId(CachePolicyIdT &&value)
DefaultCacheBehavior & WithTrustedSigners(TrustedSignersT &&value)
DefaultCacheBehavior & WithFieldLevelEncryptionId(FieldLevelEncryptionIdT &&value)
const AllowedMethods & GetAllowedMethods() const
DefaultCacheBehavior & WithFunctionAssociations(FunctionAssociationsT &&value)
AWS_CLOUDFRONT_API DefaultCacheBehavior(const Aws::Utils::Xml::XmlNode &xmlNode)
DefaultCacheBehavior & WithOriginRequestPolicyId(OriginRequestPolicyIdT &&value)
void SetFunctionAssociations(FunctionAssociationsT &&value)
void SetTrustedSigners(TrustedSignersT &&value)
const LambdaFunctionAssociations & GetLambdaFunctionAssociations() const
void SetCompress(bool value)
const Aws::String & GetCachePolicyId() const
DefaultCacheBehavior & WithCompress(bool value)
void SetViewerProtocolPolicy(ViewerProtocolPolicy value)
DefaultCacheBehavior & WithTargetOriginId(TargetOriginIdT &&value)
void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT &&value)
bool FieldLevelEncryptionIdHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String