org.jets3t.service.model.cloudfront
Class S3Origin

java.lang.Object
  extended by org.jets3t.service.model.cloudfront.Origin
      extended by org.jets3t.service.model.cloudfront.S3Origin

public class S3Origin
extends Origin


Field Summary
static java.lang.String ORIGIN_ACCESS_IDENTITY_PREFIX
           
 
Constructor Summary
S3Origin(java.lang.String dnsName)
          An S3 bucket origin.
S3Origin(java.lang.String dnsName, java.lang.String originAccessIdentity)
          An S3 bucket origin.
 
Method Summary
 java.lang.String getOriginAccessIdentity()
           
 java.lang.String getOriginAsBucketName()
           
 java.lang.String toString()
           
 
Methods inherited from class org.jets3t.service.model.cloudfront.Origin
getDnsName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ORIGIN_ACCESS_IDENTITY_PREFIX

public static final java.lang.String ORIGIN_ACCESS_IDENTITY_PREFIX
See Also:
Constant Field Values
Constructor Detail

S3Origin

public S3Origin(java.lang.String dnsName,
                java.lang.String originAccessIdentity)
An S3 bucket origin.

Parameters:
dnsName - a full S3 sub-domain path (e.g. 'jets3t.s3.amazonaws.com' for the 'jets3t' bucket)
originAccessIdentity - Identifier of the origin access identity that can authorize access to S3 objects via a private distribution. If provided the distribution will be private, if null the distribution will be be public.

S3Origin

public S3Origin(java.lang.String dnsName)
An S3 bucket origin.

Parameters:
dnsName - a full S3 sub-domain path (e.g. 'jets3t.s3.amazonaws.com' for the 'jets3t' bucket)
Method Detail

getOriginAccessIdentity

public java.lang.String getOriginAccessIdentity()

getOriginAsBucketName

public java.lang.String getOriginAsBucketName()
Returns:
the origin bucket's name, without the suffix ".s3.amazonaws.com"

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object