public class CloudFrontOriginAccessIdentity extends Object implements Serializable
CloudFront origin access identity.
Constructor and Description |
---|
CloudFrontOriginAccessIdentity()
Default constructor for a new CloudFrontOriginAccessIdentity object.
|
CloudFrontOriginAccessIdentity(String id,
String s3CanonicalUserId)
Constructs a new CloudFrontOriginAccessIdentity object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public CloudFrontOriginAccessIdentity()
public CloudFrontOriginAccessIdentity(String id, String s3CanonicalUserId)
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.public String getId()
public void setId(String id)
id
- The ID for the origin access identity. For example: E74FTE3AJFJ256A.public CloudFrontOriginAccessIdentity withId(String id)
Returns a reference to this object so that method calls can be chained together.
id
- The ID for the origin access identity. For example: E74FTE3AJFJ256A.public String getS3CanonicalUserId()
public void setS3CanonicalUserId(String s3CanonicalUserId)
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.public CloudFrontOriginAccessIdentity withS3CanonicalUserId(String s3CanonicalUserId)
Returns a reference to this object so that method calls can be chained together.
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.public CloudFrontOriginAccessIdentityConfig getCloudFrontOriginAccessIdentityConfig()
public void setCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig)
cloudFrontOriginAccessIdentityConfig
- The current configuration information for the identity.public CloudFrontOriginAccessIdentity withCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig)
Returns a reference to this object so that method calls can be chained together.
cloudFrontOriginAccessIdentityConfig
- The current configuration information for the identity.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.