public class LoggingConfig extends Object
Configuration for access logging for a distribution.
Constructor and Description |
---|
LoggingConfig()
Default constructor for a new LoggingConfig object.
|
LoggingConfig(String bucket,
String prefix)
Constructs a new LoggingConfig object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public LoggingConfig()
public LoggingConfig(String bucket, String prefix)
bucket
- The bucket to receive access logs.prefix
- The prefix to use for stored access log files.public String getBucket()
public void setBucket(String bucket)
bucket
- The bucket to receive access logs.public LoggingConfig withBucket(String bucket)
Returns a reference to this object so that method calls can be chained together.
bucket
- The bucket to receive access logs.public String getPrefix()
public void setPrefix(String prefix)
prefix
- The prefix to use for stored access log files.public LoggingConfig withPrefix(String prefix)
Returns a reference to this object so that method calls can be chained together.
prefix
- The prefix to use for stored access log files.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.