public class AccessLog
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Information about the AccessLog
attribute.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
emitInterval
The interval for publishing the access logs.
|
private java.lang.Boolean |
enabled
Specifies whether access log is enabled for the load balancer.
|
private java.lang.String |
s3BucketName
The name of the Amazon S3 bucket where the access logs are stored.
|
private java.lang.String |
s3BucketPrefix
The logical hierarchy you created for your Amazon S3 bucket, for example
my-bucket-prefix/prod . |
Constructor and Description |
---|
AccessLog() |
Modifier and Type | Method and Description |
---|---|
AccessLog |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getEmitInterval()
The interval for publishing the access logs.
|
java.lang.Boolean |
getEnabled()
Specifies whether access log is enabled for the load balancer.
|
java.lang.String |
getS3BucketName()
The name of the Amazon S3 bucket where the access logs are stored.
|
java.lang.String |
getS3BucketPrefix()
The logical hierarchy you created for your Amazon S3 bucket, for example
my-bucket-prefix/prod . |
int |
hashCode() |
java.lang.Boolean |
isEnabled()
Specifies whether access log is enabled for the load balancer.
|
void |
setEmitInterval(java.lang.Integer emitInterval)
The interval for publishing the access logs.
|
void |
setEnabled(java.lang.Boolean enabled)
Specifies whether access log is enabled for the load balancer.
|
void |
setS3BucketName(java.lang.String s3BucketName)
The name of the Amazon S3 bucket where the access logs are stored.
|
void |
setS3BucketPrefix(java.lang.String s3BucketPrefix)
The logical hierarchy you created for your Amazon S3 bucket, for example
my-bucket-prefix/prod . |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AccessLog |
withEmitInterval(java.lang.Integer emitInterval)
The interval for publishing the access logs.
|
AccessLog |
withEnabled(java.lang.Boolean enabled)
Specifies whether access log is enabled for the load balancer.
|
AccessLog |
withS3BucketName(java.lang.String s3BucketName)
The name of the Amazon S3 bucket where the access logs are stored.
|
AccessLog |
withS3BucketPrefix(java.lang.String s3BucketPrefix)
The logical hierarchy you created for your Amazon S3 bucket, for example
my-bucket-prefix/prod . |
private java.lang.Boolean enabled
Specifies whether access log is enabled for the load balancer.
private java.lang.String s3BucketName
The name of the Amazon S3 bucket where the access logs are stored.
private java.lang.Integer emitInterval
The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
Default: 60 minutes
private java.lang.String s3BucketPrefix
The logical hierarchy you created for your Amazon S3 bucket, for example
my-bucket-prefix/prod
. If the prefix is not provided, the
log is placed at the root level of the bucket.
public void setEnabled(java.lang.Boolean enabled)
Specifies whether access log is enabled for the load balancer.
enabled
- Specifies whether access log is enabled for the load balancer.public java.lang.Boolean getEnabled()
Specifies whether access log is enabled for the load balancer.
public AccessLog withEnabled(java.lang.Boolean enabled)
Specifies whether access log is enabled for the load balancer.
enabled
- Specifies whether access log is enabled for the load balancer.public java.lang.Boolean isEnabled()
Specifies whether access log is enabled for the load balancer.
public void setS3BucketName(java.lang.String s3BucketName)
The name of the Amazon S3 bucket where the access logs are stored.
s3BucketName
- The name of the Amazon S3 bucket where the access logs are stored.public java.lang.String getS3BucketName()
The name of the Amazon S3 bucket where the access logs are stored.
public AccessLog withS3BucketName(java.lang.String s3BucketName)
The name of the Amazon S3 bucket where the access logs are stored.
s3BucketName
- The name of the Amazon S3 bucket where the access logs are stored.public void setEmitInterval(java.lang.Integer emitInterval)
The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
Default: 60 minutes
emitInterval
- The interval for publishing the access logs. You can specify an
interval of either 5 minutes or 60 minutes.
Default: 60 minutes
public java.lang.Integer getEmitInterval()
The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
Default: 60 minutes
Default: 60 minutes
public AccessLog withEmitInterval(java.lang.Integer emitInterval)
The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
Default: 60 minutes
emitInterval
- The interval for publishing the access logs. You can specify an
interval of either 5 minutes or 60 minutes.
Default: 60 minutes
public void setS3BucketPrefix(java.lang.String s3BucketPrefix)
The logical hierarchy you created for your Amazon S3 bucket, for example
my-bucket-prefix/prod
. If the prefix is not provided, the
log is placed at the root level of the bucket.
s3BucketPrefix
- The logical hierarchy you created for your Amazon S3 bucket, for
example my-bucket-prefix/prod
. If the prefix is not
provided, the log is placed at the root level of the bucket.public java.lang.String getS3BucketPrefix()
The logical hierarchy you created for your Amazon S3 bucket, for example
my-bucket-prefix/prod
. If the prefix is not provided, the
log is placed at the root level of the bucket.
my-bucket-prefix/prod
. If the prefix is not
provided, the log is placed at the root level of the bucket.public AccessLog withS3BucketPrefix(java.lang.String s3BucketPrefix)
The logical hierarchy you created for your Amazon S3 bucket, for example
my-bucket-prefix/prod
. If the prefix is not provided, the
log is placed at the root level of the bucket.
s3BucketPrefix
- The logical hierarchy you created for your Amazon S3 bucket, for
example my-bucket-prefix/prod
. If the prefix is not
provided, the log is placed at the root level of the bucket.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 AccessLog clone()
clone
in class java.lang.Object