public StreamingLoggingConfig withBucket(String bucket) {
        setBucket(bucket);
        return this;
    }
<p>
The Amazon S3 bucket to store the access logs in, for example, <code>myawslogbucket.s3.amazonaws.com</code>.
</p>

@param bucket
       The Amazon S3 bucket to store the access logs in, for example,
       <code>myawslogbucket.s3.amazonaws.com</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-cloudfront/src/main/java/com/amazonaws/services/cloudfront/model/StreamingLoggingConfig.java