Class S3Object


  • public class S3Object
    extends Object
    Represents an object as discovered on S3.
    • Constructor Detail

      • S3Object

        public S3Object​(String objectName)
        Constructs a new S3Object for the given object name.
        Parameters:
        objectName - the target object name
      • S3Object

        public S3Object​(String objectName,
                        String cwaHash)
        Constructs a new S3Object for the given object name.
        Parameters:
        objectName - the target object name
        cwaHash - the checksum for that file
    • Method Detail

      • getObjectName

        public String getObjectName()
      • getCwaHash

        public String getCwaHash()
      • isDiagnosisKeyFile

        public boolean isDiagnosisKeyFile()
        Indicates if the S3 object is a file with diagnosis key content. The evaluation is based on the distribution logic which implies that such files are generated with a Date / Hour S3 key format (days: 1-31 / hours: 0-23) ending in 2 digits.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object