libZSservicesZSamazonka-pinpointZSamazonka-pinpoint
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Pinpoint.Types.NumberValidateResponse

Description

 
Synopsis

Documentation

data NumberValidateResponse Source #

Provides information about a phone number.

See: newNumberValidateResponse smart constructor.

Constructors

NumberValidateResponse' 

Fields

  • carrier :: Maybe Text

    The carrier or service provider that the phone number is currently registered with. In some countries and regions, this value may be the carrier or service provider that the phone number was originally registered with.

  • county :: Maybe Text

    The name of the county where the phone number was originally registered.

  • country :: Maybe Text

    The name of the country or region where the phone number was originally registered.

  • countryCodeNumeric :: Maybe Text

    The numeric code for the country or region where the phone number was originally registered.

  • zipCode :: Maybe Text

    The postal or ZIP code for the location where the phone number was originally registered.

  • originalPhoneNumber :: Maybe Text

    The phone number that was sent in the request body.

  • phoneTypeCode :: Maybe Int

    The phone type, represented by an integer. Valid values are: 0 (mobile), 1 (landline), 2 (VoIP), 3 (invalid), 4 (other), and 5 (prepaid).

  • phoneType :: Maybe Text

    The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, INVALID, PREPAID, and OTHER.

  • city :: Maybe Text

    The name of the city where the phone number was originally registered.

  • countryCodeIso2 :: Maybe Text

    The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was originally registered.

  • timezone :: Maybe Text

    The time zone for the location where the phone number was originally registered.

  • originalCountryCodeIso2 :: Maybe Text

    The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the request body.

  • cleansedPhoneNumberNational :: Maybe Text

    The cleansed phone number, in the format for the location where the phone number was originally registered.

  • cleansedPhoneNumberE164 :: Maybe Text

    The cleansed phone number, in E.164 format, for the location where the phone number was originally registered.

Instances

Instances details
Eq NumberValidateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.NumberValidateResponse

Read NumberValidateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.NumberValidateResponse

Show NumberValidateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.NumberValidateResponse

Generic NumberValidateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.NumberValidateResponse

Associated Types

type Rep NumberValidateResponse :: Type -> Type #

NFData NumberValidateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.NumberValidateResponse

Methods

rnf :: NumberValidateResponse -> () #

Hashable NumberValidateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.NumberValidateResponse

FromJSON NumberValidateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.NumberValidateResponse

type Rep NumberValidateResponse Source # 
Instance details

Defined in Amazonka.Pinpoint.Types.NumberValidateResponse

type Rep NumberValidateResponse = D1 ('MetaData "NumberValidateResponse" "Amazonka.Pinpoint.Types.NumberValidateResponse" "libZSservicesZSamazonka-pinpointZSamazonka-pinpoint" 'False) (C1 ('MetaCons "NumberValidateResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "carrier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "county") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "country") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "countryCodeNumeric") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "zipCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "originalPhoneNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "phoneTypeCode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int))))) :*: ((S1 ('MetaSel ('Just "phoneType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "city") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "countryCodeIso2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 ('MetaSel ('Just "timezone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "originalCountryCodeIso2") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "cleansedPhoneNumberNational") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "cleansedPhoneNumberE164") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))))

newNumberValidateResponse :: NumberValidateResponse Source #

Create a value of NumberValidateResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:carrier:NumberValidateResponse', numberValidateResponse_carrier - The carrier or service provider that the phone number is currently registered with. In some countries and regions, this value may be the carrier or service provider that the phone number was originally registered with.

$sel:county:NumberValidateResponse', numberValidateResponse_county - The name of the county where the phone number was originally registered.

$sel:country:NumberValidateResponse', numberValidateResponse_country - The name of the country or region where the phone number was originally registered.

$sel:countryCodeNumeric:NumberValidateResponse', numberValidateResponse_countryCodeNumeric - The numeric code for the country or region where the phone number was originally registered.

$sel:zipCode:NumberValidateResponse', numberValidateResponse_zipCode - The postal or ZIP code for the location where the phone number was originally registered.

$sel:originalPhoneNumber:NumberValidateResponse', numberValidateResponse_originalPhoneNumber - The phone number that was sent in the request body.

$sel:phoneTypeCode:NumberValidateResponse', numberValidateResponse_phoneTypeCode - The phone type, represented by an integer. Valid values are: 0 (mobile), 1 (landline), 2 (VoIP), 3 (invalid), 4 (other), and 5 (prepaid).

$sel:phoneType:NumberValidateResponse', numberValidateResponse_phoneType - The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, INVALID, PREPAID, and OTHER.

$sel:city:NumberValidateResponse', numberValidateResponse_city - The name of the city where the phone number was originally registered.

$sel:countryCodeIso2:NumberValidateResponse', numberValidateResponse_countryCodeIso2 - The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was originally registered.

$sel:timezone:NumberValidateResponse', numberValidateResponse_timezone - The time zone for the location where the phone number was originally registered.

$sel:originalCountryCodeIso2:NumberValidateResponse', numberValidateResponse_originalCountryCodeIso2 - The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the request body.

$sel:cleansedPhoneNumberNational:NumberValidateResponse', numberValidateResponse_cleansedPhoneNumberNational - The cleansed phone number, in the format for the location where the phone number was originally registered.

$sel:cleansedPhoneNumberE164:NumberValidateResponse', numberValidateResponse_cleansedPhoneNumberE164 - The cleansed phone number, in E.164 format, for the location where the phone number was originally registered.

numberValidateResponse_carrier :: Lens' NumberValidateResponse (Maybe Text) Source #

The carrier or service provider that the phone number is currently registered with. In some countries and regions, this value may be the carrier or service provider that the phone number was originally registered with.

numberValidateResponse_county :: Lens' NumberValidateResponse (Maybe Text) Source #

The name of the county where the phone number was originally registered.

numberValidateResponse_country :: Lens' NumberValidateResponse (Maybe Text) Source #

The name of the country or region where the phone number was originally registered.

numberValidateResponse_countryCodeNumeric :: Lens' NumberValidateResponse (Maybe Text) Source #

The numeric code for the country or region where the phone number was originally registered.

numberValidateResponse_zipCode :: Lens' NumberValidateResponse (Maybe Text) Source #

The postal or ZIP code for the location where the phone number was originally registered.

numberValidateResponse_originalPhoneNumber :: Lens' NumberValidateResponse (Maybe Text) Source #

The phone number that was sent in the request body.

numberValidateResponse_phoneTypeCode :: Lens' NumberValidateResponse (Maybe Int) Source #

The phone type, represented by an integer. Valid values are: 0 (mobile), 1 (landline), 2 (VoIP), 3 (invalid), 4 (other), and 5 (prepaid).

numberValidateResponse_phoneType :: Lens' NumberValidateResponse (Maybe Text) Source #

The description of the phone type. Valid values are: MOBILE, LANDLINE, VOIP, INVALID, PREPAID, and OTHER.

numberValidateResponse_city :: Lens' NumberValidateResponse (Maybe Text) Source #

The name of the city where the phone number was originally registered.

numberValidateResponse_countryCodeIso2 :: Lens' NumberValidateResponse (Maybe Text) Source #

The two-character code, in ISO 3166-1 alpha-2 format, for the country or region where the phone number was originally registered.

numberValidateResponse_timezone :: Lens' NumberValidateResponse (Maybe Text) Source #

The time zone for the location where the phone number was originally registered.

numberValidateResponse_originalCountryCodeIso2 :: Lens' NumberValidateResponse (Maybe Text) Source #

The two-character code, in ISO 3166-1 alpha-2 format, that was sent in the request body.

numberValidateResponse_cleansedPhoneNumberNational :: Lens' NumberValidateResponse (Maybe Text) Source #

The cleansed phone number, in the format for the location where the phone number was originally registered.

numberValidateResponse_cleansedPhoneNumberE164 :: Lens' NumberValidateResponse (Maybe Text) Source #

The cleansed phone number, in E.164 format, for the location where the phone number was originally registered.