public class StreamingLoggingConfig
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
bucket
The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com.
|
private java.lang.Boolean |
enabled
Specifies whether you want CloudFront to save access logs to an Amazon S3
bucket.
|
private java.lang.String |
prefix
An optional string that you want CloudFront to prefix to the access log
filenames for this streaming distribution, for example, myprefix/.
|
Constructor and Description |
---|
StreamingLoggingConfig() |
Modifier and Type | Method and Description |
---|---|
StreamingLoggingConfig |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getBucket()
The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com.
|
java.lang.Boolean |
getEnabled()
Specifies whether you want CloudFront to save access logs to an Amazon S3
bucket.
|
java.lang.String |
getPrefix()
An optional string that you want CloudFront to prefix to the access log
filenames for this streaming distribution, for example, myprefix/.
|
int |
hashCode() |
java.lang.Boolean |
isEnabled()
Specifies whether you want CloudFront to save access logs to an Amazon S3
bucket.
|
void |
setBucket(java.lang.String bucket)
The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com.
|
void |
setEnabled(java.lang.Boolean enabled)
Specifies whether you want CloudFront to save access logs to an Amazon S3
bucket.
|
void |
setPrefix(java.lang.String prefix)
An optional string that you want CloudFront to prefix to the access log
filenames for this streaming distribution, for example, myprefix/.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StreamingLoggingConfig |
withBucket(java.lang.String bucket)
The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com.
|
StreamingLoggingConfig |
withEnabled(java.lang.Boolean enabled)
Specifies whether you want CloudFront to save access logs to an Amazon S3
bucket.
|
StreamingLoggingConfig |
withPrefix(java.lang.String prefix)
An optional string that you want CloudFront to prefix to the access log
filenames for this streaming distribution, for example, myprefix/.
|
private java.lang.Boolean enabled
private java.lang.String bucket
private java.lang.String prefix
public void setEnabled(java.lang.Boolean enabled)
enabled
- Specifies whether you want CloudFront to save access logs to an
Amazon S3 bucket. If you do not 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.public java.lang.Boolean getEnabled()
public StreamingLoggingConfig withEnabled(java.lang.Boolean enabled)
enabled
- Specifies whether you want CloudFront to save access logs to an
Amazon S3 bucket. If you do not 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.public java.lang.Boolean isEnabled()
public void setBucket(java.lang.String bucket)
bucket
- The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com.public java.lang.String getBucket()
public StreamingLoggingConfig withBucket(java.lang.String bucket)
bucket
- The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com.public void setPrefix(java.lang.String prefix)
prefix
- An optional string that you want CloudFront to prefix to the
access log filenames for this streaming distribution, for example,
myprefix/. If you want to enable logging, but you do not want to
specify a prefix, you still must include an empty Prefix element
in the Logging element.public java.lang.String getPrefix()
public StreamingLoggingConfig withPrefix(java.lang.String prefix)
prefix
- An optional string that you want CloudFront to prefix to the
access log filenames for this streaming distribution, for example,
myprefix/. If you want to enable logging, but you do not want to
specify a prefix, you still must include an empty Prefix element
in the Logging element.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public StreamingLoggingConfig clone()
clone
in class java.lang.Object