public GetUpgradeHistoryResult withUpgradeHistories(UpgradeHistory... upgradeHistories) {
        if (this.upgradeHistories == null) {
            setUpgradeHistories(new java.util.ArrayList<UpgradeHistory>(upgradeHistories.length));
        }
        for (UpgradeHistory ele : upgradeHistories) {
            this.upgradeHistories.add(ele);
        }
        return this;
    }
<p>
A list of objects corresponding to each upgrade or upgrade eligibility check performed on a domain.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setUpgradeHistories(java.util.Collection)} or {@link #withUpgradeHistories(java.util.Collection)} if you
want to override the existing values.
</p>

@param upgradeHistories
       A list of objects corresponding to each upgrade or upgrade eligibility check performed on a domain.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/GetUpgradeHistoryResult.java