Class Smsvoicev2PhoneNumberState.Builder

  • Enclosing class:
    Smsvoicev2PhoneNumberState

    public static final class Smsvoicev2PhoneNumberState.Builder
    extends java.lang.Object
    • 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
      • 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
      • 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