libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk
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.MechanicalTurk.Types.Locale

Description

 
Synopsis

Documentation

data Locale Source #

The Locale data structure represents a geographical region or location.

See: newLocale smart constructor.

Constructors

Locale' 

Fields

  • subdivision :: Maybe Text

    The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.

  • country :: Text

    The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.

Instances

Instances details
Eq Locale Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Locale

Methods

(==) :: Locale -> Locale -> Bool #

(/=) :: Locale -> Locale -> Bool #

Read Locale Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Locale

Show Locale Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Locale

Generic Locale Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Locale

Associated Types

type Rep Locale :: Type -> Type #

Methods

from :: Locale -> Rep Locale x #

to :: Rep Locale x -> Locale #

NFData Locale Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Locale

Methods

rnf :: Locale -> () #

Hashable Locale Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Locale

Methods

hashWithSalt :: Int -> Locale -> Int #

hash :: Locale -> Int #

ToJSON Locale Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Locale

FromJSON Locale Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Locale

type Rep Locale Source # 
Instance details

Defined in Amazonka.MechanicalTurk.Types.Locale

type Rep Locale = D1 ('MetaData "Locale" "Amazonka.MechanicalTurk.Types.Locale" "libZSservicesZSamazonka-mechanicalturkZSamazonka-mechanicalturk" 'False) (C1 ('MetaCons "Locale'" 'PrefixI 'True) (S1 ('MetaSel ('Just "subdivision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "country") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newLocale Source #

Create a value of Locale 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:subdivision:Locale', locale_subdivision - The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.

$sel:country:Locale', locale_country - The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.

locale_subdivision :: Lens' Locale (Maybe Text) Source #

The state or subdivision of the locale. A valid ISO 3166-2 subdivision code. For example, the code WA refers to the state of Washington.

locale_country :: Lens' Locale Text Source #

The country of the locale. Must be a valid ISO 3166 country code. For example, the code US refers to the United States of America.