Package com.pulumi.aws.pinpoint.inputs
Class Smsvoicev2PhoneNumberState.Builder
- java.lang.Object
-
- com.pulumi.aws.pinpoint.inputs.Smsvoicev2PhoneNumberState.Builder
-
- Enclosing class:
- Smsvoicev2PhoneNumberState
public static final class Smsvoicev2PhoneNumberState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(Smsvoicev2PhoneNumberState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Smsvoicev2PhoneNumberState.Builderarn(com.pulumi.core.Output<java.lang.String> arn)Smsvoicev2PhoneNumberState.Builderarn(java.lang.String arn)Smsvoicev2PhoneNumberStatebuild()Smsvoicev2PhoneNumberState.BuilderdeletionProtectionEnabled(com.pulumi.core.Output<java.lang.Boolean> deletionProtectionEnabled)Smsvoicev2PhoneNumberState.BuilderdeletionProtectionEnabled(java.lang.Boolean deletionProtectionEnabled)Smsvoicev2PhoneNumberState.BuilderforceDisassociate(com.pulumi.core.Output<java.lang.Boolean> forceDisassociate)Smsvoicev2PhoneNumberState.BuilderforceDisassociate(java.lang.Boolean forceDisassociate)Smsvoicev2PhoneNumberState.BuilderisoCountryCode(com.pulumi.core.Output<java.lang.String> isoCountryCode)Smsvoicev2PhoneNumberState.BuilderisoCountryCode(java.lang.String isoCountryCode)Smsvoicev2PhoneNumberState.BuildermessageType(com.pulumi.core.Output<java.lang.String> messageType)Smsvoicev2PhoneNumberState.BuildermessageType(java.lang.String messageType)Smsvoicev2PhoneNumberState.BuildermonthlyLeasingPrice(com.pulumi.core.Output<java.lang.String> monthlyLeasingPrice)Smsvoicev2PhoneNumberState.BuildermonthlyLeasingPrice(java.lang.String monthlyLeasingPrice)Smsvoicev2PhoneNumberState.BuildernumberCapabilities(com.pulumi.core.Output<java.util.List<java.lang.String>> numberCapabilities)Smsvoicev2PhoneNumberState.BuildernumberCapabilities(java.lang.String... numberCapabilities)Smsvoicev2PhoneNumberState.BuildernumberCapabilities(java.util.List<java.lang.String> numberCapabilities)Smsvoicev2PhoneNumberState.BuildernumberType(com.pulumi.core.Output<java.lang.String> numberType)Smsvoicev2PhoneNumberState.BuildernumberType(java.lang.String numberType)Smsvoicev2PhoneNumberState.BuilderoptOutListName(com.pulumi.core.Output<java.lang.String> optOutListName)Smsvoicev2PhoneNumberState.BuilderoptOutListName(java.lang.String optOutListName)Smsvoicev2PhoneNumberState.BuilderphoneNumber(com.pulumi.core.Output<java.lang.String> phoneNumber)Smsvoicev2PhoneNumberState.BuilderphoneNumber(java.lang.String phoneNumber)Smsvoicev2PhoneNumberState.Builderregion(com.pulumi.core.Output<java.lang.String> region)Smsvoicev2PhoneNumberState.Builderregion(java.lang.String region)Smsvoicev2PhoneNumberState.BuilderregistrationId(com.pulumi.core.Output<java.lang.String> registrationId)Smsvoicev2PhoneNumberState.BuilderregistrationId(java.lang.String registrationId)Smsvoicev2PhoneNumberState.BuilderselfManagedOptOutsEnabled(com.pulumi.core.Output<java.lang.Boolean> selfManagedOptOutsEnabled)Smsvoicev2PhoneNumberState.BuilderselfManagedOptOutsEnabled(java.lang.Boolean selfManagedOptOutsEnabled)Smsvoicev2PhoneNumberState.Builderstatus(com.pulumi.core.Output<java.lang.String> status)Smsvoicev2PhoneNumberState.Builderstatus(java.lang.String status)Smsvoicev2PhoneNumberState.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)Smsvoicev2PhoneNumberState.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)Smsvoicev2PhoneNumberState.BuildertagsAll(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)Smsvoicev2PhoneNumberState.BuildertagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)Smsvoicev2PhoneNumberState.Buildertimeouts(Smsvoicev2PhoneNumberTimeoutsArgs timeouts)Smsvoicev2PhoneNumberState.Buildertimeouts(com.pulumi.core.Output<Smsvoicev2PhoneNumberTimeoutsArgs> timeouts)Smsvoicev2PhoneNumberState.BuildertwoWayChannelArn(com.pulumi.core.Output<java.lang.String> twoWayChannelArn)Smsvoicev2PhoneNumberState.BuildertwoWayChannelArn(java.lang.String twoWayChannelArn)Smsvoicev2PhoneNumberState.BuildertwoWayChannelEnabled(com.pulumi.core.Output<java.lang.Boolean> twoWayChannelEnabled)Smsvoicev2PhoneNumberState.BuildertwoWayChannelEnabled(java.lang.Boolean twoWayChannelEnabled)Smsvoicev2PhoneNumberState.BuildertwoWayChannelRole(com.pulumi.core.Output<java.lang.String> twoWayChannelRole)Smsvoicev2PhoneNumberState.BuildertwoWayChannelRole(java.lang.String twoWayChannelRole)Smsvoicev2PhoneNumberState.BuilderwaitForActive(com.pulumi.core.Output<java.lang.Boolean> waitForActive)Smsvoicev2PhoneNumberState.BuilderwaitForActive(java.lang.Boolean waitForActive)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(Smsvoicev2PhoneNumberState defaults)
-
-
Method Detail
-
arn
public Smsvoicev2PhoneNumberState.Builder arn(@Nullable com.pulumi.core.Output<java.lang.String> arn)
- Parameters:
arn- ARN of the phone number.- Returns:
- builder
-
arn
public Smsvoicev2PhoneNumberState.Builder arn(java.lang.String arn)
- Parameters:
arn- ARN of the phone number.- Returns:
- builder
-
deletionProtectionEnabled
public Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.Builder isoCountryCode(@Nullable 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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.Builder messageType(@Nullable 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 Smsvoicev2PhoneNumberState.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
-
monthlyLeasingPrice
public Smsvoicev2PhoneNumberState.Builder monthlyLeasingPrice(@Nullable com.pulumi.core.Output<java.lang.String> monthlyLeasingPrice)
- Parameters:
monthlyLeasingPrice- Monthly price, in US dollars, to lease the phone number.- Returns:
- builder
-
monthlyLeasingPrice
public Smsvoicev2PhoneNumberState.Builder monthlyLeasingPrice(java.lang.String monthlyLeasingPrice)
- Parameters:
monthlyLeasingPrice- Monthly price, in US dollars, to lease the phone number.- Returns:
- builder
-
numberCapabilities
public Smsvoicev2PhoneNumberState.Builder numberCapabilities(@Nullable 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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.Builder numberType(@Nullable 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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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
-
phoneNumber
public Smsvoicev2PhoneNumberState.Builder phoneNumber(@Nullable com.pulumi.core.Output<java.lang.String> phoneNumber)
- Parameters:
phoneNumber- New phone number that was requested.- Returns:
- builder
-
phoneNumber
public Smsvoicev2PhoneNumberState.Builder phoneNumber(java.lang.String phoneNumber)
- Parameters:
phoneNumber- New phone number that was requested.- Returns:
- builder
-
region
public Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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
-
status
public Smsvoicev2PhoneNumberState.Builder status(@Nullable com.pulumi.core.Output<java.lang.String> status)
- Parameters:
status- Status of the phone number. Possible values are `PENDING`, `ACTIVE`, `ASSOCIATING`, `DISASSOCIATING`, and `DELETED`.- Returns:
- builder
-
status
public Smsvoicev2PhoneNumberState.Builder status(java.lang.String status)
- Parameters:
status- Status of the phone number. Possible values are `PENDING`, `ACTIVE`, `ASSOCIATING`, `DISASSOCIATING`, and `DELETED`.- Returns:
- builder
-
tags
public Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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
-
tagsAll
public Smsvoicev2PhoneNumberState.Builder tagsAll(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)
- Parameters:
tagsAll- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
tagsAll
public Smsvoicev2PhoneNumberState.Builder tagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
- Parameters:
tagsAll- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
timeouts
public Smsvoicev2PhoneNumberState.Builder timeouts(@Nullable com.pulumi.core.Output<Smsvoicev2PhoneNumberTimeoutsArgs> timeouts)
-
timeouts
public Smsvoicev2PhoneNumberState.Builder timeouts(Smsvoicev2PhoneNumberTimeoutsArgs timeouts)
-
twoWayChannelArn
public Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState.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 Smsvoicev2PhoneNumberState build()
-
-