public class Origin
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private CustomHeaders |
customHeaders
A complex type that contains information about the custom headers
associated with this Origin.
|
private CustomOriginConfig |
customOriginConfig
A complex type that contains information about a custom origin.
|
private java.lang.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.
|
private java.lang.String |
id
A unique identifier for the origin.
|
private java.lang.String |
originPath
An optional element that causes CloudFront to request your content from a
directory in your Amazon S3 bucket or your custom origin.
|
private S3OriginConfig |
s3OriginConfig
A complex type that contains information about the Amazon S3 origin.
|
Constructor and Description |
---|
Origin() |
Modifier and Type | Method and Description |
---|---|
Origin |
clone() |
boolean |
equals(java.lang.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.
|
java.lang.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.
|
java.lang.String |
getId()
A unique identifier for the origin.
|
java.lang.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(java.lang.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(java.lang.String id)
A unique identifier for the origin.
|
void |
setOriginPath(java.lang.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.
|
java.lang.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(java.lang.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(java.lang.String id)
A unique identifier for the origin.
|
Origin |
withOriginPath(java.lang.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.
|
private java.lang.String id
private java.lang.String domainName
private java.lang.String originPath
private CustomHeaders customHeaders
private S3OriginConfig s3OriginConfig
private CustomOriginConfig customOriginConfig
public void setId(java.lang.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 java.lang.String getId()
public Origin withId(java.lang.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(java.lang.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 java.lang.String getDomainName()
public Origin withDomainName(java.lang.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(java.lang.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 java.lang.String getOriginPath()
public Origin withOriginPath(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Origin clone()
clone
in class java.lang.Object