Interface PhoneNumber.Builder

    • Method Detail

      • phoneNumberId

        PhoneNumber.Builder phoneNumberId​(String phoneNumberId)

        The phone number ID.

        Parameters:
        phoneNumberId - The phone number ID.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • e164PhoneNumber

        PhoneNumber.Builder e164PhoneNumber​(String e164PhoneNumber)

        The phone number, in E.164 format.

        Parameters:
        e164PhoneNumber - The phone number, in E.164 format.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • country

        PhoneNumber.Builder country​(String country)

        The phone number country. Format: ISO 3166-1 alpha-2.

        Parameters:
        country - The phone number country. Format: ISO 3166-1 alpha-2.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • capabilities

        PhoneNumber.Builder capabilities​(PhoneNumberCapabilities capabilities)

        The phone number capabilities.

        Parameters:
        capabilities - The phone number capabilities.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • associations

        PhoneNumber.Builder associations​(Collection<PhoneNumberAssociation> associations)

        The phone number associations.

        Parameters:
        associations - The phone number associations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • associations

        PhoneNumber.Builder associations​(PhoneNumberAssociation... associations)

        The phone number associations.

        Parameters:
        associations - The phone number associations.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • callingName

        PhoneNumber.Builder callingName​(String callingName)

        The outbound calling name associated with the phone number.

        Parameters:
        callingName - The outbound calling name associated with the phone number.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • callingNameStatus

        PhoneNumber.Builder callingNameStatus​(String callingNameStatus)

        The outbound calling name status.

        Parameters:
        callingNameStatus - The outbound calling name status.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CallingNameStatus, CallingNameStatus
      • createdTimestamp

        PhoneNumber.Builder createdTimestamp​(Instant createdTimestamp)

        The phone number creation timestamp, in ISO 8601 format.

        Parameters:
        createdTimestamp - The phone number creation timestamp, in ISO 8601 format.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • updatedTimestamp

        PhoneNumber.Builder updatedTimestamp​(Instant updatedTimestamp)

        The updated phone number timestamp, in ISO 8601 format.

        Parameters:
        updatedTimestamp - The updated phone number timestamp, in ISO 8601 format.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • deletionTimestamp

        PhoneNumber.Builder deletionTimestamp​(Instant deletionTimestamp)

        The deleted phone number timestamp, in ISO 8601 format.

        Parameters:
        deletionTimestamp - The deleted phone number timestamp, in ISO 8601 format.
        Returns:
        Returns a reference to this object so that method calls can be chained together.