Class CloudFrontOriginAccessIdentity
java.lang.Object
com.amazonaws.services.cloudfront.model.CloudFrontOriginAccessIdentity
- All Implemented Interfaces:
Serializable
,Cloneable
CloudFront origin access identity.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for CloudFrontOriginAccessIdentity object.CloudFrontOriginAccessIdentity
(String id, String s3CanonicalUserId) Constructs a new CloudFrontOriginAccessIdentity object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The current configuration information for the identity.getId()
The ID for the origin access identity.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
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.toString()
Returns a string representation of this object; useful for testing and debugging.withCloudFrontOriginAccessIdentityConfig
(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig) The current configuration information for the identity.The ID for the origin access identity.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.
-
Constructor Details
-
CloudFrontOriginAccessIdentity
public CloudFrontOriginAccessIdentity()Default constructor for CloudFrontOriginAccessIdentity object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
CloudFrontOriginAccessIdentity
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 Details
-
setId
The ID for the origin access identity. For example: E74FTE3AJFJ256A.- Parameters:
id
- The ID for the origin access identity. For example: E74FTE3AJFJ256A.
-
getId
The ID for the origin access identity. For example: E74FTE3AJFJ256A.- Returns:
- The ID for the origin access identity. For example: E74FTE3AJFJ256A.
-
withId
The ID for the origin access identity. For example: E74FTE3AJFJ256A.- Parameters:
id
- The ID for the origin access identity. For example: E74FTE3AJFJ256A.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setS3CanonicalUserId
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.
-
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.
-
withS3CanonicalUserId
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCloudFrontOriginAccessIdentityConfig
public void setCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig) The current configuration information for the identity.- Parameters:
cloudFrontOriginAccessIdentityConfig
- The current configuration information for the identity.
-
getCloudFrontOriginAccessIdentityConfig
The current configuration information for the identity.- Returns:
- The current configuration information for the identity.
-
withCloudFrontOriginAccessIdentityConfig
public CloudFrontOriginAccessIdentity withCloudFrontOriginAccessIdentityConfig(CloudFrontOriginAccessIdentityConfig cloudFrontOriginAccessIdentityConfig) The current configuration information for the identity.- Parameters:
cloudFrontOriginAccessIdentityConfig
- The current configuration information for the identity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-