public AwsDynamoDbTableReplica withGlobalSecondaryIndexes(AwsDynamoDbTableReplicaGlobalSecondaryIndex... globalSecondaryIndexes) {
        if (this.globalSecondaryIndexes == null) {
            setGlobalSecondaryIndexes(new java.util.ArrayList<AwsDynamoDbTableReplicaGlobalSecondaryIndex>(globalSecondaryIndexes.length));
        }
        for (AwsDynamoDbTableReplicaGlobalSecondaryIndex ele : globalSecondaryIndexes) {
            this.globalSecondaryIndexes.add(ele);
        }
        return this;
    }
<p>
List of global secondary indexes for the replica.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setGlobalSecondaryIndexes(java.util.Collection)} or
{@link #withGlobalSecondaryIndexes(java.util.Collection)} if you want to override the existing values.
</p>

@param globalSecondaryIndexes
       List of global secondary indexes for the replica.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-securityhub/src/main/java/com/amazonaws/services/securityhub/model/AwsDynamoDbTableReplica.java