Class S3Origin

    • Method Detail

      • domainName

        public final String domainName()

        The DNS name of the Amazon S3 origin.

        Returns:
        The DNS name of the Amazon S3 origin.
      • originAccessIdentity

        public final String originAccessIdentity()

        The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.

        If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element.

        To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element.

        To replace the origin access identity, update the distribution configuration and specify the new origin access identity.

        For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon CloudFront Developer Guide.

        Returns:
        The CloudFront origin access identity to associate with the distribution. Use an origin access identity to configure the distribution so that end users can only access objects in an Amazon S3 bucket through CloudFront.

        If you want end users to be able to access objects using either the CloudFront URL or the Amazon S3 URL, specify an empty OriginAccessIdentity element.

        To delete the origin access identity from an existing distribution, update the distribution configuration and include an empty OriginAccessIdentity element.

        To replace the origin access identity, update the distribution configuration and specify the new origin access identity.

        For more information, see Using an Origin Access Identity to Restrict Access to Your Amazon S3 Content in the Amazon CloudFront Developer Guide.

      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)