Interface UpdatePhoneNumberResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<UpdatePhoneNumberResponse.Builder,UpdatePhoneNumberResponse>,PinpointSmsVoiceV2Response.Builder,SdkBuilder<UpdatePhoneNumberResponse.Builder,UpdatePhoneNumberResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- UpdatePhoneNumberResponse
public static interface UpdatePhoneNumberResponse.Builder extends PinpointSmsVoiceV2Response.Builder, SdkPojo, CopyableBuilder<UpdatePhoneNumberResponse.Builder,UpdatePhoneNumberResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UpdatePhoneNumberResponse.BuildercreatedTimestamp(Instant createdTimestamp)The time when the phone number was created, in UNIX epoch time format.UpdatePhoneNumberResponse.BuilderdeletionProtectionEnabled(Boolean deletionProtectionEnabled)When set to true the phone number can't be deleted.UpdatePhoneNumberResponse.BuilderisoCountryCode(String isoCountryCode)The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.UpdatePhoneNumberResponse.BuildermessageType(String messageType)The type of message.UpdatePhoneNumberResponse.BuildermessageType(MessageType messageType)The type of message.UpdatePhoneNumberResponse.BuildermonthlyLeasingPrice(String monthlyLeasingPrice)The monthly leasing price of the phone number, in US dollars.UpdatePhoneNumberResponse.BuildernumberCapabilities(Collection<NumberCapability> numberCapabilities)Specifies if the number could be used for text messages, voice or both.UpdatePhoneNumberResponse.BuildernumberCapabilities(NumberCapability... numberCapabilities)Specifies if the number could be used for text messages, voice or both.UpdatePhoneNumberResponse.BuildernumberCapabilitiesWithStrings(String... numberCapabilities)Specifies if the number could be used for text messages, voice or both.UpdatePhoneNumberResponse.BuildernumberCapabilitiesWithStrings(Collection<String> numberCapabilities)Specifies if the number could be used for text messages, voice or both.UpdatePhoneNumberResponse.BuildernumberType(String numberType)The type of number that was requested.UpdatePhoneNumberResponse.BuildernumberType(NumberType numberType)The type of number that was requested.UpdatePhoneNumberResponse.BuilderoptOutListName(String optOutListName)The name of the OptOutList associated with the phone number.UpdatePhoneNumberResponse.BuilderphoneNumber(String phoneNumber)The phone number that was updated.UpdatePhoneNumberResponse.BuilderphoneNumberArn(String phoneNumberArn)The Amazon Resource Name (ARN) of the updated phone number.UpdatePhoneNumberResponse.BuilderphoneNumberId(String phoneNumberId)The unique identifier of the phone number.UpdatePhoneNumberResponse.BuilderregistrationId(String registrationId)The unique identifier for the registration.UpdatePhoneNumberResponse.BuilderselfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)This is true if self managed opt-out are enabled.UpdatePhoneNumberResponse.Builderstatus(String status)The current status of the request.UpdatePhoneNumberResponse.Builderstatus(NumberStatus status)The current status of the request.UpdatePhoneNumberResponse.BuildertwoWayChannelArn(String twoWayChannelArn)The Amazon Resource Name (ARN) of the two way channel.UpdatePhoneNumberResponse.BuildertwoWayChannelRole(String twoWayChannelRole)An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.UpdatePhoneNumberResponse.BuildertwoWayEnabled(Boolean twoWayEnabled)By default this is set to false.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.pinpointsmsvoicev2.model.PinpointSmsVoiceV2Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
phoneNumberArn
UpdatePhoneNumberResponse.Builder phoneNumberArn(String phoneNumberArn)
The Amazon Resource Name (ARN) of the updated phone number.
- Parameters:
phoneNumberArn- The Amazon Resource Name (ARN) of the updated phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phoneNumberId
UpdatePhoneNumberResponse.Builder phoneNumberId(String phoneNumberId)
The unique identifier of the phone number.
- Parameters:
phoneNumberId- The unique identifier of the phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
phoneNumber
UpdatePhoneNumberResponse.Builder phoneNumber(String phoneNumber)
The phone number that was updated.
- Parameters:
phoneNumber- The phone number that was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
UpdatePhoneNumberResponse.Builder status(String status)
The current status of the request.
- Parameters:
status- The current status of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NumberStatus,NumberStatus
-
status
UpdatePhoneNumberResponse.Builder status(NumberStatus status)
The current status of the request.
- Parameters:
status- The current status of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NumberStatus,NumberStatus
-
isoCountryCode
UpdatePhoneNumberResponse.Builder isoCountryCode(String isoCountryCode)
The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.
- Parameters:
isoCountryCode- The two-character code, in ISO 3166-1 alpha-2 format, for the country or region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
messageType
UpdatePhoneNumberResponse.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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MessageType,MessageType
-
messageType
UpdatePhoneNumberResponse.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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MessageType,MessageType
-
numberCapabilitiesWithStrings
UpdatePhoneNumberResponse.Builder numberCapabilitiesWithStrings(Collection<String> numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
- Parameters:
numberCapabilities- Specifies if the number could be used for text messages, voice or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numberCapabilitiesWithStrings
UpdatePhoneNumberResponse.Builder numberCapabilitiesWithStrings(String... numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
- Parameters:
numberCapabilities- Specifies if the number could be used for text messages, voice or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numberCapabilities
UpdatePhoneNumberResponse.Builder numberCapabilities(Collection<NumberCapability> numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
- Parameters:
numberCapabilities- Specifies if the number could be used for text messages, voice or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numberCapabilities
UpdatePhoneNumberResponse.Builder numberCapabilities(NumberCapability... numberCapabilities)
Specifies if the number could be used for text messages, voice or both.
- Parameters:
numberCapabilities- Specifies if the number could be used for text messages, voice or both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
numberType
UpdatePhoneNumberResponse.Builder numberType(String numberType)
The type of number that was requested.
- Parameters:
numberType- The type of number that was requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NumberType,NumberType
-
numberType
UpdatePhoneNumberResponse.Builder numberType(NumberType numberType)
The type of number that was requested.
- Parameters:
numberType- The type of number that was requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
NumberType,NumberType
-
monthlyLeasingPrice
UpdatePhoneNumberResponse.Builder monthlyLeasingPrice(String monthlyLeasingPrice)
The monthly leasing price of the phone number, in US dollars.
- Parameters:
monthlyLeasingPrice- The monthly leasing price of the phone number, in US dollars.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
twoWayEnabled
UpdatePhoneNumberResponse.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.
- Parameters:
twoWayEnabled- By default this is set to false. When set to true you can receive incoming text messages from your end recipients.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
twoWayChannelArn
UpdatePhoneNumberResponse.Builder twoWayChannelArn(String twoWayChannelArn)
The Amazon Resource Name (ARN) of the two way channel.
- Parameters:
twoWayChannelArn- The Amazon Resource Name (ARN) of the two way channel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
twoWayChannelRole
UpdatePhoneNumberResponse.Builder twoWayChannelRole(String twoWayChannelRole)
An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
- Parameters:
twoWayChannelRole- An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
selfManagedOptOutsEnabled
UpdatePhoneNumberResponse.Builder selfManagedOptOutsEnabled(Boolean selfManagedOptOutsEnabled)
This is true if self managed opt-out are enabled.
- Parameters:
selfManagedOptOutsEnabled- This is true if self managed opt-out are enabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optOutListName
UpdatePhoneNumberResponse.Builder optOutListName(String optOutListName)
The name of the OptOutList associated with the phone number.
- Parameters:
optOutListName- The name of the OptOutList associated with the phone number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deletionProtectionEnabled
UpdatePhoneNumberResponse.Builder deletionProtectionEnabled(Boolean deletionProtectionEnabled)
When set to true the phone number can't be deleted.
- Parameters:
deletionProtectionEnabled- When set to true the phone number can't be deleted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
registrationId
UpdatePhoneNumberResponse.Builder registrationId(String registrationId)
The unique identifier for the registration.
- Parameters:
registrationId- The unique identifier for the registration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdTimestamp
UpdatePhoneNumberResponse.Builder createdTimestamp(Instant createdTimestamp)
The time when the phone number was created, in UNIX epoch time format.
- Parameters:
createdTimestamp- The time when the phone number was created, in UNIX epoch time format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-