{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.QuickSight.Types.GeoSpatialDataRole
-- 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)
module Amazonka.QuickSight.Types.GeoSpatialDataRole
  ( GeoSpatialDataRole
      ( ..,
        GeoSpatialDataRole_CITY,
        GeoSpatialDataRole_COUNTRY,
        GeoSpatialDataRole_COUNTY,
        GeoSpatialDataRole_LATITUDE,
        GeoSpatialDataRole_LONGITUDE,
        GeoSpatialDataRole_POSTCODE,
        GeoSpatialDataRole_STATE
      ),
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude

newtype GeoSpatialDataRole = GeoSpatialDataRole'
  { GeoSpatialDataRole -> Text
fromGeoSpatialDataRole ::
      Core.Text
  }
  deriving stock
    ( Int -> GeoSpatialDataRole -> ShowS
[GeoSpatialDataRole] -> ShowS
GeoSpatialDataRole -> String
(Int -> GeoSpatialDataRole -> ShowS)
-> (GeoSpatialDataRole -> String)
-> ([GeoSpatialDataRole] -> ShowS)
-> Show GeoSpatialDataRole
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GeoSpatialDataRole] -> ShowS
$cshowList :: [GeoSpatialDataRole] -> ShowS
show :: GeoSpatialDataRole -> String
$cshow :: GeoSpatialDataRole -> String
showsPrec :: Int -> GeoSpatialDataRole -> ShowS
$cshowsPrec :: Int -> GeoSpatialDataRole -> ShowS
Prelude.Show,
      ReadPrec [GeoSpatialDataRole]
ReadPrec GeoSpatialDataRole
Int -> ReadS GeoSpatialDataRole
ReadS [GeoSpatialDataRole]
(Int -> ReadS GeoSpatialDataRole)
-> ReadS [GeoSpatialDataRole]
-> ReadPrec GeoSpatialDataRole
-> ReadPrec [GeoSpatialDataRole]
-> Read GeoSpatialDataRole
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GeoSpatialDataRole]
$creadListPrec :: ReadPrec [GeoSpatialDataRole]
readPrec :: ReadPrec GeoSpatialDataRole
$creadPrec :: ReadPrec GeoSpatialDataRole
readList :: ReadS [GeoSpatialDataRole]
$creadList :: ReadS [GeoSpatialDataRole]
readsPrec :: Int -> ReadS GeoSpatialDataRole
$creadsPrec :: Int -> ReadS GeoSpatialDataRole
Prelude.Read,
      GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
(GeoSpatialDataRole -> GeoSpatialDataRole -> Bool)
-> (GeoSpatialDataRole -> GeoSpatialDataRole -> Bool)
-> Eq GeoSpatialDataRole
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
$c/= :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
== :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
$c== :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
Prelude.Eq,
      Eq GeoSpatialDataRole
Eq GeoSpatialDataRole
-> (GeoSpatialDataRole -> GeoSpatialDataRole -> Ordering)
-> (GeoSpatialDataRole -> GeoSpatialDataRole -> Bool)
-> (GeoSpatialDataRole -> GeoSpatialDataRole -> Bool)
-> (GeoSpatialDataRole -> GeoSpatialDataRole -> Bool)
-> (GeoSpatialDataRole -> GeoSpatialDataRole -> Bool)
-> (GeoSpatialDataRole -> GeoSpatialDataRole -> GeoSpatialDataRole)
-> (GeoSpatialDataRole -> GeoSpatialDataRole -> GeoSpatialDataRole)
-> Ord GeoSpatialDataRole
GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
GeoSpatialDataRole -> GeoSpatialDataRole -> Ordering
GeoSpatialDataRole -> GeoSpatialDataRole -> GeoSpatialDataRole
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: GeoSpatialDataRole -> GeoSpatialDataRole -> GeoSpatialDataRole
$cmin :: GeoSpatialDataRole -> GeoSpatialDataRole -> GeoSpatialDataRole
max :: GeoSpatialDataRole -> GeoSpatialDataRole -> GeoSpatialDataRole
$cmax :: GeoSpatialDataRole -> GeoSpatialDataRole -> GeoSpatialDataRole
>= :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
$c>= :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
> :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
$c> :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
<= :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
$c<= :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
< :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
$c< :: GeoSpatialDataRole -> GeoSpatialDataRole -> Bool
compare :: GeoSpatialDataRole -> GeoSpatialDataRole -> Ordering
$ccompare :: GeoSpatialDataRole -> GeoSpatialDataRole -> Ordering
$cp1Ord :: Eq GeoSpatialDataRole
Prelude.Ord,
      (forall x. GeoSpatialDataRole -> Rep GeoSpatialDataRole x)
-> (forall x. Rep GeoSpatialDataRole x -> GeoSpatialDataRole)
-> Generic GeoSpatialDataRole
forall x. Rep GeoSpatialDataRole x -> GeoSpatialDataRole
forall x. GeoSpatialDataRole -> Rep GeoSpatialDataRole x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GeoSpatialDataRole x -> GeoSpatialDataRole
$cfrom :: forall x. GeoSpatialDataRole -> Rep GeoSpatialDataRole x
Prelude.Generic
    )
  deriving newtype
    ( Int -> GeoSpatialDataRole -> Int
GeoSpatialDataRole -> Int
(Int -> GeoSpatialDataRole -> Int)
-> (GeoSpatialDataRole -> Int) -> Hashable GeoSpatialDataRole
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: GeoSpatialDataRole -> Int
$chash :: GeoSpatialDataRole -> Int
hashWithSalt :: Int -> GeoSpatialDataRole -> Int
$chashWithSalt :: Int -> GeoSpatialDataRole -> Int
Prelude.Hashable,
      GeoSpatialDataRole -> ()
(GeoSpatialDataRole -> ()) -> NFData GeoSpatialDataRole
forall a. (a -> ()) -> NFData a
rnf :: GeoSpatialDataRole -> ()
$crnf :: GeoSpatialDataRole -> ()
Prelude.NFData,
      Text -> Either String GeoSpatialDataRole
(Text -> Either String GeoSpatialDataRole)
-> FromText GeoSpatialDataRole
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String GeoSpatialDataRole
$cfromText :: Text -> Either String GeoSpatialDataRole
Core.FromText,
      GeoSpatialDataRole -> Text
(GeoSpatialDataRole -> Text) -> ToText GeoSpatialDataRole
forall a. (a -> Text) -> ToText a
toText :: GeoSpatialDataRole -> Text
$ctoText :: GeoSpatialDataRole -> Text
Core.ToText,
      GeoSpatialDataRole -> ByteString
(GeoSpatialDataRole -> ByteString)
-> ToByteString GeoSpatialDataRole
forall a. (a -> ByteString) -> ToByteString a
toBS :: GeoSpatialDataRole -> ByteString
$ctoBS :: GeoSpatialDataRole -> ByteString
Core.ToByteString,
      GeoSpatialDataRole -> ByteStringBuilder
(GeoSpatialDataRole -> ByteStringBuilder)
-> ToLog GeoSpatialDataRole
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: GeoSpatialDataRole -> ByteStringBuilder
$cbuild :: GeoSpatialDataRole -> ByteStringBuilder
Core.ToLog,
      HeaderName -> GeoSpatialDataRole -> [Header]
(HeaderName -> GeoSpatialDataRole -> [Header])
-> ToHeader GeoSpatialDataRole
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> GeoSpatialDataRole -> [Header]
$ctoHeader :: HeaderName -> GeoSpatialDataRole -> [Header]
Core.ToHeader,
      GeoSpatialDataRole -> QueryString
(GeoSpatialDataRole -> QueryString) -> ToQuery GeoSpatialDataRole
forall a. (a -> QueryString) -> ToQuery a
toQuery :: GeoSpatialDataRole -> QueryString
$ctoQuery :: GeoSpatialDataRole -> QueryString
Core.ToQuery,
      Value -> Parser [GeoSpatialDataRole]
Value -> Parser GeoSpatialDataRole
(Value -> Parser GeoSpatialDataRole)
-> (Value -> Parser [GeoSpatialDataRole])
-> FromJSON GeoSpatialDataRole
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [GeoSpatialDataRole]
$cparseJSONList :: Value -> Parser [GeoSpatialDataRole]
parseJSON :: Value -> Parser GeoSpatialDataRole
$cparseJSON :: Value -> Parser GeoSpatialDataRole
Core.FromJSON,
      FromJSONKeyFunction [GeoSpatialDataRole]
FromJSONKeyFunction GeoSpatialDataRole
FromJSONKeyFunction GeoSpatialDataRole
-> FromJSONKeyFunction [GeoSpatialDataRole]
-> FromJSONKey GeoSpatialDataRole
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [GeoSpatialDataRole]
$cfromJSONKeyList :: FromJSONKeyFunction [GeoSpatialDataRole]
fromJSONKey :: FromJSONKeyFunction GeoSpatialDataRole
$cfromJSONKey :: FromJSONKeyFunction GeoSpatialDataRole
Core.FromJSONKey,
      [GeoSpatialDataRole] -> Encoding
[GeoSpatialDataRole] -> Value
GeoSpatialDataRole -> Encoding
GeoSpatialDataRole -> Value
(GeoSpatialDataRole -> Value)
-> (GeoSpatialDataRole -> Encoding)
-> ([GeoSpatialDataRole] -> Value)
-> ([GeoSpatialDataRole] -> Encoding)
-> ToJSON GeoSpatialDataRole
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [GeoSpatialDataRole] -> Encoding
$ctoEncodingList :: [GeoSpatialDataRole] -> Encoding
toJSONList :: [GeoSpatialDataRole] -> Value
$ctoJSONList :: [GeoSpatialDataRole] -> Value
toEncoding :: GeoSpatialDataRole -> Encoding
$ctoEncoding :: GeoSpatialDataRole -> Encoding
toJSON :: GeoSpatialDataRole -> Value
$ctoJSON :: GeoSpatialDataRole -> Value
Core.ToJSON,
      ToJSONKeyFunction [GeoSpatialDataRole]
ToJSONKeyFunction GeoSpatialDataRole
ToJSONKeyFunction GeoSpatialDataRole
-> ToJSONKeyFunction [GeoSpatialDataRole]
-> ToJSONKey GeoSpatialDataRole
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [GeoSpatialDataRole]
$ctoJSONKeyList :: ToJSONKeyFunction [GeoSpatialDataRole]
toJSONKey :: ToJSONKeyFunction GeoSpatialDataRole
$ctoJSONKey :: ToJSONKeyFunction GeoSpatialDataRole
Core.ToJSONKey,
      [Node] -> Either String GeoSpatialDataRole
([Node] -> Either String GeoSpatialDataRole)
-> FromXML GeoSpatialDataRole
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String GeoSpatialDataRole
$cparseXML :: [Node] -> Either String GeoSpatialDataRole
Core.FromXML,
      GeoSpatialDataRole -> XML
(GeoSpatialDataRole -> XML) -> ToXML GeoSpatialDataRole
forall a. (a -> XML) -> ToXML a
toXML :: GeoSpatialDataRole -> XML
$ctoXML :: GeoSpatialDataRole -> XML
Core.ToXML
    )

pattern GeoSpatialDataRole_CITY :: GeoSpatialDataRole
pattern $bGeoSpatialDataRole_CITY :: GeoSpatialDataRole
$mGeoSpatialDataRole_CITY :: forall r. GeoSpatialDataRole -> (Void# -> r) -> (Void# -> r) -> r
GeoSpatialDataRole_CITY = GeoSpatialDataRole' "CITY"

pattern GeoSpatialDataRole_COUNTRY :: GeoSpatialDataRole
pattern $bGeoSpatialDataRole_COUNTRY :: GeoSpatialDataRole
$mGeoSpatialDataRole_COUNTRY :: forall r. GeoSpatialDataRole -> (Void# -> r) -> (Void# -> r) -> r
GeoSpatialDataRole_COUNTRY = GeoSpatialDataRole' "COUNTRY"

pattern GeoSpatialDataRole_COUNTY :: GeoSpatialDataRole
pattern $bGeoSpatialDataRole_COUNTY :: GeoSpatialDataRole
$mGeoSpatialDataRole_COUNTY :: forall r. GeoSpatialDataRole -> (Void# -> r) -> (Void# -> r) -> r
GeoSpatialDataRole_COUNTY = GeoSpatialDataRole' "COUNTY"

pattern GeoSpatialDataRole_LATITUDE :: GeoSpatialDataRole
pattern $bGeoSpatialDataRole_LATITUDE :: GeoSpatialDataRole
$mGeoSpatialDataRole_LATITUDE :: forall r. GeoSpatialDataRole -> (Void# -> r) -> (Void# -> r) -> r
GeoSpatialDataRole_LATITUDE = GeoSpatialDataRole' "LATITUDE"

pattern GeoSpatialDataRole_LONGITUDE :: GeoSpatialDataRole
pattern $bGeoSpatialDataRole_LONGITUDE :: GeoSpatialDataRole
$mGeoSpatialDataRole_LONGITUDE :: forall r. GeoSpatialDataRole -> (Void# -> r) -> (Void# -> r) -> r
GeoSpatialDataRole_LONGITUDE = GeoSpatialDataRole' "LONGITUDE"

pattern GeoSpatialDataRole_POSTCODE :: GeoSpatialDataRole
pattern $bGeoSpatialDataRole_POSTCODE :: GeoSpatialDataRole
$mGeoSpatialDataRole_POSTCODE :: forall r. GeoSpatialDataRole -> (Void# -> r) -> (Void# -> r) -> r
GeoSpatialDataRole_POSTCODE = GeoSpatialDataRole' "POSTCODE"

pattern GeoSpatialDataRole_STATE :: GeoSpatialDataRole
pattern $bGeoSpatialDataRole_STATE :: GeoSpatialDataRole
$mGeoSpatialDataRole_STATE :: forall r. GeoSpatialDataRole -> (Void# -> r) -> (Void# -> r) -> r
GeoSpatialDataRole_STATE = GeoSpatialDataRole' "STATE"

{-# COMPLETE
  GeoSpatialDataRole_CITY,
  GeoSpatialDataRole_COUNTRY,
  GeoSpatialDataRole_COUNTY,
  GeoSpatialDataRole_LATITUDE,
  GeoSpatialDataRole_LONGITUDE,
  GeoSpatialDataRole_POSTCODE,
  GeoSpatialDataRole_STATE,
  GeoSpatialDataRole'
  #-}