Interface Contact.Builder

    • Method Detail

      • contactArn

        Contact.Builder contactArn​(String contactArn)

        The ARN of the contact.

        Parameters:
        contactArn - The ARN of the contact.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • displayName

        Contact.Builder displayName​(String displayName)

        The name of the contact to display on the console.

        Parameters:
        displayName - The name of the contact to display on the console.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • firstName

        Contact.Builder firstName​(String firstName)

        The first name of the contact, used to call the contact on the device.

        Parameters:
        firstName - The first name of the contact, used to call the contact on the device.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastName

        Contact.Builder lastName​(String lastName)

        The last name of the contact, used to call the contact on the device.

        Parameters:
        lastName - The last name of the contact, used to call the contact on the device.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phoneNumber

        Contact.Builder phoneNumber​(String phoneNumber)

        The phone number of the contact. The phone number type defaults to WORK. You can either specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.

        Parameters:
        phoneNumber - The phone number of the contact. The phone number type defaults to WORK. You can either specify PhoneNumber or PhoneNumbers. We recommend that you use PhoneNumbers, which lets you specify the phone number type and multiple numbers.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phoneNumbers

        Contact.Builder phoneNumbers​(Collection<PhoneNumber> phoneNumbers)

        The list of phone numbers for the contact.

        Parameters:
        phoneNumbers - The list of phone numbers for the contact.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • phoneNumbers

        Contact.Builder phoneNumbers​(PhoneNumber... phoneNumbers)

        The list of phone numbers for the contact.

        Parameters:
        phoneNumbers - The list of phone numbers for the contact.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sipAddresses

        Contact.Builder sipAddresses​(Collection<SipAddress> sipAddresses)

        The list of SIP addresses for the contact.

        Parameters:
        sipAddresses - The list of SIP addresses for the contact.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sipAddresses

        Contact.Builder sipAddresses​(SipAddress... sipAddresses)

        The list of SIP addresses for the contact.

        Parameters:
        sipAddresses - The list of SIP addresses for the contact.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sipAddresses

        Contact.Builder sipAddresses​(Consumer<SipAddress.Builder>... sipAddresses)

        The list of SIP addresses for the contact.

        This is a convenience method that creates an instance of the SipAddress.Builder avoiding the need to create one manually via SipAddress.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #sipAddresses(List).

        Parameters:
        sipAddresses - a consumer that will call methods on SipAddress.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #sipAddresses(java.util.Collection)