public java.util.List<String> getPhoneNumberTypes() {
        return phoneNumberTypes;
    }
<p>
The type of phone number.
</p>
<note>
<p>
We recommend using <a
href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html">ListPhoneNumbersV2</a>
to return phone number types. While ListPhoneNumbers returns number types <code>UIFN</code>, <code>SHARED</code>,
<code>THIRD_PARTY_TF</code>, and <code>THIRD_PARTY_DID</code>, it incorrectly lists them as
<code>TOLL_FREE</code> or <code>DID</code>.
</p>
</note>

@return The type of phone number.</p> <note>
        <p>
        We recommend using <a
        href="https://docs.aws.amazon.com/connect/latest/APIReference/API_ListPhoneNumbersV2.html"
        >ListPhoneNumbersV2</a> to return phone number types. While ListPhoneNumbers returns number types
        <code>UIFN</code>, <code>SHARED</code>, <code>THIRD_PARTY_TF</code>, and <code>THIRD_PARTY_DID</code>, it
        incorrectly lists them as <code>TOLL_FREE</code> or <code>DID</code>.
        </p>
@see PhoneNumberType
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/ListPhoneNumbersRequest.java