Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront.model
Class Origin

java.lang.Object
  extended by com.amazonaws.services.cloudfront.model.Origin
All Implemented Interfaces:
Serializable

public class Origin
extends Object
implements Serializable

A complex type that describes the Amazon S3 bucket or the HTTP server (for example, a web server) from which CloudFront gets your files.You must create at least one origin.

See Also:
Serialized Form

Constructor Summary
Origin()
           
 
Method Summary
 boolean equals(Object obj)
           
 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.
 S3OriginConfig getS3OriginConfig()
          A complex type that contains information about the Amazon S3 origin.
 int hashCode()
           
 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 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 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 withS3OriginConfig(S3OriginConfig s3OriginConfig)
          A complex type that contains information about the Amazon S3 origin.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Origin

public Origin()
Method Detail

getId

public String getId()
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.

Returns:
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.

setId

public void setId(String 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.

Parameters:
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.

withId

public Origin withId(String 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getDomainName

public 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. 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.

Returns:
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.

setDomainName

public 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. 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.

Parameters:
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.

withDomainName

public 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. 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

getS3OriginConfig

public S3OriginConfig getS3OriginConfig()
A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.

Returns:
A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.

setS3OriginConfig

public void setS3OriginConfig(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.

Parameters:
s3OriginConfig - A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.

withS3OriginConfig

public Origin withS3OriginConfig(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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
s3OriginConfig - A complex type that contains information about the Amazon S3 origin. If the origin is a custom origin, use the CustomOriginConfig element instead.
Returns:
A reference to this updated object so that method calls can be chained together.

getCustomOriginConfig

public CustomOriginConfig getCustomOriginConfig()
A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.

Returns:
A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.

setCustomOriginConfig

public void setCustomOriginConfig(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.

Parameters:
customOriginConfig - A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.

withCustomOriginConfig

public Origin withCustomOriginConfig(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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
customOriginConfig - A complex type that contains information about a custom origin. If the origin is an Amazon S3 bucket, use the S3OriginConfig element instead.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.