Class LoggingConfiguration.Builder
java.lang.Object
software.amazon.awscdk.services.cloudfront.LoggingConfiguration.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoggingConfiguration>
- Enclosing interface:
LoggingConfiguration
@Stability(Stable)
public static final class LoggingConfiguration.Builder
extends Object
implements software.amazon.jsii.Builder<LoggingConfiguration>
A builder for
LoggingConfiguration-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofLoggingConfiguration.getBucket()build()Builds the configured instance.includeCookies(Boolean includeCookies) Sets the value ofLoggingConfiguration.getIncludeCookies()Sets the value ofLoggingConfiguration.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucket
Sets the value ofLoggingConfiguration.getBucket()- Parameters:
bucket- Bucket to log requests to.- Returns:
this
-
includeCookies
Sets the value ofLoggingConfiguration.getIncludeCookies()- Parameters:
includeCookies- Whether to include the cookies in the logs.- Returns:
this
-
prefix
Sets the value ofLoggingConfiguration.getPrefix()- Parameters:
prefix- Where in the bucket to store logs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LoggingConfiguration>- Returns:
- a new instance of
LoggingConfiguration - Throws:
NullPointerException- if any required attribute was not provided
-