Class CloudFrontOriginAccessIdentity

java.lang.Object
com.amazonaws.services.cloudfront.model.CloudFrontOriginAccessIdentity
All Implemented Interfaces:
Serializable, Cloneable

public class CloudFrontOriginAccessIdentity extends Object implements Serializable, Cloneable
CloudFront origin access identity.
See Also:
  • 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

      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 Details

    • 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.
    • 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.
    • 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

      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.
    • 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.
    • 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.
      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

      public CloudFrontOriginAccessIdentityConfig 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

      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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      Overrides:
      clone in class Object