Class CfnDistributionPropsMixin.LoggingProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.CfnDistributionPropsMixin.LoggingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDistributionPropsMixin.LoggingProperty>
- Enclosing interface:
CfnDistributionPropsMixin.LoggingProperty
@Stability(Stable)
public static final class CfnDistributionPropsMixin.LoggingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDistributionPropsMixin.LoggingProperty>
A builder for
CfnDistributionPropsMixin.LoggingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnDistributionPropsMixin.LoggingProperty.getBucket()build()Builds the configured instance.includeCookies(Boolean includeCookies) Sets the value ofCfnDistributionPropsMixin.LoggingProperty.getIncludeCookies()includeCookies(IResolvable includeCookies) Sets the value ofCfnDistributionPropsMixin.LoggingProperty.getIncludeCookies()Sets the value ofCfnDistributionPropsMixin.LoggingProperty.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofCfnDistributionPropsMixin.LoggingProperty.getBucket()- Parameters:
bucket- The Amazon S3 bucket to store the access logs in, for example,amzn-s3-demo-bucket.s3.amazonaws.com.- Returns:
this
-
includeCookies
@Stability(Stable) public CfnDistributionPropsMixin.LoggingProperty.Builder includeCookies(Boolean includeCookies) Sets the value ofCfnDistributionPropsMixin.LoggingProperty.getIncludeCookies()- Parameters:
includeCookies- Specifies whether you want CloudFront to include cookies in access logs, specifytrueforIncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you don't want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specifyfalseforIncludeCookies.- Returns:
this
-
includeCookies
@Stability(Stable) public CfnDistributionPropsMixin.LoggingProperty.Builder includeCookies(IResolvable includeCookies) Sets the value ofCfnDistributionPropsMixin.LoggingProperty.getIncludeCookies()- Parameters:
includeCookies- Specifies whether you want CloudFront to include cookies in access logs, specifytrueforIncludeCookies. If you choose to include cookies in logs, CloudFront logs all cookies regardless of how you configure the cache behaviors for this distribution. If you don't want to include cookies when you create a distribution or if you want to disable include cookies for an existing distribution, specifyfalseforIncludeCookies.- Returns:
this
-
prefix
Sets the value ofCfnDistributionPropsMixin.LoggingProperty.getPrefix()- Parameters:
prefix- An optional string that you want CloudFront to prefix to the access logfilenamesfor this distribution, for example,myprefix/. If you want to enable logging, but you don't want to specify a prefix, you still must include an emptyPrefixelement in theLoggingelement.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDistributionPropsMixin.LoggingProperty>- Returns:
- a new instance of
CfnDistributionPropsMixin.LoggingProperty - Throws:
NullPointerException- if any required attribute was not provided
-