{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.ConnectParticipant.Types.ScanDirection
( ScanDirection
( ..,
ScanDirection_BACKWARD,
ScanDirection_FORWARD
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ScanDirection = ScanDirection'
{ ScanDirection -> Text
fromScanDirection ::
Core.Text
}
deriving stock
( Int -> ScanDirection -> ShowS
[ScanDirection] -> ShowS
ScanDirection -> String
(Int -> ScanDirection -> ShowS)
-> (ScanDirection -> String)
-> ([ScanDirection] -> ShowS)
-> Show ScanDirection
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]
(Int -> ReadS ScanDirection)
-> ReadS [ScanDirection]
-> ReadPrec ScanDirection
-> ReadPrec [ScanDirection]
-> Read 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
(ScanDirection -> ScanDirection -> Bool)
-> (ScanDirection -> ScanDirection -> Bool) -> Eq ScanDirection
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
Eq ScanDirection
-> (ScanDirection -> ScanDirection -> Ordering)
-> (ScanDirection -> ScanDirection -> Bool)
-> (ScanDirection -> ScanDirection -> Bool)
-> (ScanDirection -> ScanDirection -> Bool)
-> (ScanDirection -> ScanDirection -> Bool)
-> (ScanDirection -> ScanDirection -> ScanDirection)
-> (ScanDirection -> ScanDirection -> ScanDirection)
-> Ord 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
$cp1Ord :: Eq ScanDirection
Prelude.Ord,
(forall x. ScanDirection -> Rep ScanDirection x)
-> (forall x. Rep ScanDirection x -> ScanDirection)
-> Generic ScanDirection
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
( Int -> ScanDirection -> Int
ScanDirection -> Int
(Int -> ScanDirection -> Int)
-> (ScanDirection -> Int) -> Hashable ScanDirection
forall 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 -> ()
(ScanDirection -> ()) -> NFData ScanDirection
forall a. (a -> ()) -> NFData a
rnf :: ScanDirection -> ()
$crnf :: ScanDirection -> ()
Prelude.NFData,
Text -> Either String ScanDirection
(Text -> Either String ScanDirection) -> FromText ScanDirection
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ScanDirection
$cfromText :: Text -> Either String ScanDirection
Core.FromText,
ScanDirection -> Text
(ScanDirection -> Text) -> ToText ScanDirection
forall a. (a -> Text) -> ToText a
toText :: ScanDirection -> Text
$ctoText :: ScanDirection -> Text
Core.ToText,
ScanDirection -> ByteString
(ScanDirection -> ByteString) -> ToByteString ScanDirection
forall a. (a -> ByteString) -> ToByteString a
toBS :: ScanDirection -> ByteString
$ctoBS :: ScanDirection -> ByteString
Core.ToByteString,
ScanDirection -> ByteStringBuilder
(ScanDirection -> ByteStringBuilder) -> ToLog ScanDirection
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ScanDirection -> ByteStringBuilder
$cbuild :: ScanDirection -> ByteStringBuilder
Core.ToLog,
HeaderName -> ScanDirection -> [Header]
(HeaderName -> ScanDirection -> [Header]) -> ToHeader ScanDirection
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ScanDirection -> [Header]
$ctoHeader :: HeaderName -> ScanDirection -> [Header]
Core.ToHeader,
ScanDirection -> QueryString
(ScanDirection -> QueryString) -> ToQuery ScanDirection
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ScanDirection -> QueryString
$ctoQuery :: ScanDirection -> QueryString
Core.ToQuery,
Value -> Parser [ScanDirection]
Value -> Parser ScanDirection
(Value -> Parser ScanDirection)
-> (Value -> Parser [ScanDirection]) -> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [ScanDirection]
FromJSONKeyFunction ScanDirection
FromJSONKeyFunction ScanDirection
-> FromJSONKeyFunction [ScanDirection] -> FromJSONKey ScanDirection
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ScanDirection]
$cfromJSONKeyList :: FromJSONKeyFunction [ScanDirection]
fromJSONKey :: FromJSONKeyFunction ScanDirection
$cfromJSONKey :: FromJSONKeyFunction ScanDirection
Core.FromJSONKey,
[ScanDirection] -> Encoding
[ScanDirection] -> Value
ScanDirection -> Encoding
ScanDirection -> Value
(ScanDirection -> Value)
-> (ScanDirection -> Encoding)
-> ([ScanDirection] -> Value)
-> ([ScanDirection] -> Encoding)
-> ToJSON ScanDirection
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
Core.ToJSON,
ToJSONKeyFunction [ScanDirection]
ToJSONKeyFunction ScanDirection
ToJSONKeyFunction ScanDirection
-> ToJSONKeyFunction [ScanDirection] -> ToJSONKey ScanDirection
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ScanDirection]
$ctoJSONKeyList :: ToJSONKeyFunction [ScanDirection]
toJSONKey :: ToJSONKeyFunction ScanDirection
$ctoJSONKey :: ToJSONKeyFunction ScanDirection
Core.ToJSONKey,
[Node] -> Either String ScanDirection
([Node] -> Either String ScanDirection) -> FromXML ScanDirection
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ScanDirection
$cparseXML :: [Node] -> Either String ScanDirection
Core.FromXML,
ScanDirection -> XML
(ScanDirection -> XML) -> ToXML ScanDirection
forall a. (a -> XML) -> ToXML a
toXML :: ScanDirection -> XML
$ctoXML :: ScanDirection -> XML
Core.ToXML
)
pattern ScanDirection_BACKWARD :: ScanDirection
pattern $bScanDirection_BACKWARD :: ScanDirection
$mScanDirection_BACKWARD :: forall r. ScanDirection -> (Void# -> r) -> (Void# -> r) -> r
ScanDirection_BACKWARD = ScanDirection' "BACKWARD"
pattern ScanDirection_FORWARD :: ScanDirection
pattern $bScanDirection_FORWARD :: ScanDirection
$mScanDirection_FORWARD :: forall r. ScanDirection -> (Void# -> r) -> (Void# -> r) -> r
ScanDirection_FORWARD = ScanDirection' "FORWARD"
{-# COMPLETE
ScanDirection_BACKWARD,
ScanDirection_FORWARD,
ScanDirection'
#-}