Package com.intercom.api.types
Class CreatePhoneSwitchRequest.Builder
- java.lang.Object
-
- com.intercom.api.types.CreatePhoneSwitchRequest.Builder
-
- All Implemented Interfaces:
CreatePhoneSwitchRequest._FinalStage,CreatePhoneSwitchRequest.PhoneStage
- Enclosing class:
- CreatePhoneSwitchRequest
public static final class CreatePhoneSwitchRequest.Builder extends java.lang.Object implements CreatePhoneSwitchRequest.PhoneStage, CreatePhoneSwitchRequest._FinalStage
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreatePhoneSwitchRequestbuild()CreatePhoneSwitchRequest._FinalStagecustomAttributes(java.util.Map<java.lang.String,CreatePhoneSwitchRequest.CustomAttributesValue> customAttributes)CreatePhoneSwitchRequest._FinalStagecustomAttributes(java.util.Optional<java.util.Map<java.lang.String,CreatePhoneSwitchRequest.CustomAttributesValue>> customAttributes)CreatePhoneSwitchRequest.Builderfrom(CreatePhoneSwitchRequest other)CreatePhoneSwitchRequest._FinalStagephone(java.lang.String phone)Phone number in E.164 format, that will receive the SMS to continue the conversation in the Messenger.
-
-
-
Method Detail
-
from
public CreatePhoneSwitchRequest.Builder from(CreatePhoneSwitchRequest other)
- Specified by:
fromin interfaceCreatePhoneSwitchRequest.PhoneStage
-
phone
public CreatePhoneSwitchRequest._FinalStage phone(@NotNull java.lang.String phone)
Phone number in E.164 format, that will receive the SMS to continue the conversation in the Messenger.
Phone number in E.164 format, that will receive the SMS to continue the conversation in the Messenger.
- Specified by:
phonein interfaceCreatePhoneSwitchRequest.PhoneStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
customAttributes
public CreatePhoneSwitchRequest._FinalStage customAttributes(java.util.Map<java.lang.String,CreatePhoneSwitchRequest.CustomAttributesValue> customAttributes)
- Specified by:
customAttributesin interfaceCreatePhoneSwitchRequest._FinalStage
-
customAttributes
public CreatePhoneSwitchRequest._FinalStage customAttributes(java.util.Optional<java.util.Map<java.lang.String,CreatePhoneSwitchRequest.CustomAttributesValue>> customAttributes)
- Specified by:
customAttributesin interfaceCreatePhoneSwitchRequest._FinalStage
-
build
public CreatePhoneSwitchRequest build()
- Specified by:
buildin interfaceCreatePhoneSwitchRequest._FinalStage
-
-