Class S3Object
- java.lang.Object
-
- app.coronawarn.server.services.distribution.objectstore.client.S3Object
-
public class S3Object extends Object
Represents an object as discovered on S3.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCwaHash()
String
getObjectName()
int
hashCode()
boolean
isDiagnosisKeyFile()
Indicates if the S3 object is a file with diagnosis key content.
-
-
-
Constructor Detail
-
S3Object
public S3Object(String objectName)
Constructs a new S3Object for the given object name.- Parameters:
objectName
- the target object name
-
-
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.
-
-