Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront_2012_03_15.model
Class LoggingConfig

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

public class LoggingConfig
extends Object

Configuration for access logging for a 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 bucket to receive access logs.
 String getPrefix()
          The prefix to use for stored access log files.
 int hashCode()
           
 void setBucket(String bucket)
          The bucket to receive access logs.
 void setPrefix(String prefix)
          The prefix to use for stored access log files.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 LoggingConfig withBucket(String bucket)
          The bucket to receive access logs.
 LoggingConfig withPrefix(String prefix)
          The prefix to use for stored access log files.
 
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 bucket to receive access logs.
prefix - The prefix to use for stored access log files.
Method Detail

getBucket

public String getBucket()
The bucket to receive access logs.

Returns:
The bucket to receive access logs.

setBucket

public void setBucket(String bucket)
The bucket to receive access logs.

Parameters:
bucket - The bucket to receive access logs.

withBucket

public LoggingConfig withBucket(String bucket)
The bucket to receive access logs.

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

Parameters:
bucket - The bucket to receive access logs.
Returns:
A reference to this updated object so that method calls can be chained together.

getPrefix

public String getPrefix()
The prefix to use for stored access log files.

Returns:
The prefix to use for stored access log files.

setPrefix

public void setPrefix(String prefix)
The prefix to use for stored access log files.

Parameters:
prefix - The prefix to use for stored access log files.

withPrefix

public LoggingConfig withPrefix(String prefix)
The prefix to use for stored access log files.

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

Parameters:
prefix - The prefix to use for stored access log files.
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.