use of com.amazonaws.services.dynamodbv2.datamodeling.DynamoDBAttribute in project qpp-conversion-tool by CMSgov.
the class Metadata method getCpcProcessedCreateDate.
/**
* Returns an attribute that combines the CPC+ processed state and the date of creation.
*
* This is mostly useful in the CPC+ global secondary index.
*
* @return The combined attribute.
*/
@DoNotEncrypt
@DynamoDBAttribute(attributeName = Constants.DYNAMO_CPC_PROCESSED_CREATE_DATE_ATTRIBUTE)
public String getCpcProcessedCreateDate() {
String combination = null;
if (cpcProcessed != null) {
DateTimeFormatter formatter = DateTimeFormatter.ISO_INSTANT;
combination = cpcProcessed.toString() + "#" + formatter.format(createdDate);
}
return combination;
}
Aggregations