public RequestPhoneNumberRequest withNumberCapabilities(java.util.Collection<String> numberCapabilities) {
        setNumberCapabilities(numberCapabilities);
        return this;
    }
<p>
Indicates if the phone number will be used for text messages, voice messages, or both.
</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