Package com.pulumi.aws.pinpoint
Class Smsvoicev2PhoneNumberArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.pinpoint.Smsvoicev2PhoneNumberArgs.Builder
-
- Enclosing class:
- Smsvoicev2PhoneNumberArgs
public static final class Smsvoicev2PhoneNumberArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(Smsvoicev2PhoneNumberArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Smsvoicev2PhoneNumberArgsbuild()Smsvoicev2PhoneNumberArgs.BuilderdeletionProtectionEnabled(com.pulumi.core.Output<java.lang.Boolean> deletionProtectionEnabled)Smsvoicev2PhoneNumberArgs.BuilderdeletionProtectionEnabled(java.lang.Boolean deletionProtectionEnabled)Smsvoicev2PhoneNumberArgs.BuilderforceDisassociate(com.pulumi.core.Output<java.lang.Boolean> forceDisassociate)Smsvoicev2PhoneNumberArgs.BuilderforceDisassociate(java.lang.Boolean forceDisassociate)Smsvoicev2PhoneNumberArgs.BuilderisoCountryCode(com.pulumi.core.Output<java.lang.String> isoCountryCode)Smsvoicev2PhoneNumberArgs.BuilderisoCountryCode(java.lang.String isoCountryCode)Smsvoicev2PhoneNumberArgs.BuildermessageType(com.pulumi.core.Output<java.lang.String> messageType)Smsvoicev2PhoneNumberArgs.BuildermessageType(java.lang.String messageType)Smsvoicev2PhoneNumberArgs.BuildernumberCapabilities(com.pulumi.core.Output<java.util.List<java.lang.String>> numberCapabilities)Smsvoicev2PhoneNumberArgs.BuildernumberCapabilities(java.lang.String... numberCapabilities)Smsvoicev2PhoneNumberArgs.BuildernumberCapabilities(java.util.List<java.lang.String> numberCapabilities)Smsvoicev2PhoneNumberArgs.BuildernumberType(com.pulumi.core.Output<java.lang.String> numberType)Smsvoicev2PhoneNumberArgs.BuildernumberType(java.lang.String numberType)Smsvoicev2PhoneNumberArgs.BuilderoptOutListName(com.pulumi.core.Output<java.lang.String> optOutListName)Smsvoicev2PhoneNumberArgs.BuilderoptOutListName(java.lang.String optOutListName)Smsvoicev2PhoneNumberArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)Smsvoicev2PhoneNumberArgs.Builderregion(java.lang.String region)Smsvoicev2PhoneNumberArgs.BuilderregistrationId(com.pulumi.core.Output<java.lang.String> registrationId)Smsvoicev2PhoneNumberArgs.BuilderregistrationId(java.lang.String registrationId)Smsvoicev2PhoneNumberArgs.BuilderselfManagedOptOutsEnabled(com.pulumi.core.Output<java.lang.Boolean> selfManagedOptOutsEnabled)Smsvoicev2PhoneNumberArgs.BuilderselfManagedOptOutsEnabled(java.lang.Boolean selfManagedOptOutsEnabled)Smsvoicev2PhoneNumberArgs.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)Smsvoicev2PhoneNumberArgs.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)Smsvoicev2PhoneNumberArgs.Buildertimeouts(Smsvoicev2PhoneNumberTimeoutsArgs timeouts)Smsvoicev2PhoneNumberArgs.Buildertimeouts(com.pulumi.core.Output<Smsvoicev2PhoneNumberTimeoutsArgs> timeouts)Smsvoicev2PhoneNumberArgs.BuildertwoWayChannelArn(com.pulumi.core.Output<java.lang.String> twoWayChannelArn)Smsvoicev2PhoneNumberArgs.BuildertwoWayChannelArn(java.lang.String twoWayChannelArn)Smsvoicev2PhoneNumberArgs.BuildertwoWayChannelEnabled(com.pulumi.core.Output<java.lang.Boolean> twoWayChannelEnabled)Smsvoicev2PhoneNumberArgs.BuildertwoWayChannelEnabled(java.lang.Boolean twoWayChannelEnabled)Smsvoicev2PhoneNumberArgs.BuildertwoWayChannelRole(com.pulumi.core.Output<java.lang.String> twoWayChannelRole)Smsvoicev2PhoneNumberArgs.BuildertwoWayChannelRole(java.lang.String twoWayChannelRole)Smsvoicev2PhoneNumberArgs.BuilderwaitForActive(com.pulumi.core.Output<java.lang.Boolean> waitForActive)Smsvoicev2PhoneNumberArgs.BuilderwaitForActive(java.lang.Boolean waitForActive)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(Smsvoicev2PhoneNumberArgs defaults)
-
-
Method Detail
-
deletionProtectionEnabled
public Smsvoicev2PhoneNumberArgs.Builder deletionProtectionEnabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> deletionProtectionEnabled)
- Parameters:
deletionProtectionEnabled- Whether deletion protection is enabled. When `true`, the phone number cannot be deleted.- Returns:
- builder
-
deletionProtectionEnabled
public Smsvoicev2PhoneNumberArgs.Builder deletionProtectionEnabled(java.lang.Boolean deletionProtectionEnabled)
- Parameters:
deletionProtectionEnabled- Whether deletion protection is enabled. When `true`, the phone number cannot be deleted.- Returns:
- builder
-
forceDisassociate
public Smsvoicev2PhoneNumberArgs.Builder forceDisassociate(@Nullable com.pulumi.core.Output<java.lang.Boolean> forceDisassociate)
- Parameters:
forceDisassociate- Whether to disassociate the phone number from any pool it is associated with before destroying it.- Returns:
- builder
-
forceDisassociate
public Smsvoicev2PhoneNumberArgs.Builder forceDisassociate(java.lang.Boolean forceDisassociate)
- Parameters:
forceDisassociate- Whether to disassociate the phone number from any pool it is associated with before destroying it.- Returns:
- builder
-
isoCountryCode
public Smsvoicev2PhoneNumberArgs.Builder isoCountryCode(com.pulumi.core.Output<java.lang.String> isoCountryCode)
- Parameters:
isoCountryCode- Two-character code, in ISO 3166-1 alpha-2 format, for the country or region.- Returns:
- builder
-
isoCountryCode
public Smsvoicev2PhoneNumberArgs.Builder isoCountryCode(java.lang.String isoCountryCode)
- Parameters:
isoCountryCode- Two-character code, in ISO 3166-1 alpha-2 format, for the country or region.- Returns:
- builder
-
messageType
public Smsvoicev2PhoneNumberArgs.Builder messageType(com.pulumi.core.Output<java.lang.String> messageType)
- Parameters:
messageType- 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:
- builder
-
messageType
public Smsvoicev2PhoneNumberArgs.Builder messageType(java.lang.String messageType)
- Parameters:
messageType- 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:
- builder
-
numberCapabilities
public Smsvoicev2PhoneNumberArgs.Builder numberCapabilities(com.pulumi.core.Output<java.util.List<java.lang.String>> numberCapabilities)
- Parameters:
numberCapabilities- Whether the origination identity can be used for text messages, voice calls or both. Valid values are `SMS` and `VOICE`.- Returns:
- builder
-
numberCapabilities
public Smsvoicev2PhoneNumberArgs.Builder numberCapabilities(java.util.List<java.lang.String> numberCapabilities)
- Parameters:
numberCapabilities- Whether the origination identity can be used for text messages, voice calls or both. Valid values are `SMS` and `VOICE`.- Returns:
- builder
-
numberCapabilities
public Smsvoicev2PhoneNumberArgs.Builder numberCapabilities(java.lang.String... numberCapabilities)
- Parameters:
numberCapabilities- Whether the origination identity can be used for text messages, voice calls or both. Valid values are `SMS` and `VOICE`.- Returns:
- builder
-
numberType
public Smsvoicev2PhoneNumberArgs.Builder numberType(com.pulumi.core.Output<java.lang.String> numberType)
- Parameters:
numberType- Type of phone number to request. Possible values are `LONG_CODE`, `TOLL_FREE`, `TEN_DLC`, or `SIMULATOR`. The following arguments are optional:- Returns:
- builder
-
numberType
public Smsvoicev2PhoneNumberArgs.Builder numberType(java.lang.String numberType)
- Parameters:
numberType- Type of phone number to request. Possible values are `LONG_CODE`, `TOLL_FREE`, `TEN_DLC`, or `SIMULATOR`. The following arguments are optional:- Returns:
- builder
-
optOutListName
public Smsvoicev2PhoneNumberArgs.Builder optOutListName(@Nullable com.pulumi.core.Output<java.lang.String> optOutListName)
- Parameters:
optOutListName- Name of the opt-out list to associate with the phone number. If omitted, AWS assigns the `Default` opt-out list.- Returns:
- builder
-
optOutListName
public Smsvoicev2PhoneNumberArgs.Builder optOutListName(java.lang.String optOutListName)
- Parameters:
optOutListName- Name of the opt-out list to associate with the phone number. If omitted, AWS assigns the `Default` opt-out list.- Returns:
- builder
-
region
public Smsvoicev2PhoneNumberArgs.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public Smsvoicev2PhoneNumberArgs.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
registrationId
public Smsvoicev2PhoneNumberArgs.Builder registrationId(@Nullable com.pulumi.core.Output<java.lang.String> registrationId)
- Parameters:
registrationId- Use this field to attach your phone number for an external registration process.- Returns:
- builder
-
registrationId
public Smsvoicev2PhoneNumberArgs.Builder registrationId(java.lang.String registrationId)
- Parameters:
registrationId- Use this field to attach your phone number for an external registration process.- Returns:
- builder
-
selfManagedOptOutsEnabled
public Smsvoicev2PhoneNumberArgs.Builder selfManagedOptOutsEnabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> selfManagedOptOutsEnabled)
- Parameters:
selfManagedOptOutsEnabled- When set to `false` 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 opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.- Returns:
- builder
-
selfManagedOptOutsEnabled
public Smsvoicev2PhoneNumberArgs.Builder selfManagedOptOutsEnabled(java.lang.Boolean selfManagedOptOutsEnabled)
- Parameters:
selfManagedOptOutsEnabled- When set to `false` 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 opt-out list. When set to true you’re responsible for responding to HELP and STOP requests. You’re also responsible for tracking and honoring opt-out request.- Returns:
- builder
-
tags
public Smsvoicev2PhoneNumberArgs.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public Smsvoicev2PhoneNumberArgs.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
timeouts
public Smsvoicev2PhoneNumberArgs.Builder timeouts(@Nullable com.pulumi.core.Output<Smsvoicev2PhoneNumberTimeoutsArgs> timeouts)
-
timeouts
public Smsvoicev2PhoneNumberArgs.Builder timeouts(Smsvoicev2PhoneNumberTimeoutsArgs timeouts)
-
twoWayChannelArn
public Smsvoicev2PhoneNumberArgs.Builder twoWayChannelArn(@Nullable com.pulumi.core.Output<java.lang.String> twoWayChannelArn)
- Parameters:
twoWayChannelArn- Configuration for two-way SMS. Specify an ARN to receive incoming SMS messages, or `connect.[region].amazonaws.com` (with `[region]` replaced by the AWS Region of the Amazon Connect instance) to set Amazon Connect as the inbound destination.- Returns:
- builder
-
twoWayChannelArn
public Smsvoicev2PhoneNumberArgs.Builder twoWayChannelArn(java.lang.String twoWayChannelArn)
- Parameters:
twoWayChannelArn- Configuration for two-way SMS. Specify an ARN to receive incoming SMS messages, or `connect.[region].amazonaws.com` (with `[region]` replaced by the AWS Region of the Amazon Connect instance) to set Amazon Connect as the inbound destination.- Returns:
- builder
-
twoWayChannelEnabled
public Smsvoicev2PhoneNumberArgs.Builder twoWayChannelEnabled(@Nullable com.pulumi.core.Output<java.lang.Boolean> twoWayChannelEnabled)
- Parameters:
twoWayChannelEnabled- Whether two-way messaging is enabled. When `true`, you can receive incoming text messages from your end recipients. If omitted, AWS sets this to `false`.- Returns:
- builder
-
twoWayChannelEnabled
public Smsvoicev2PhoneNumberArgs.Builder twoWayChannelEnabled(java.lang.Boolean twoWayChannelEnabled)
- Parameters:
twoWayChannelEnabled- Whether two-way messaging is enabled. When `true`, you can receive incoming text messages from your end recipients. If omitted, AWS sets this to `false`.- Returns:
- builder
-
twoWayChannelRole
public Smsvoicev2PhoneNumberArgs.Builder twoWayChannelRole(@Nullable com.pulumi.core.Output<java.lang.String> twoWayChannelRole)
- Parameters:
twoWayChannelRole- IAM Role ARN for a service to assume, to be able to post inbound SMS messages.- Returns:
- builder
-
twoWayChannelRole
public Smsvoicev2PhoneNumberArgs.Builder twoWayChannelRole(java.lang.String twoWayChannelRole)
- Parameters:
twoWayChannelRole- IAM Role ARN for a service to assume, to be able to post inbound SMS messages.- Returns:
- builder
-
waitForActive
public Smsvoicev2PhoneNumberArgs.Builder waitForActive(@Nullable com.pulumi.core.Output<java.lang.Boolean> waitForActive)
- Parameters:
waitForActive- Whether to wait for the phone number to reach `ACTIVE` status before considering the resource created or updated. Defaults to `true`. Set to `false` for number types gated on carrier or registration approval (for example, `TEN_DLC`, `TOLL_FREE`, or any number submitted with `registrationId`), which can remain `PENDING` for days or weeks. When `false`, `pulumi up` returns once AWS accepts the phone number request; track activation with the `status` attribute.- Returns:
- builder
-
waitForActive
public Smsvoicev2PhoneNumberArgs.Builder waitForActive(java.lang.Boolean waitForActive)
- Parameters:
waitForActive- Whether to wait for the phone number to reach `ACTIVE` status before considering the resource created or updated. Defaults to `true`. Set to `false` for number types gated on carrier or registration approval (for example, `TEN_DLC`, `TOLL_FREE`, or any number submitted with `registrationId`), which can remain `PENDING` for days or weeks. When `false`, `pulumi up` returns once AWS accepts the phone number request; track activation with the `status` attribute.- Returns:
- builder
-
build
public Smsvoicev2PhoneNumberArgs build()
-
-