public class Origin extends Object implements Serializable, Cloneable
Constructor and Description |
---|
Origin() |
Modifier and Type | Method and Description |
---|---|
Origin |
clone() |
boolean |
equals(Object obj) |
CustomHeaders |
getCustomHeaders()
A complex type that contains information about the custom headers
associated with this Origin.
|
CustomOriginConfig |
getCustomOriginConfig()
A complex type that contains information about a custom origin.
|
String |
getDomainName()
Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you
want CloudFront to get objects for this origin, for example,
myawsbucket.s3.amazonaws.com.
|
String |
getId()
A unique identifier for the origin.
|
String |
getOriginPath()
An optional element that causes CloudFront to request your content from a
directory in your Amazon S3 bucket or your custom origin.
|
S3OriginConfig |
getS3OriginConfig()
A complex type that contains information about the Amazon S3 origin.
|
int |
hashCode() |
void |
setCustomHeaders(CustomHeaders customHeaders)
A complex type that contains information about the custom headers
associated with this Origin.
|
void |
setCustomOriginConfig(CustomOriginConfig customOriginConfig)
A complex type that contains information about a custom origin.
|
void |
setDomainName(String domainName)
Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you
want CloudFront to get objects for this origin, for example,
myawsbucket.s3.amazonaws.com.
|
void |
setId(String id)
A unique identifier for the origin.
|
void |
setOriginPath(String originPath)
An optional element that causes CloudFront to request your content from a
directory in your Amazon S3 bucket or your custom origin.
|
void |
setS3OriginConfig(S3OriginConfig s3OriginConfig)
A complex type that contains information about the Amazon S3 origin.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Origin |
withCustomHeaders(CustomHeaders customHeaders)
A complex type that contains information about the custom headers
associated with this Origin.
|
Origin |
withCustomOriginConfig(CustomOriginConfig customOriginConfig)
A complex type that contains information about a custom origin.
|
Origin |
withDomainName(String domainName)
Amazon S3 origins: The DNS name of the Amazon S3 bucket from which you
want CloudFront to get objects for this origin, for example,
myawsbucket.s3.amazonaws.com.
|
Origin |
withId(String id)
A unique identifier for the origin.
|
Origin |
withOriginPath(String originPath)
An optional element that causes CloudFront to request your content from a
directory in your Amazon S3 bucket or your custom origin.
|
Origin |
withS3OriginConfig(S3OriginConfig s3OriginConfig)
A complex type that contains information about the Amazon S3 origin.
|
public void setId(String id)
id
- A unique identifier for the origin. The value of Id must be unique
within the distribution. You use the value of Id when you create a
cache behavior. The Id identifies the origin that CloudFront
routes a request to when the request matches the path pattern for
that cache behavior.public String getId()
public Origin withId(String id)
id
- A unique identifier for the origin. The value of Id must be unique
within the distribution. You use the value of Id when you create a
cache behavior. The Id identifies the origin that CloudFront
routes a request to when the request matches the path pattern for
that cache behavior.public void setDomainName(String domainName)
domainName
- Amazon S3 origins: The DNS name of the Amazon S3 bucket from which
you want CloudFront to get objects for this origin, for example,
myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name
for the HTTP server from which you want CloudFront to get objects
for this origin, for example, www.example.com.public String getDomainName()
public Origin withDomainName(String domainName)
domainName
- Amazon S3 origins: The DNS name of the Amazon S3 bucket from which
you want CloudFront to get objects for this origin, for example,
myawsbucket.s3.amazonaws.com. Custom origins: The DNS domain name
for the HTTP server from which you want CloudFront to get objects
for this origin, for example, www.example.com.public void setOriginPath(String originPath)
originPath
- An optional element that causes CloudFront to request your content
from a directory in your Amazon S3 bucket or your custom origin.
When you include the OriginPath element, specify the directory
name, beginning with a /. CloudFront appends the directory name to
the value of DomainName.public String getOriginPath()
public Origin withOriginPath(String originPath)
originPath
- An optional element that causes CloudFront to request your content
from a directory in your Amazon S3 bucket or your custom origin.
When you include the OriginPath element, specify the directory
name, beginning with a /. CloudFront appends the directory name to
the value of DomainName.public void setCustomHeaders(CustomHeaders customHeaders)
customHeaders
- A complex type that contains information about the custom headers
associated with this Origin.public CustomHeaders getCustomHeaders()
public Origin withCustomHeaders(CustomHeaders customHeaders)
customHeaders
- A complex type that contains information about the custom headers
associated with this Origin.public void setS3OriginConfig(S3OriginConfig s3OriginConfig)
s3OriginConfig
- A complex type that contains information about the Amazon S3
origin. If the origin is a custom origin, use the
CustomOriginConfig element instead.public S3OriginConfig getS3OriginConfig()
public Origin withS3OriginConfig(S3OriginConfig s3OriginConfig)
s3OriginConfig
- A complex type that contains information about the Amazon S3
origin. If the origin is a custom origin, use the
CustomOriginConfig element instead.public void setCustomOriginConfig(CustomOriginConfig customOriginConfig)
customOriginConfig
- A complex type that contains information about a custom origin. If
the origin is an Amazon S3 bucket, use the S3OriginConfig element
instead.public CustomOriginConfig getCustomOriginConfig()
public Origin withCustomOriginConfig(CustomOriginConfig customOriginConfig)
customOriginConfig
- A complex type that contains information about a custom origin. If
the origin is an Amazon S3 bucket, use the S3OriginConfig element
instead.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.