public GetIndexResult withReplicatingTo(String... replicatingTo) {
        if (this.replicatingTo == null) {
            setReplicatingTo(new java.util.ArrayList<String>(replicatingTo.length));
        }
        for (String ele : replicatingTo) {
            this.replicatingTo.add(ele);
        }
        return this;
    }
<p>
This response value is present only if this index is <code>Type=LOCAL</code>.
</p>
<p>
The Amazon Web Services Region that contains the aggregator index, if one exists. If an aggregator index does
exist then the Region in which you called this operation replicates its index information to the Region specified
in this response value.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setReplicatingTo(java.util.Collection)} or {@link #withReplicatingTo(java.util.Collection)} if you want
to override the existing values.
</p>

@param replicatingTo
       This response value is present only if this index is <code>Type=LOCAL</code>.</p>
       <p>
       The Amazon Web Services Region that contains the aggregator index, if one exists. If an aggregator index
       does exist then the Region in which you called this operation replicates its index information to the
       Region specified in this response value.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-resourceexplorer2/src/main/java/com/amazonaws/services/resourceexplorer2/model/GetIndexResult.java