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>
62 template<
typename TargetOriginIdT = Aws::String>
63 void SetTargetOriginId(TargetOriginIdT&& value) { m_targetOriginIdHasBeenSet =
true; m_targetOriginId = std::forward<TargetOriginIdT>(value); }
64 template<
typename TargetOriginIdT = Aws::String>
89 template<
typename TrustedSignersT = TrustedSigners>
90 void SetTrustedSigners(TrustedSignersT&& value) { m_trustedSignersHasBeenSet =
true; m_trustedSigners = std::forward<TrustedSignersT>(value); }
91 template<
typename TrustedSignersT = TrustedSigners>
109 template<
typename TrustedKeyGroupsT = TrustedKeyGroups>
110 void SetTrustedKeyGroups(TrustedKeyGroupsT&& value) { m_trustedKeyGroupsHasBeenSet =
true; m_trustedKeyGroups = std::forward<TrustedKeyGroupsT>(value); }
111 template<
typename TrustedKeyGroupsT = TrustedKeyGroups>
150 template<
typename AllowedMethodsT = AllowedMethods>
151 void SetAllowedMethods(AllowedMethodsT&& value) { m_allowedMethodsHasBeenSet =
true; m_allowedMethods = std::forward<AllowedMethodsT>(value); }
152 template<
typename AllowedMethodsT = AllowedMethods>
172 inline void SetSmoothStreaming(
bool value) { m_smoothStreamingHasBeenSet =
true; m_smoothStreaming = value; }
186 inline void SetCompress(
bool value) { m_compressHasBeenSet =
true; m_compress = value; }
197 template<
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
198 void SetLambdaFunctionAssociations(LambdaFunctionAssociationsT&& value) { m_lambdaFunctionAssociationsHasBeenSet =
true; m_lambdaFunctionAssociations = std::forward<LambdaFunctionAssociationsT>(value); }
199 template<
typename LambdaFunctionAssociationsT = LambdaFunctionAssociations>
211 template<
typename FunctionAssociationsT = FunctionAssociations>
212 void SetFunctionAssociations(FunctionAssociationsT&& value) { m_functionAssociationsHasBeenSet =
true; m_functionAssociations = std::forward<FunctionAssociationsT>(value); }
213 template<
typename FunctionAssociationsT = FunctionAssociations>
225 template<
typename FieldLevelEncryptionIdT = Aws::String>
226 void SetFieldLevelEncryptionId(FieldLevelEncryptionIdT&& value) { m_fieldLevelEncryptionIdHasBeenSet =
true; m_fieldLevelEncryptionId = std::forward<FieldLevelEncryptionIdT>(value); }
227 template<
typename FieldLevelEncryptionIdT = Aws::String>
240 template<
typename RealtimeLogConfigArnT = Aws::String>
241 void SetRealtimeLogConfigArn(RealtimeLogConfigArnT&& value) { m_realtimeLogConfigArnHasBeenSet =
true; m_realtimeLogConfigArn = std::forward<RealtimeLogConfigArnT>(value); }
242 template<
typename RealtimeLogConfigArnT = Aws::String>
260 template<
typename CachePolicyIdT = Aws::String>
261 void SetCachePolicyId(CachePolicyIdT&& value) { m_cachePolicyIdHasBeenSet =
true; m_cachePolicyId = std::forward<CachePolicyIdT>(value); }
262 template<
typename CachePolicyIdT = Aws::String>
278 template<
typename OriginRequestPolicyIdT = Aws::String>
279 void SetOriginRequestPolicyId(OriginRequestPolicyIdT&& value) { m_originRequestPolicyIdHasBeenSet =
true; m_originRequestPolicyId = std::forward<OriginRequestPolicyIdT>(value); }
280 template<
typename OriginRequestPolicyIdT = Aws::String>
290 template<
typename ResponseHeadersPolicyIdT = Aws::String>
291 void SetResponseHeadersPolicyId(ResponseHeadersPolicyIdT&& value) { m_responseHeadersPolicyIdHasBeenSet =
true; m_responseHeadersPolicyId = std::forward<ResponseHeadersPolicyIdT>(value); }
292 template<
typename ResponseHeadersPolicyIdT = Aws::String>
302 template<
typename GrpcConfigT = GrpcConfig>
303 void SetGrpcConfig(GrpcConfigT&& value) { m_grpcConfigHasBeenSet =
true; m_grpcConfig = std::forward<GrpcConfigT>(value); }
304 template<
typename GrpcConfigT = GrpcConfig>
310 bool m_targetOriginIdHasBeenSet =
false;
313 bool m_trustedSignersHasBeenSet =
false;
316 bool m_trustedKeyGroupsHasBeenSet =
false;
319 bool m_viewerProtocolPolicyHasBeenSet =
false;
321 AllowedMethods m_allowedMethods;
322 bool m_allowedMethodsHasBeenSet =
false;
324 bool m_smoothStreaming{
false};
325 bool m_smoothStreamingHasBeenSet =
false;
327 bool m_compress{
false};
328 bool m_compressHasBeenSet =
false;
330 LambdaFunctionAssociations m_lambdaFunctionAssociations;
331 bool m_lambdaFunctionAssociationsHasBeenSet =
false;
333 FunctionAssociations m_functionAssociations;
334 bool m_functionAssociationsHasBeenSet =
false;
337 bool m_fieldLevelEncryptionIdHasBeenSet =
false;
340 bool m_realtimeLogConfigArnHasBeenSet =
false;
343 bool m_cachePolicyIdHasBeenSet =
false;
346 bool m_originRequestPolicyIdHasBeenSet =
false;
349 bool m_responseHeadersPolicyIdHasBeenSet =
false;
351 GrpcConfig m_grpcConfig;
352 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