@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 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 Amazon S3 origin.
|
String |
getOriginAccessIdentity()
The CloudFront origin access identity to associate with the RTMP distribution.
|
int |
hashCode() |
void |
setDomainName(String domainName)
The DNS name of the Amazon S3 origin.
|
void |
setOriginAccessIdentity(String originAccessIdentity)
The CloudFront origin access identity to associate with the RTMP distribution.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
S3Origin |
withDomainName(String domainName)
The DNS name of the Amazon S3 origin.
|
S3Origin |
withOriginAccessIdentity(String originAccessIdentity)
The CloudFront origin access identity to associate with the RTMP distribution.
|
public S3Origin()
public S3Origin(String domainName)
domainName
- The DNS name of the Amazon S3 origin.public S3Origin(String domainName, String originAccessIdentity)
domainName
- The DNS name of the Amazon S3 origin.originAccessIdentity
- The CloudFront origin access identity to associate with the RTMP distribution. Use an origin access
identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket
through CloudFront.
If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL,
specify an empty OriginAccessIdentity
element.
To delete the origin access identity from an existing distribution, update the distribution configuration
and include an empty OriginAccessIdentity
element.
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon Amazon CloudFront Developer Guide.
public void setDomainName(String domainName)
The DNS name of the Amazon S3 origin.
domainName
- The DNS name of the Amazon S3 origin.public String getDomainName()
The DNS name of the Amazon S3 origin.
public S3Origin withDomainName(String domainName)
The DNS name of the Amazon S3 origin.
domainName
- The DNS name of the Amazon S3 origin.public void setOriginAccessIdentity(String originAccessIdentity)
The CloudFront origin access identity to associate with the RTMP distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.
If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify
an empty OriginAccessIdentity
element.
To delete the origin access identity from an existing distribution, update the distribution configuration and
include an empty OriginAccessIdentity
element.
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon Amazon CloudFront Developer Guide.
originAccessIdentity
- The CloudFront origin access identity to associate with the RTMP distribution. Use an origin access
identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket
through CloudFront.
If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL,
specify an empty OriginAccessIdentity
element.
To delete the origin access identity from an existing distribution, update the distribution configuration
and include an empty OriginAccessIdentity
element.
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon Amazon CloudFront Developer Guide.
public String getOriginAccessIdentity()
The CloudFront origin access identity to associate with the RTMP distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.
If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify
an empty OriginAccessIdentity
element.
To delete the origin access identity from an existing distribution, update the distribution configuration and
include an empty OriginAccessIdentity
element.
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon Amazon CloudFront Developer Guide.
If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL,
specify an empty OriginAccessIdentity
element.
To delete the origin access identity from an existing distribution, update the distribution configuration
and include an empty OriginAccessIdentity
element.
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon Amazon CloudFront Developer Guide.
public S3Origin withOriginAccessIdentity(String originAccessIdentity)
The CloudFront origin access identity to associate with the RTMP distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.
If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify
an empty OriginAccessIdentity
element.
To delete the origin access identity from an existing distribution, update the distribution configuration and
include an empty OriginAccessIdentity
element.
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon Amazon CloudFront Developer Guide.
originAccessIdentity
- The CloudFront origin access identity to associate with the RTMP distribution. Use an origin access
identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket
through CloudFront.
If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL,
specify an empty OriginAccessIdentity
element.
To delete the origin access identity from an existing distribution, update the distribution configuration
and include an empty OriginAccessIdentity
element.
To replace the origin access identity, update the distribution configuration and specify the new origin access identity.
For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon Amazon CloudFront Developer Guide.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.