Interface ContactData.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ContactData.Builder,ContactData>,SdkBuilder<ContactData.Builder,ContactData>,SdkPojo
- Enclosing class:
- ContactData
public static interface ContactData.Builder extends SdkPojo, CopyableBuilder<ContactData.Builder,ContactData>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContactData.BuildercontactArn(String contactArn)The ARN of the contact.ContactData.BuilderdisplayName(String displayName)The name of the contact to display on the console.ContactData.BuilderfirstName(String firstName)The first name of the contact, used to call the contact on the device.ContactData.BuilderlastName(String lastName)The last name of the contact, used to call the contact on the device.ContactData.BuilderphoneNumber(String phoneNumber)The phone number of the contact.ContactData.BuilderphoneNumbers(Collection<PhoneNumber> phoneNumbers)The list of phone numbers for the contact.ContactData.BuilderphoneNumbers(Consumer<PhoneNumber.Builder>... phoneNumbers)The list of phone numbers for the contact.ContactData.BuilderphoneNumbers(PhoneNumber... phoneNumbers)The list of phone numbers for the contact.ContactData.BuildersipAddresses(Collection<SipAddress> sipAddresses)The list of SIP addresses for the contact.ContactData.BuildersipAddresses(Consumer<SipAddress.Builder>... sipAddresses)The list of SIP addresses for the contact.ContactData.BuildersipAddresses(SipAddress... sipAddresses)The list of SIP addresses for the contact.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
contactArn
ContactData.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
ContactData.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
ContactData.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
ContactData.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
ContactData.Builder phoneNumber(String phoneNumber)
The phone number of the contact. The phone number type defaults to WORK. You can 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 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
ContactData.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
ContactData.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.
-
phoneNumbers
ContactData.Builder phoneNumbers(Consumer<PhoneNumber.Builder>... phoneNumbers)
The list of phone numbers for the contact.
This is a convenience method that creates an instance of thePhoneNumber.Builderavoiding the need to create one manually viaPhoneNumber.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#phoneNumbers(List.) - Parameters:
phoneNumbers- a consumer that will call methods onPhoneNumber.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#phoneNumbers(java.util.Collection)
-
sipAddresses
ContactData.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
ContactData.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
ContactData.Builder sipAddresses(Consumer<SipAddress.Builder>... sipAddresses)
The list of SIP addresses for the contact.
This is a convenience method that creates an instance of theSipAddress.Builderavoiding the need to create one manually viaSipAddress.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sipAddresses(List.) - Parameters:
sipAddresses- a consumer that will call methods onSipAddress.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#sipAddresses(java.util.Collection)
-
-