Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront.model
Class CloudFrontOriginAccessIdentityConfig

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

public class CloudFrontOriginAccessIdentityConfig
extends Object
implements Serializable

Origin access identity configuration.

See Also:
Serialized Form

Constructor Summary
CloudFrontOriginAccessIdentityConfig()
          Default constructor for a new CloudFrontOriginAccessIdentityConfig object.
CloudFrontOriginAccessIdentityConfig(String callerReference)
          Constructs a new CloudFrontOriginAccessIdentityConfig object.
 
Method Summary
 boolean equals(Object obj)
           
 String getCallerReference()
          A unique number that ensures the request can't be replayed.
 String getComment()
          Any comments you want to include about the origin access identity.
 int hashCode()
           
 void setCallerReference(String callerReference)
          A unique number that ensures the request can't be replayed.
 void setComment(String comment)
          Any comments you want to include about the origin access identity.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CloudFrontOriginAccessIdentityConfig withCallerReference(String callerReference)
          A unique number that ensures the request can't be replayed.
 CloudFrontOriginAccessIdentityConfig withComment(String comment)
          Any comments you want to include about the origin access identity.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CloudFrontOriginAccessIdentityConfig

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


CloudFrontOriginAccessIdentityConfig

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

Parameters:
callerReference - A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.
Method Detail

getCallerReference

public String getCallerReference()
A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.

Returns:
A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.

setCallerReference

public void setCallerReference(String callerReference)
A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.

Parameters:
callerReference - A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.

withCallerReference

public CloudFrontOriginAccessIdentityConfig withCallerReference(String callerReference)
A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.

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

Parameters:
callerReference - A unique number that ensures the request can't be replayed. If the CallerReference is new (no matter the content of the CloudFrontOriginAccessIdentityConfig object), a new origin access identity is created. If the CallerReference is a value you already sent in a previous request to create an identity, and the content of the CloudFrontOriginAccessIdentityConfig is identical to the original request (ignoring white space), the response includes the same information returned to the original request. If the CallerReference is a value you already sent in a previous request to create an identity but the content of the CloudFrontOriginAccessIdentityConfig is different from the original request, CloudFront returns a CloudFrontOriginAccessIdentityAlreadyExists error.
Returns:
A reference to this updated object so that method calls can be chained together.

getComment

public String getComment()
Any comments you want to include about the origin access identity.

Returns:
Any comments you want to include about the origin access identity.

setComment

public void setComment(String comment)
Any comments you want to include about the origin access identity.

Parameters:
comment - Any comments you want to include about the origin access identity.

withComment

public CloudFrontOriginAccessIdentityConfig withComment(String comment)
Any comments you want to include about the origin access identity.

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

Parameters:
comment - Any comments you want to include about the 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.