{-# 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.WAF.Types.GeoMatchConstraintType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.WAF.Types.GeoMatchConstraintType
  ( GeoMatchConstraintType
      ( ..,
        GeoMatchConstraintType_Country
      ),
  )
where

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

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

pattern GeoMatchConstraintType_Country :: GeoMatchConstraintType
pattern $bGeoMatchConstraintType_Country :: GeoMatchConstraintType
$mGeoMatchConstraintType_Country :: forall {r}.
GeoMatchConstraintType -> ((# #) -> r) -> ((# #) -> r) -> r
GeoMatchConstraintType_Country = GeoMatchConstraintType' "Country"

{-# COMPLETE
  GeoMatchConstraintType_Country,
  GeoMatchConstraintType'
  #-}