@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsCloudFrontDistributionLogging extends Object implements Serializable, Cloneable, StructuredPojo
A complex type that controls whether access logs are written for the distribution.
Constructor and Description |
---|
AwsCloudFrontDistributionLogging() |
Modifier and Type | Method and Description |
---|---|
AwsCloudFrontDistributionLogging |
clone() |
boolean |
equals(Object obj) |
String |
getBucket()
The Amazon S3 bucket to store the access logs in.
|
Boolean |
getEnabled()
With this field, you can enable or disable the selected distribution.
|
Boolean |
getIncludeCookies()
Specifies whether you want CloudFront to include cookies in access logs.
|
String |
getPrefix()
An optional string that you want CloudFront to use as a prefix to the access log filenames for this distribution.
|
int |
hashCode() |
Boolean |
isEnabled()
With this field, you can enable or disable the selected distribution.
|
Boolean |
isIncludeCookies()
Specifies whether you want CloudFront to include cookies in access logs.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBucket(String bucket)
The Amazon S3 bucket to store the access logs in.
|
void |
setEnabled(Boolean enabled)
With this field, you can enable or disable the selected distribution.
|
void |
setIncludeCookies(Boolean includeCookies)
Specifies whether you want CloudFront to include cookies in access logs.
|
void |
setPrefix(String prefix)
An optional string that you want CloudFront to use as a prefix to the access log filenames for this distribution.
|
String |
toString()
Returns a string representation of this object.
|
AwsCloudFrontDistributionLogging |
withBucket(String bucket)
The Amazon S3 bucket to store the access logs in.
|
AwsCloudFrontDistributionLogging |
withEnabled(Boolean enabled)
With this field, you can enable or disable the selected distribution.
|
AwsCloudFrontDistributionLogging |
withIncludeCookies(Boolean includeCookies)
Specifies whether you want CloudFront to include cookies in access logs.
|
AwsCloudFrontDistributionLogging |
withPrefix(String prefix)
An optional string that you want CloudFront to use as a prefix to the access log filenames for this distribution.
|
public void setBucket(String bucket)
The Amazon S3 bucket to store the access logs in.
bucket
- The Amazon S3 bucket to store the access logs in.public String getBucket()
The Amazon S3 bucket to store the access logs in.
public AwsCloudFrontDistributionLogging withBucket(String bucket)
The Amazon S3 bucket to store the access logs in.
bucket
- The Amazon S3 bucket to store the access logs in.public void setEnabled(Boolean enabled)
With this field, you can enable or disable the selected distribution.
enabled
- With this field, you can enable or disable the selected distribution.public Boolean getEnabled()
With this field, you can enable or disable the selected distribution.
public AwsCloudFrontDistributionLogging withEnabled(Boolean enabled)
With this field, you can enable or disable the selected distribution.
enabled
- With this field, you can enable or disable the selected distribution.public Boolean isEnabled()
With this field, you can enable or disable the selected distribution.
public void setIncludeCookies(Boolean includeCookies)
Specifies whether you want CloudFront to include cookies in access logs.
includeCookies
- Specifies whether you want CloudFront to include cookies in access logs.public Boolean getIncludeCookies()
Specifies whether you want CloudFront to include cookies in access logs.
public AwsCloudFrontDistributionLogging withIncludeCookies(Boolean includeCookies)
Specifies whether you want CloudFront to include cookies in access logs.
includeCookies
- Specifies whether you want CloudFront to include cookies in access logs.public Boolean isIncludeCookies()
Specifies whether you want CloudFront to include cookies in access logs.
public void setPrefix(String prefix)
An optional string that you want CloudFront to use as a prefix to the access log filenames for this distribution.
prefix
- An optional string that you want CloudFront to use as a prefix to the access log filenames for this
distribution.public String getPrefix()
An optional string that you want CloudFront to use as a prefix to the access log filenames for this distribution.
public AwsCloudFrontDistributionLogging withPrefix(String prefix)
An optional string that you want CloudFront to use as a prefix to the access log filenames for this distribution.
prefix
- An optional string that you want CloudFront to use as a prefix to the access log filenames for this
distribution.public String toString()
toString
in class Object
Object.toString()
public AwsCloudFrontDistributionLogging clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.