public ProvisionedThroughputDescription getProvisionedThroughputDescription() {
return throughputDescription;
}
public void setProvisionedThroughput(ProvisionedThroughput throughput) {
ProvisionedThroughputDescription desc = new ProvisionedThroughputDescription();
desc.setReadCapacityUnits(throughput.getReadCapacityUnits());
desc.setWriteCapacityUnits(throughput.getWriteCapacityUnits());
ProvisionedThroughputDescription oldThroughput = getProvisionedThroughputDescription();
if (oldThroughput != null) {
if (throughput.getReadCapacityUnits() > oldThroughput.getReadCapacityUnits() || throughput.getWriteCapacityUnits() > oldThroughput.getWriteCapacityUnits()) {
lastIncreaseDateTime = new Date();
}
if (throughput.getReadCapacityUnits() > oldThroughput.getReadCapacityUnits() || throughput.getWriteCapacityUnits() > oldThroughput.getWriteCapacityUnits()) {
lastDecreaseDateTime = new Date();
}
}
desc.setLastIncreaseDateTime(lastIncreaseDateTime);
desc.setLastDecreaseDateTime(lastDecreaseDateTime);