public static interface RequestPhoneNumberResponse.Builder extends PinpointSmsVoiceV2Response.Builder, SdkPojo, CopyableBuilder<RequestPhoneNumberResponse.Builder,RequestPhoneNumberResponse>
| Modifier and Type | Method and Description |
|---|---|
RequestPhoneNumberResponse.Builder |
createdTimestamp(Instant createdTimestamp)
The time when the phone number was created, in UNIX epoch time
format.
|
RequestPhoneNumberResponse.Builder |
deletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false.
|
RequestPhoneNumberResponse.Builder |
isoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
|
RequestPhoneNumberResponse.Builder |
messageType(MessageType messageType)
The type of message.
|
RequestPhoneNumberResponse.Builder |
messageType(String messageType)
The type of message.
|
RequestPhoneNumberResponse.Builder |
monthlyLeasingPrice(String monthlyLeasingPrice)
The monthly price, in US dollars, to lease the phone number.
|
RequestPhoneNumberResponse.Builder |
numberCapabilities(Collection<NumberCapability> numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages or both.
|
RequestPhoneNumberResponse.Builder |
numberCapabilities(NumberCapability... numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages or both.
|
RequestPhoneNumberResponse.Builder |
numberCapabilitiesWithStrings(Collection<String> numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages or both.
|
RequestPhoneNumberResponse.Builder |
numberCapabilitiesWithStrings(String... numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages or both.
|
RequestPhoneNumberResponse.Builder |
numberType(RequestableNumberType numberType)
The type of number that was released.
|
RequestPhoneNumberResponse.Builder |
numberType(String numberType)
The type of number that was released.
|
RequestPhoneNumberResponse.Builder |
optOutListName(String optOutListName)
The name of the OptOutList that is associated with the requested phone number.
|
RequestPhoneNumberResponse.Builder |
phoneNumber(String phoneNumber)
The new phone number that was requested.
|
RequestPhoneNumberResponse.Builder |
phoneNumberArn(String phoneNumberArn)
The Amazon Resource Name (ARN) of the requested phone number.
|
RequestPhoneNumberResponse.Builder |
phoneNumberId(String phoneNumberId)
The unique identifier of the new phone number.
|
RequestPhoneNumberResponse.Builder |
poolId(String poolId)
The unique identifier of the pool associated with the phone number
|
RequestPhoneNumberResponse.Builder |
selfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
By default this is set to false.
|
RequestPhoneNumberResponse.Builder |
status(NumberStatus status)
The current status of the request.
|
RequestPhoneNumberResponse.Builder |
status(String status)
The current status of the request.
|
RequestPhoneNumberResponse.Builder |
tags(Collection<Tag> tags)
An array of key and value pair tags that are associated with the phone number.
|
RequestPhoneNumberResponse.Builder |
tags(Consumer<Tag.Builder>... tags)
An array of key and value pair tags that are associated with the phone number.
|
RequestPhoneNumberResponse.Builder |
tags(Tag... tags)
An array of key and value pair tags that are associated with the phone number.
|
RequestPhoneNumberResponse.Builder |
twoWayChannelArn(String twoWayChannelArn)
The ARN used to identify the two way channel.
|
RequestPhoneNumberResponse.Builder |
twoWayEnabled(Boolean twoWayEnabled)
By default this is set to false.
|
build, responseMetadata, responseMetadatasdkHttpResponse, sdkHttpResponseequalsBySdkFields, sdkFieldscopyapplyMutation, buildRequestPhoneNumberResponse.Builder phoneNumberArn(String phoneNumberArn)
The Amazon Resource Name (ARN) of the requested phone number.
phoneNumberArn - The Amazon Resource Name (ARN) of the requested phone number.RequestPhoneNumberResponse.Builder phoneNumberId(String phoneNumberId)
The unique identifier of the new phone number.
phoneNumberId - The unique identifier of the new phone number.RequestPhoneNumberResponse.Builder phoneNumber(String phoneNumber)
The new phone number that was requested.
phoneNumber - The new phone number that was requested.RequestPhoneNumberResponse.Builder status(String status)
The current status of the request.
status - The current status of the request.NumberStatus,
NumberStatusRequestPhoneNumberResponse.Builder status(NumberStatus status)
The current status of the request.
status - The current status of the request.NumberStatus,
NumberStatusRequestPhoneNumberResponse.Builder isoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
isoCountryCode - The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.RequestPhoneNumberResponse.Builder messageType(String messageType)
The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
messageType - The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive
and PROMOTIONAL for messages that aren't critical or time-sensitive.MessageType,
MessageTypeRequestPhoneNumberResponse.Builder messageType(MessageType messageType)
The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive and PROMOTIONAL for messages that aren't critical or time-sensitive.
messageType - The type of message. Valid values are TRANSACTIONAL for messages that are critical or time-sensitive
and PROMOTIONAL for messages that aren't critical or time-sensitive.MessageType,
MessageTypeRequestPhoneNumberResponse.Builder numberCapabilitiesWithStrings(Collection<String> numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages or both.
numberCapabilities - Indicates if the phone number will be used for text messages, voice messages or both.RequestPhoneNumberResponse.Builder numberCapabilitiesWithStrings(String... numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages or both.
numberCapabilities - Indicates if the phone number will be used for text messages, voice messages or both.RequestPhoneNumberResponse.Builder numberCapabilities(Collection<NumberCapability> numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages or both.
numberCapabilities - Indicates if the phone number will be used for text messages, voice messages or both.RequestPhoneNumberResponse.Builder numberCapabilities(NumberCapability... numberCapabilities)
Indicates if the phone number will be used for text messages, voice messages or both.
numberCapabilities - Indicates if the phone number will be used for text messages, voice messages or both.RequestPhoneNumberResponse.Builder numberType(String numberType)
The type of number that was released.
numberType - The type of number that was released.RequestableNumberType,
RequestableNumberTypeRequestPhoneNumberResponse.Builder numberType(RequestableNumberType numberType)
The type of number that was released.
numberType - The type of number that was released.RequestableNumberType,
RequestableNumberTypeRequestPhoneNumberResponse.Builder monthlyLeasingPrice(String monthlyLeasingPrice)
The monthly price, in US dollars, to lease the phone number.
monthlyLeasingPrice - The monthly price, in US dollars, to lease the phone number.RequestPhoneNumberResponse.Builder twoWayEnabled(Boolean twoWayEnabled)
By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
twoWayEnabled - By default this is set to false. When set to true you can receive incoming text messages from your end
recipients.RequestPhoneNumberResponse.Builder twoWayChannelArn(String twoWayChannelArn)
The ARN used to identify the two way channel.
twoWayChannelArn - The ARN used to identify the two way channel.RequestPhoneNumberResponse.Builder selfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
By default this is set to false. When an end recipient sends a message that begins with HELP or STOP to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message and adds the end recipient to the OptOutList. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
selfManagedOptOutsEnabled - By default this is set to false. When an end recipient sends a message that begins with HELP or STOP
to one of your dedicated numbers, Amazon Pinpoint automatically replies with a customizable message
and adds the end recipient to the OptOutList. When set to true you're responsible for responding to
HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.RequestPhoneNumberResponse.Builder optOutListName(String optOutListName)
The name of the OptOutList that is associated with the requested phone number.
optOutListName - The name of the OptOutList that is associated with the requested phone number.RequestPhoneNumberResponse.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled)
By default this is set to false. When set to true the phone number can't be deleted.
deletionProtectionEnabled - By default this is set to false. When set to true the phone number can't be deleted.RequestPhoneNumberResponse.Builder poolId(String poolId)
The unique identifier of the pool associated with the phone number
poolId - The unique identifier of the pool associated with the phone numberRequestPhoneNumberResponse.Builder tags(Collection<Tag> tags)
An array of key and value pair tags that are associated with the phone number.
tags - An array of key and value pair tags that are associated with the phone number.RequestPhoneNumberResponse.Builder tags(Tag... tags)
An array of key and value pair tags that are associated with the phone number.
tags - An array of key and value pair tags that are associated with the phone number.RequestPhoneNumberResponse.Builder tags(Consumer<Tag.Builder>... tags)
An array of key and value pair tags that are associated with the phone number.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one
manually via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) RequestPhoneNumberResponse.Builder createdTimestamp(Instant createdTimestamp)
The time when the phone number was created, in UNIX epoch time format.
createdTimestamp - The time when the phone number was created, in UNIX epoch
time format.Copyright © 2023. All rights reserved.