Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
The Locale data structure represents a geographical region or location.
See: newLocale
smart constructor.
Locale' | |
|
Instances
Eq Locale Source # | |
Read Locale Source # | |
Show Locale Source # | |
Generic Locale Source # | |
NFData Locale Source # | |
Defined in Amazonka.MechanicalTurk.Types.Locale | |
Hashable Locale Source # | |
Defined in Amazonka.MechanicalTurk.Types.Locale | |
ToJSON Locale Source # | |
Defined in Amazonka.MechanicalTurk.Types.Locale | |
FromJSON Locale Source # | |
type Rep Locale Source # | |
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))) |
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.