public static final class CfnStreamingDistribution.LoggingProperty.Builder
extends java.lang.Object
CfnStreamingDistribution.LoggingProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnStreamingDistribution.LoggingProperty.Builder |
bucket(java.lang.String bucket)
Sets the value of
CfnStreamingDistribution.LoggingProperty.getBucket() |
CfnStreamingDistribution.LoggingProperty |
build()
Builds the configured instance.
|
CfnStreamingDistribution.LoggingProperty.Builder |
enabled(java.lang.Boolean enabled)
Sets the value of
CfnStreamingDistribution.LoggingProperty.getEnabled() |
CfnStreamingDistribution.LoggingProperty.Builder |
enabled(IResolvable enabled)
Sets the value of
CfnStreamingDistribution.LoggingProperty.getEnabled() |
CfnStreamingDistribution.LoggingProperty.Builder |
prefix(java.lang.String prefix)
Sets the value of
CfnStreamingDistribution.LoggingProperty.getPrefix() |
public CfnStreamingDistribution.LoggingProperty.Builder bucket(java.lang.String bucket)
CfnStreamingDistribution.LoggingProperty.getBucket()
bucket
- The Amazon S3 bucket to store the access logs in, for example, `myawslogbucket.s3.amazonaws.com` . This parameter is required.this
public CfnStreamingDistribution.LoggingProperty.Builder enabled(java.lang.Boolean enabled)
CfnStreamingDistribution.LoggingProperty.getEnabled()
enabled
- Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. This parameter is required.
If you don't want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false
for Enabled
, and specify empty Bucket
and Prefix
elements. If you specify false
for Enabled
but you specify values for Bucket
and Prefix
, the values are automatically deleted.this
public CfnStreamingDistribution.LoggingProperty.Builder enabled(IResolvable enabled)
CfnStreamingDistribution.LoggingProperty.getEnabled()
enabled
- Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. This parameter is required.
If you don't want to enable logging when you create a streaming distribution or if you want to disable logging for an existing streaming distribution, specify false
for Enabled
, and specify empty Bucket
and Prefix
elements. If you specify false
for Enabled
but you specify values for Bucket
and Prefix
, the values are automatically deleted.this
public CfnStreamingDistribution.LoggingProperty.Builder prefix(java.lang.String prefix)
CfnStreamingDistribution.LoggingProperty.getPrefix()
prefix
- An optional string that you want CloudFront to prefix to the access log filenames for this streaming distribution, for example, `myprefix/` . This parameter is required.
If you want to enable logging, but you don't want to specify a prefix, you still must include an empty Prefix
element in the Logging
element.this
public CfnStreamingDistribution.LoggingProperty build()
CfnStreamingDistribution.LoggingProperty
java.lang.NullPointerException
- if any required attribute was not provided