public class CloudFrontOriginAccessIdentity
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private CloudFrontOriginAccessIdentityConfig |
cloudFrontOriginAccessIdentityConfig
The current configuration information for the identity.
|
private java.lang.String |
id
The ID for the origin access identity.
|
private java.lang.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.
|
Constructor and Description |
---|
CloudFrontOriginAccessIdentity()
Default constructor for CloudFrontOriginAccessIdentity object.
|
CloudFrontOriginAccessIdentity(java.lang.String id,
java.lang.String s3CanonicalUserId)
Constructs a new CloudFrontOriginAccessIdentity object.
|
Modifier and Type | Method and Description |
---|---|
CloudFrontOriginAccessIdentity |
clone() |
boolean |
equals(java.lang.Object obj) |
CloudFrontOriginAccessIdentityConfig |
getCloudFrontOriginAccessIdentityConfig()
The current configuration information for the identity.
|
java.lang.String |
getId()
The ID for the origin access identity.
|
java.lang.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(java.lang.String id)
The ID for the origin access identity.
|
void |
setS3CanonicalUserId(java.lang.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.
|
java.lang.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(java.lang.String id)
The ID for the origin access identity.
|
CloudFrontOriginAccessIdentity |
withS3CanonicalUserId(java.lang.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.
|
private java.lang.String id
private java.lang.String s3CanonicalUserId
private CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig
public CloudFrontOriginAccessIdentity()
public CloudFrontOriginAccessIdentity(java.lang.String id, java.lang.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 void setId(java.lang.String id)
id
- The ID for the origin access identity. For example:
E74FTE3AJFJ256A.public java.lang.String getId()
public CloudFrontOriginAccessIdentity withId(java.lang.String id)
id
- The ID for the origin access identity. For example:
E74FTE3AJFJ256A.public void setS3CanonicalUserId(java.lang.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 java.lang.String getS3CanonicalUserId()
public CloudFrontOriginAccessIdentity withS3CanonicalUserId(java.lang.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 void setCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig)
cloudFrontOriginAccessIdentityConfig
- The current configuration information for the identity.public CloudFrontOriginAccessIdentityConfig getCloudFrontOriginAccessIdentityConfig()
public CloudFrontOriginAccessIdentity withCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig)
cloudFrontOriginAccessIdentityConfig
- The current configuration information for the identity.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CloudFrontOriginAccessIdentity clone()
clone
in class java.lang.Object