DynamoDB - Specify two index names @DynamoDbIndexHashkey globalSecondaryIndexName

You have to specify the index names in a String array globalSecondaryIndexNames:

@DynamoDBIndexHashKey( attributeName = "placeid" globalSecondaryIndexNames={  "placeid-starttime-index","placeid-endtime-index"} )
private String placeid;

The @dynamodbindexhashkey annotation also takes an array for the index names.

Check below link for documentation.

http://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBIndexHashKey.html