Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront.model
Class LoggingConfig

java.lang.Object
  extended by com.amazonaws.services.cloudfront.model.LoggingConfig

public class LoggingConfig
extends Object

A complex type that controls whether access logs are written for the distribution.


Constructor Summary
LoggingConfig()
          Default constructor for a new LoggingConfig object.
LoggingConfig(String bucket, String prefix)
          Constructs a new LoggingConfig object.
 
Method Summary
 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 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 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 withPrefix(String prefix)
          An optional string that you want CloudFront to prefix to the access log filenames for this distribution, for example, myprefix/.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LoggingConfig

public LoggingConfig()
Default constructor for a new LoggingConfig object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


LoggingConfig

public LoggingConfig(String bucket,
                     String prefix)
Constructs a new LoggingConfig object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
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 do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.
Method Detail

isEnabled

public Boolean isEnabled()
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 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 and Prefix, the values are automatically deleted.

Returns:
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 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 and Prefix, the values are automatically deleted.

setEnabled

public void setEnabled(Boolean 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 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 and Prefix, the values are automatically deleted.

Parameters:
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 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 and Prefix, the values are automatically deleted.

withEnabled

public LoggingConfig withEnabled(Boolean 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 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 and Prefix, the values are automatically deleted.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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 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 and Prefix, the values are automatically deleted.
Returns:
A reference to this updated object so that method calls can be chained together.

getEnabled

public Boolean getEnabled()
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 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 and Prefix, the values are automatically deleted.

Returns:
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 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 and Prefix, the values are automatically deleted.

getBucket

public String getBucket()
The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

Returns:
The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

setBucket

public void setBucket(String bucket)
The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

Parameters:
bucket - The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

withBucket

public LoggingConfig withBucket(String bucket)
The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.

Returns a reference to this object so that method calls can be chained together.

Parameters:
bucket - The Amazon S3 bucket to store the access logs in, for example, myawslogbucket.s3.amazonaws.com.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrefix

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 do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

Returns:
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 do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

setPrefix

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 do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

Parameters:
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 do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

withPrefix

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 do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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 do not want to specify a prefix, you still must include an empty Prefix element in the Logging element.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.