Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudfront.model
Class CloudFrontOriginAccessIdentity

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

public class CloudFrontOriginAccessIdentity
extends Object
implements Serializable

CloudFront origin access identity.

See Also:
Serialized Form

Constructor Summary
CloudFrontOriginAccessIdentity()
          Default constructor for a new CloudFrontOriginAccessIdentity object.
CloudFrontOriginAccessIdentity(String id, String s3CanonicalUserId)
          Constructs a new CloudFrontOriginAccessIdentity object.
 
Method Summary
 boolean equals(Object obj)
           
 CloudFrontOriginAccessIdentityConfig getCloudFrontOriginAccessIdentityConfig()
          The current configuration information for the identity.
 String getId()
          The ID for the origin access identity.
 String getS3CanonicalUserId()
          The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.
 int hashCode()
           
 void setCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig)
          The current configuration information for the identity.
 void setId(String id)
          The ID for the origin access identity.
 void setS3CanonicalUserId(String s3CanonicalUserId)
          The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 CloudFrontOriginAccessIdentity withCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig)
          The current configuration information for the identity.
 CloudFrontOriginAccessIdentity withId(String id)
          The ID for the origin access identity.
 CloudFrontOriginAccessIdentity withS3CanonicalUserId(String s3CanonicalUserId)
          The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CloudFrontOriginAccessIdentity

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


CloudFrontOriginAccessIdentity

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

Parameters:
id - The ID for the origin access identity. For example: E74FTE3AJFJ256A.
s3CanonicalUserId - The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.
Method Detail

getId

public String getId()
The ID for the origin access identity. For example: E74FTE3AJFJ256A.

Returns:
The ID for the origin access identity. For example: E74FTE3AJFJ256A.

setId

public void setId(String id)
The ID for the origin access identity. For example: E74FTE3AJFJ256A.

Parameters:
id - The ID for the origin access identity. For example: E74FTE3AJFJ256A.

withId

public CloudFrontOriginAccessIdentity withId(String id)
The ID for the origin access identity. For example: E74FTE3AJFJ256A.

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

Parameters:
id - The ID for the origin access identity. For example: E74FTE3AJFJ256A.
Returns:
A reference to this updated object so that method calls can be chained together.

getS3CanonicalUserId

public String getS3CanonicalUserId()
The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.

Returns:
The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.

setS3CanonicalUserId

public void setS3CanonicalUserId(String s3CanonicalUserId)
The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.

Parameters:
s3CanonicalUserId - The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.

withS3CanonicalUserId

public CloudFrontOriginAccessIdentity withS3CanonicalUserId(String s3CanonicalUserId)
The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.

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

Parameters:
s3CanonicalUserId - The Amazon S3 canonical user ID for the origin access identity, which you use when giving the origin access identity read permission to an object in Amazon S3.
Returns:
A reference to this updated object so that method calls can be chained together.

getCloudFrontOriginAccessIdentityConfig

public CloudFrontOriginAccessIdentityConfig getCloudFrontOriginAccessIdentityConfig()
The current configuration information for the identity.

Returns:
The current configuration information for the identity.

setCloudFrontOriginAccessIdentityConfig

public void setCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig)
The current configuration information for the identity.

Parameters:
cloudFrontOriginAccessIdentityConfig - The current configuration information for the identity.

withCloudFrontOriginAccessIdentityConfig

public CloudFrontOriginAccessIdentity withCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig)
The current configuration information for the identity.

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

Parameters:
cloudFrontOriginAccessIdentityConfig - The current configuration information for the 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.