Interface UpdatePhoneNumberRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdatePhoneNumberRequest.Builder,
,UpdatePhoneNumberRequest> PinpointSmsVoiceV2Request.Builder
,SdkBuilder<UpdatePhoneNumberRequest.Builder,
,UpdatePhoneNumberRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdatePhoneNumberRequest
-
Method Summary
Modifier and TypeMethodDescriptiondeletionProtectionEnabled
(Boolean deletionProtectionEnabled) By default this is set to false.optOutListName
(String optOutListName) The OptOutList to add the phone number to.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.phoneNumberId
(String phoneNumberId) The unique identifier of the phone number.selfManagedOptOutsEnabled
(Boolean selfManagedOptOutsEnabled) By default this is set to false.twoWayChannelArn
(String twoWayChannelArn) The Amazon Resource Name (ARN) of the two way channel.twoWayChannelRole
(String twoWayChannelRole) An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.twoWayEnabled
(Boolean twoWayEnabled) By default this is set to false.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.pinpointsmsvoicev2.model.PinpointSmsVoiceV2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
phoneNumberId
The unique identifier of the phone number. Valid values for this field can be either the PhoneNumberId or PhoneNumberArn.
If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).
- Parameters:
phoneNumberId
- The unique identifier of the phone number. Valid values for this field can be either the PhoneNumberId or PhoneNumberArn.If you are using a shared AWS End User Messaging SMS and Voice resource then you must use the full Amazon Resource Name(ARN).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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
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
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, AWS End User Messaging SMS and Voice 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.
- Parameters:
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, AWS End User Messaging SMS and Voice 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optOutListName
The OptOutList to add the phone number to. Valid values for this field can be either the OutOutListName or OutOutListArn.
- Parameters:
optOutListName
- The OptOutList to add the phone number to. Valid values for this field can be either the OutOutListName or OutOutListArn.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deletionProtectionEnabled
By default this is set to false. When set to true the phone number can't be deleted.
- Parameters:
deletionProtectionEnabled
- By default this is set to false. 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.
-
overrideConfiguration
UpdatePhoneNumberRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdatePhoneNumberRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-