com.amazonaws.services.cloudfront.model
Class S3Origin

java.lang.Object
  extended by com.amazonaws.services.cloudfront.model.S3Origin

public class S3Origin
extends Object

Your S3 origin bucket.


Constructor Summary
S3Origin()
          Default constructor for a new S3Origin object.
S3Origin(String dNSName)
          Constructs a new S3Origin object.
S3Origin(String dNSName, String originAccessIdentity)
          Constructs a new S3Origin object.
 
Method Summary
 boolean equals(Object obj)
           
 String getDNSName()
          The DNS name of the S3 origin.
 String getOriginAccessIdentity()
          Your S3 origin's origin access identity.
 int hashCode()
           
 void setDNSName(String dNSName)
          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 withDNSName(String dNSName)
          The DNS name of the S3 origin.
 S3Origin withOriginAccessIdentity(String originAccessIdentity)
          Your S3 origin's origin access identity.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

S3Origin

public S3Origin()
Default constructor for a new S3Origin object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


S3Origin

public S3Origin(String dNSName)
Constructs a new S3Origin object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
dNSName - The DNS name of the S3 origin.

S3Origin

public S3Origin(String dNSName,
                String originAccessIdentity)
Constructs a new S3Origin object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
dNSName - The DNS name of the S3 origin.
originAccessIdentity - Your S3 origin's origin access identity.
Method Detail

getDNSName

public String getDNSName()
The DNS name of the S3 origin.

Returns:
The DNS name of the S3 origin.

setDNSName

public void setDNSName(String dNSName)
The DNS name of the S3 origin.

Parameters:
dNSName - The DNS name of the S3 origin.

withDNSName

public S3Origin withDNSName(String dNSName)
The DNS name of the S3 origin.

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

Parameters:
dNSName - The DNS name of the S3 origin.
Returns:
A reference to this updated object so that method calls can be chained together.

getOriginAccessIdentity

public String getOriginAccessIdentity()
Your S3 origin's origin access identity.

Returns:
Your S3 origin's origin access identity.

setOriginAccessIdentity

public void setOriginAccessIdentity(String originAccessIdentity)
Your S3 origin's origin access identity.

Parameters:
originAccessIdentity - Your S3 origin's origin access identity.

withOriginAccessIdentity

public S3Origin withOriginAccessIdentity(String originAccessIdentity)
Your S3 origin's origin access identity.

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

Parameters:
originAccessIdentity - Your S3 origin's origin access identity.
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.