@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoggingConfig extends Object implements Serializable, Cloneable
A complex type that controls whether access logs are written for the distribution.
Constructor and Description |
---|
LoggingConfig()
Default constructor for LoggingConfig object.
|
LoggingConfig(String bucket,
String prefix)
Constructs a new LoggingConfig object.
|
Modifier and Type | Method and Description |
---|---|
LoggingConfig |
clone() |
boolean |
equals(Object obj) |
String |
getBucket()
The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com . |
Boolean |
getEnabled()
Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket.
|
Boolean |
getIncludeCookies()
Specifies whether you want CloudFront to include cookies in access logs, specify
true for
IncludeCookies . |
String |
getPrefix()
An optional string that you want CloudFront to prefix to the access log
filenames for this
distribution, for example, myprefix/ . |
int |
hashCode() |
Boolean |
isEnabled()
Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket.
|
Boolean |
isIncludeCookies()
Specifies whether you want CloudFront to include cookies in access logs, specify
true for
IncludeCookies . |
void |
setBucket(String bucket)
The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com . |
void |
setEnabled(Boolean enabled)
Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket.
|
void |
setIncludeCookies(Boolean includeCookies)
Specifies whether you want CloudFront to include cookies in access logs, specify
true for
IncludeCookies . |
void |
setPrefix(String prefix)
An optional string that you want CloudFront to prefix to the access log
filenames for this
distribution, for example, myprefix/ . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
LoggingConfig |
withBucket(String bucket)
The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com . |
LoggingConfig |
withEnabled(Boolean enabled)
Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket.
|
LoggingConfig |
withIncludeCookies(Boolean includeCookies)
Specifies whether you want CloudFront to include cookies in access logs, specify
true for
IncludeCookies . |
LoggingConfig |
withPrefix(String prefix)
An optional string that you want CloudFront to prefix to the access log
filenames for this
distribution, for example, myprefix/ . |
public LoggingConfig()
public LoggingConfig(String bucket, String prefix)
bucket
- The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com
.prefix
- An optional string that you want CloudFront to prefix to the access log filenames
for 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 empty Prefix
element in the Logging
element.public void setEnabled(Boolean enabled)
Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable
logging when you create a distribution or if you want to disable logging for an existing distribution, specify
false
for Enabled
, and specify empty Bucket
and Prefix
elements. If you specify false
for Enabled
but you specify values for
Bucket
, prefix
, and IncludeCookies
, the values are automatically deleted.
enabled
- Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to
enable logging when you create a distribution or if you want to disable logging for an existing
distribution, specify false
for Enabled
, and specify empty Bucket
and Prefix
elements. If you specify false
for Enabled
but you
specify values for Bucket
, prefix
, and IncludeCookies
, the values
are automatically deleted.public Boolean getEnabled()
Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable
logging when you create a distribution or if you want to disable logging for an existing distribution, specify
false
for Enabled
, and specify empty Bucket
and Prefix
elements. If you specify false
for Enabled
but you specify values for
Bucket
, prefix
, and IncludeCookies
, the values are automatically deleted.
false
for Enabled
, and specify empty Bucket
and Prefix
elements. If you specify false
for Enabled
but you
specify values for Bucket
, prefix
, and IncludeCookies
, the values
are automatically deleted.public LoggingConfig withEnabled(Boolean enabled)
Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable
logging when you create a distribution or if you want to disable logging for an existing distribution, specify
false
for Enabled
, and specify empty Bucket
and Prefix
elements. If you specify false
for Enabled
but you specify values for
Bucket
, prefix
, and IncludeCookies
, the values are automatically deleted.
enabled
- Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to
enable logging when you create a distribution or if you want to disable logging for an existing
distribution, specify false
for Enabled
, and specify empty Bucket
and Prefix
elements. If you specify false
for Enabled
but you
specify values for Bucket
, prefix
, and IncludeCookies
, the values
are automatically deleted.public Boolean isEnabled()
Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket. If you don't want to enable
logging when you create a distribution or if you want to disable logging for an existing distribution, specify
false
for Enabled
, and specify empty Bucket
and Prefix
elements. If you specify false
for Enabled
but you specify values for
Bucket
, prefix
, and IncludeCookies
, the values are automatically deleted.
false
for Enabled
, and specify empty Bucket
and Prefix
elements. If you specify false
for Enabled
but you
specify values for Bucket
, prefix
, and IncludeCookies
, the values
are automatically deleted.public void setIncludeCookies(Boolean includeCookies)
Specifies whether you want CloudFront to include cookies in access logs, specify true
for
IncludeCookies
. 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, specify false
for IncludeCookies
.
includeCookies
- Specifies whether you want CloudFront to include cookies in access logs, specify true
for
IncludeCookies
. 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, specify false
for IncludeCookies
.public Boolean getIncludeCookies()
Specifies whether you want CloudFront to include cookies in access logs, specify true
for
IncludeCookies
. 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, specify false
for IncludeCookies
.
true
for
IncludeCookies
. 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, specify false
for IncludeCookies
.public LoggingConfig withIncludeCookies(Boolean includeCookies)
Specifies whether you want CloudFront to include cookies in access logs, specify true
for
IncludeCookies
. 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, specify false
for IncludeCookies
.
includeCookies
- Specifies whether you want CloudFront to include cookies in access logs, specify true
for
IncludeCookies
. 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, specify false
for IncludeCookies
.public Boolean isIncludeCookies()
Specifies whether you want CloudFront to include cookies in access logs, specify true
for
IncludeCookies
. 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, specify false
for IncludeCookies
.
true
for
IncludeCookies
. 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, specify false
for IncludeCookies
.public void setBucket(String bucket)
The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com
.
bucket
- The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com
.public String getBucket()
The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com
.
myawslogbucket.s3.amazonaws.com
.public LoggingConfig withBucket(String bucket)
The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com
.
bucket
- The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com
.public void setPrefix(String prefix)
An optional string that you want CloudFront to prefix to the access log filenames
for 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 empty Prefix
element in the Logging
element.
prefix
- An optional string that you want CloudFront to prefix to the access log filenames
for 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 empty Prefix
element in the Logging
element.public String getPrefix()
An optional string that you want CloudFront to prefix to the access log filenames
for 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 empty Prefix
element in the Logging
element.
filenames
for 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 empty Prefix
element in the Logging
element.public LoggingConfig withPrefix(String prefix)
An optional string that you want CloudFront to prefix to the access log filenames
for 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 empty Prefix
element in the Logging
element.
prefix
- An optional string that you want CloudFront to prefix to the access log filenames
for 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 empty Prefix
element in the Logging
element.public String toString()
toString
in class Object
Object.toString()
public LoggingConfig clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.