public class S3Origin extends Object implements Serializable, Cloneable
A complex type that contains information about the Amazon S3 bucket from which you want CloudFront to get your media files for distribution.
| Constructor and Description |
|---|
S3Origin()
Default constructor for a new S3Origin object.
|
S3Origin(String domainName)
Constructs a new S3Origin object.
|
S3Origin(String domainName,
String originAccessIdentity)
Constructs a new S3Origin object.
|
| Modifier and Type | Method and Description |
|---|---|
S3Origin |
clone() |
boolean |
equals(Object obj) |
String |
getDomainName()
The DNS name of the S3 origin.
|
String |
getOriginAccessIdentity()
Your S3 origin's origin access identity.
|
int |
hashCode() |
void |
setDomainName(String domainName)
The DNS name of the S3 origin.
|
void |
setOriginAccessIdentity(String originAccessIdentity)
Your S3 origin's origin access identity.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
S3Origin |
withDomainName(String domainName)
The DNS name of the S3 origin.
|
S3Origin |
withOriginAccessIdentity(String originAccessIdentity)
Your S3 origin's origin access identity.
|
public S3Origin()
public S3Origin(String domainName)
domainName - The DNS name of the S3 origin.public S3Origin(String domainName, String originAccessIdentity)
domainName - The DNS name of the S3 origin.originAccessIdentity - Your S3 origin's origin access identity.public String getDomainName()
public void setDomainName(String domainName)
domainName - The DNS name of the S3 origin.public S3Origin withDomainName(String domainName)
Returns a reference to this object so that method calls can be chained together.
domainName - The DNS name of the S3 origin.public String getOriginAccessIdentity()
public void setOriginAccessIdentity(String originAccessIdentity)
originAccessIdentity - Your S3 origin's origin access identity.public S3Origin withOriginAccessIdentity(String originAccessIdentity)
Returns a reference to this object so that method calls can be chained together.
originAccessIdentity - Your S3 origin's origin access identity.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.