@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StreamingLoggingConfig extends Object implements Serializable, Cloneable
A complex type that controls whether access logs are written for this streaming distribution.
Constructor and Description |
---|
StreamingLoggingConfig() |
Modifier and Type | Method and Description |
---|---|
StreamingLoggingConfig |
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.
|
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() |
Boolean |
isEnabled()
Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket.
|
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 |
setPrefix(String prefix)
An optional string that you want CloudFront to prefix to the access log filenames for this streaming
distribution, for example,
myprefix/ . |
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
StreamingLoggingConfig |
withBucket(String bucket)
The Amazon S3 bucket to store the access logs in, for example,
myawslogbucket.s3.amazonaws.com . |
StreamingLoggingConfig |
withEnabled(Boolean enabled)
Specifies whether you want CloudFront to save access logs to an Amazon S3 bucket.
|
StreamingLoggingConfig |
withPrefix(String prefix)
An optional string that you want CloudFront to prefix to the access log filenames for this streaming
distribution, for example,
myprefix/ . |
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 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.
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 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 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 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.
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 StreamingLoggingConfig 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 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.
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 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 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 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.
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 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 StreamingLoggingConfig 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 streaming
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 streaming
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 streaming
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.
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 StreamingLoggingConfig withPrefix(String 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 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 streaming
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 StreamingLoggingConfig clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.