public Location withAvailableMacSecPortSpeeds(String... availableMacSecPortSpeeds) {
        if (this.availableMacSecPortSpeeds == null) {
            setAvailableMacSecPortSpeeds(new com.amazonaws.internal.SdkInternalList<String>(availableMacSecPortSpeeds.length));
        }
        for (String ele : availableMacSecPortSpeeds) {
            this.availableMacSecPortSpeeds.add(ele);
        }
        return this;
    }
<p>
The available MAC Security (MACsec) port speeds for the location.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAvailableMacSecPortSpeeds(java.util.Collection)} or
{@link #withAvailableMacSecPortSpeeds(java.util.Collection)} if you want to override the existing values.
</p>

@param availableMacSecPortSpeeds
       The available MAC Security (MACsec) port speeds for the location.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/Location.java