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>
57 template<
typename TargetOriginIdT = Aws::String>
58 void SetTargetOriginId(TargetOriginIdT&& value) { m_targetOriginIdHasBeenSet =
true; m_targetOriginId = std::forward<TargetOriginIdT>(value); }
59 template<
typename TargetOriginIdT = Aws::String>
84 template<
typename TrustedSignersT = TrustedSigners>
85 void SetTrustedSigners(TrustedSignersT&& value) { m_trustedSignersHasBeenSet =
true; m_trustedSigners = std::forward<TrustedSignersT>(value); }
86 template<
typename TrustedSignersT = TrustedSigners>
104 template<
typename TrustedKeyGroupsT = TrustedKeyGroups>
105 void SetTrustedKeyGroups(TrustedKeyGroupsT&& value) { m_trustedKeyGroupsHasBeenSet =
true; m_trustedKeyGroups = std::forward<TrustedKeyGroupsT>(value); }
106 template<
typename TrustedKeyGroupsT = TrustedKeyGroups>
145 template<
typename AllowedMethodsT = AllowedMethods>
146 void SetAllowedMethods(AllowedMethodsT&& value) { m_allowedMethodsHasBeenSet =
true; m_allowedMethods = std::forward<AllowedMethodsT>(value); }
147 template<
typename AllowedMethodsT = AllowedMethods>
167 inline void SetSmoothStreaming(
bool value) { m_smoothStreamingHasBeenSet =
true; m_smoothStreaming = value; }
181 inline void SetCompress(
bool value) { m_compressHasBeenSet =
true; m_compress = value; }
192 template<
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
193 void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { m_lambdaFunctionAssociationsHasBeenSet =
true; m_lambdaFunctionAssociations = std::forward<LambdaFunctionAssociationsT>(value); }
194 template<
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
206 template<
typename FunctionAssociationsT = FunctionAssociations>
207 void SetFunctionAssociations(FunctionAssociationsT&& value) { m_functionAssociationsHasBeenSet =
true; m_functionAssociations = std::forward<FunctionAssociationsT>(value); }
208 template<
typename FunctionAssociationsT = FunctionAssociations>
220 template<
typename FieldLevelEncryptionIdT = Aws::String>
221 void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { m_fieldLevelEncryptionIdHasBeenSet =
true; m_fieldLevelEncryptionId = std::forward<FieldLevelEncryptionIdT>(value); }
222 template<
typename FieldLevelEncryptionIdT = Aws::String>
235 template<
typename RealtimeLogConfigArnT = Aws::String>
236 void SetRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { m_realtimeLogConfigArnHasBeenSet =
true; m_realtimeLogConfigArn = std::forward<RealtimeLogConfigArnT>(value); }
237 template<
typename RealtimeLogConfigArnT = Aws::String>
255 template<
typename CachePolicyIdT = Aws::String>
256 void SetCachePolicyId(CachePolicyIdT&& value) { m_cachePolicyIdHasBeenSet =
true; m_cachePolicyId = std::forward<CachePolicyIdT>(value); }
257 template<
typename CachePolicyIdT = Aws::String>
273 template<
typename OriginRequestPolicyIdT = Aws::String>
274 void SetOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { m_originRequestPolicyIdHasBeenSet =
true; m_originRequestPolicyId = std::forward<OriginRequestPolicyIdT>(value); }
275 template<
typename OriginRequestPolicyIdT = Aws::String>
285 template<
typename ResponseHeadersPolicyIdT = Aws::String>
286 void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { m_responseHeadersPolicyIdHasBeenSet =
true; m_responseHeadersPolicyId = std::forward<ResponseHeadersPolicyIdT>(value); }
287 template<
typename ResponseHeadersPolicyIdT = Aws::String>
297 template<
typename GrpcConfigT = GrpcConfig>
298 void SetGrpcConfig(GrpcConfigT&& value) { m_grpcConfigHasBeenSet =
true; m_grpcConfig = std::forward<GrpcConfigT>(value); }
299 template<
typename GrpcConfigT = GrpcConfig>
305 bool m_targetOriginIdHasBeenSet =
false;
308 bool m_trustedSignersHasBeenSet =
false;
311 bool m_trustedKeyGroupsHasBeenSet =
false;
314 bool m_viewerProtocolPolicyHasBeenSet =
false;
316 AllowedMethods m_allowedMethods;
317 bool m_allowedMethodsHasBeenSet =
false;
319 bool m_smoothStreaming{
false};
320 bool m_smoothStreamingHasBeenSet =
false;
322 bool m_compress{
false};
323 bool m_compressHasBeenSet =
false;
325 LambdaFunctionAssociations m_lambdaFunctionAssociations;
326 bool m_lambdaFunctionAssociationsHasBeenSet =
false;
328 FunctionAssociations m_functionAssociations;
329 bool m_functionAssociationsHasBeenSet =
false;
332 bool m_fieldLevelEncryptionIdHasBeenSet =
false;
335 bool m_realtimeLogConfigArnHasBeenSet =
false;
338 bool m_cachePolicyIdHasBeenSet =
false;
341 bool m_originRequestPolicyIdHasBeenSet =
false;
344 bool m_responseHeadersPolicyIdHasBeenSet =
false;
346 GrpcConfig m_grpcConfig;
347 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