{-# 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.Chime.Types.GeoMatchLevel
-- 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.Chime.Types.GeoMatchLevel
  ( GeoMatchLevel
      ( ..,
        GeoMatchLevel_AreaCode,
        GeoMatchLevel_Country
      ),
  )
where

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

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

pattern GeoMatchLevel_AreaCode :: GeoMatchLevel
pattern $bGeoMatchLevel_AreaCode :: GeoMatchLevel
$mGeoMatchLevel_AreaCode :: forall r. GeoMatchLevel -> (Void# -> r) -> (Void# -> r) -> r
GeoMatchLevel_AreaCode = GeoMatchLevel' "AreaCode"

pattern GeoMatchLevel_Country :: GeoMatchLevel
pattern $bGeoMatchLevel_Country :: GeoMatchLevel
$mGeoMatchLevel_Country :: forall r. GeoMatchLevel -> (Void# -> r) -> (Void# -> r) -> r
GeoMatchLevel_Country = GeoMatchLevel' "Country"

{-# COMPLETE
  GeoMatchLevel_AreaCode,
  GeoMatchLevel_Country,
  GeoMatchLevel'
  #-}