public class AccessLog
extends java.lang.Object
implements java.io.Serializable
Information about the AccessLog
attribute.
Constructor and Description |
---|
AccessLog() |
Modifier and Type | Method and Description |
---|---|
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 . |
public java.lang.Boolean isEnabled()
Specifies whether access log is enabled for the load balancer.
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.
Specifies whether access log is enabled for the load balancer.
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 AccessLog withEnabled(java.lang.Boolean enabled)
Specifies whether access log is enabled for the load balancer.
Returns a reference to this object so that method calls can be chained together.
enabled
- Specifies whether access log is enabled for the load balancer.
public java.lang.String getS3BucketName()
The name of the Amazon S3 bucket where the access logs are stored.
The name of the Amazon S3 bucket where the access logs are stored.
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 AccessLog withS3BucketName(java.lang.String s3BucketName)
The name of the Amazon S3 bucket where the access logs are stored.
Returns a reference to this object so that method calls can be chained together.
s3BucketName
- The name of the Amazon S3 bucket where the access logs are stored.
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
The interval for publishing the access logs. You can specify an interval of either 5 minutes or 60 minutes.
Default: 60 minutes
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 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
Returns a reference to this object so that method calls can be chained together.
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.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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.