public RestoreTableFromBackupRequest withGlobalSecondaryIndexOverride(GlobalSecondaryIndex... globalSecondaryIndexOverride) {
        if (this.globalSecondaryIndexOverride == null) {
            setGlobalSecondaryIndexOverride(new java.util.ArrayList<GlobalSecondaryIndex>(globalSecondaryIndexOverride.length));
        }
        for (GlobalSecondaryIndex ele : globalSecondaryIndexOverride) {
            this.globalSecondaryIndexOverride.add(ele);
        }
        return this;
    }
<p>
List of global secondary indexes for the restored table. The indexes provided should match existing secondary
indexes. You can choose to exclude some or all of the indexes at the time of restore.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setGlobalSecondaryIndexOverride(java.util.Collection)} or
{@link #withGlobalSecondaryIndexOverride(java.util.Collection)} if you want to override the existing values.
</p>

@param globalSecondaryIndexOverride
       List of global secondary indexes for the restored table. The indexes provided should match existing
       secondary indexes. You can choose to exclude some or all of the indexes at the time of restore.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/model/RestoreTableFromBackupRequest.java