Class LoggingStatus

java.lang.Object
org.jets3t.service.model.cloudfront.LoggingStatus

public class LoggingStatus extends Object
Represents the logging status of a CloudFront distribution.

For logging to be enabled, both the bucket and prefix properties must be non-null and the named bucket must exist.

Author:
James Murty
  • Constructor Details

    • LoggingStatus

      public LoggingStatus()
    • LoggingStatus

      public LoggingStatus(String bucket, String prefix)
      Parameters:
      bucket - the Amazon S3 bucket in which log files will be stored, specified as a full S3 sub-domain path (e.g. 'jets3t.s3.amazonaws.com' for the 'jets3t' bucket)
      prefix - a prefix to apply to log file names. May be an empty string, but cannot be null.
  • Method Details

    • getPrefix

      public String getPrefix()
    • setPrefix

      public void setPrefix(String prefix)
      Parameters:
      prefix - a prefix to apply to log file names. May be an empty string, but cannot be null.
    • getBucket

      public String getBucket()
    • getShortBucketName

      public String getShortBucketName()
      Returns:
      the logging bucket name, without the suffix ".s3.amazonaws.com".
    • setBucket

      public void setBucket(String bucket)
      Parameters:
      bucket - the Amazon S3 bucket in which log files will be stored, specified as a full S3 sub-domain path (e.g. 'jets3t.s3.amazonaws.com' for the 'jets3t' bucket)