{-# 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.ConnectParticipant.Types.ScanDirection
-- 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.ConnectParticipant.Types.ScanDirection
  ( ScanDirection
      ( ..,
        ScanDirection_BACKWARD,
        ScanDirection_FORWARD
      ),
  )
where

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

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

pattern ScanDirection_BACKWARD :: ScanDirection
pattern $bScanDirection_BACKWARD :: ScanDirection
$mScanDirection_BACKWARD :: forall {r}. ScanDirection -> ((# #) -> r) -> ((# #) -> r) -> r
ScanDirection_BACKWARD = ScanDirection' "BACKWARD"

pattern ScanDirection_FORWARD :: ScanDirection
pattern $bScanDirection_FORWARD :: ScanDirection
$mScanDirection_FORWARD :: forall {r}. ScanDirection -> ((# #) -> r) -> ((# #) -> r) -> r
ScanDirection_FORWARD = ScanDirection' "FORWARD"

{-# COMPLETE
  ScanDirection_BACKWARD,
  ScanDirection_FORWARD,
  ScanDirection'
  #-}