public RequestPhoneNumberRequest withNumberCapabilities(String... numberCapabilities) {
        if (this.numberCapabilities == null) {
            setNumberCapabilities(new java.util.ArrayList<String>(numberCapabilities.length));
        }
        for (String ele : numberCapabilities) {
            this.numberCapabilities.add(ele);
        }
        return this;
    }
<p>
Indicates if the phone number will be used for text messages, voice messages, or both.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setNumberCapabilities(java.util.Collection)} or {@link #withNumberCapabilities(java.util.Collection)} if
you want to override the existing values.
</p>

@param numberCapabilities
       Indicates if the phone number will be used for text messages, voice messages, or both.
@return Returns a reference to this object so that method calls can be chained together.
@see NumberCapability
aws-java-sdk-pinpointsmsvoicev2/src/main/java/com/amazonaws/services/pinpointsmsvoicev2/model/RequestPhoneNumberRequest.java