public GetActiveNamesResult withActiveNames(String... activeNames) {
        if (this.activeNames == null) {
            setActiveNames(new java.util.ArrayList<String>(activeNames.length));
        }
        for (String ele : activeNames) {
            this.activeNames.add(ele);
        }
        return this;
    }
<p>
The list of active names returned by the get active names request.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setActiveNames(java.util.Collection)} or {@link #withActiveNames(java.util.Collection)} if you want to
override the existing values.
</p>

@param activeNames
       The list of active names returned by the get active names request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/GetActiveNamesResult.java