{-# 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.Connect.Types.HierarchyGroupMatchType
-- 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.Connect.Types.HierarchyGroupMatchType
  ( HierarchyGroupMatchType
      ( ..,
        HierarchyGroupMatchType_EXACT,
        HierarchyGroupMatchType_WITH_CHILD_GROUPS
      ),
  )
where

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

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

pattern HierarchyGroupMatchType_EXACT :: HierarchyGroupMatchType
pattern $bHierarchyGroupMatchType_EXACT :: HierarchyGroupMatchType
$mHierarchyGroupMatchType_EXACT :: forall {r}.
HierarchyGroupMatchType -> ((# #) -> r) -> ((# #) -> r) -> r
HierarchyGroupMatchType_EXACT = HierarchyGroupMatchType' "EXACT"

pattern HierarchyGroupMatchType_WITH_CHILD_GROUPS :: HierarchyGroupMatchType
pattern $bHierarchyGroupMatchType_WITH_CHILD_GROUPS :: HierarchyGroupMatchType
$mHierarchyGroupMatchType_WITH_CHILD_GROUPS :: forall {r}.
HierarchyGroupMatchType -> ((# #) -> r) -> ((# #) -> r) -> r
HierarchyGroupMatchType_WITH_CHILD_GROUPS = HierarchyGroupMatchType' "WITH_CHILD_GROUPS"

{-# COMPLETE
  HierarchyGroupMatchType_EXACT,
  HierarchyGroupMatchType_WITH_CHILD_GROUPS,
  HierarchyGroupMatchType'
  #-}