{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.WorkDocs.Types.FolderContentType
( FolderContentType
( ..,
FolderContentType_ALL,
FolderContentType_DOCUMENT,
FolderContentType_FOLDER
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype FolderContentType = FolderContentType'
{ FolderContentType -> Text
fromFolderContentType ::
Core.Text
}
deriving stock
( Int -> FolderContentType -> ShowS
[FolderContentType] -> ShowS
FolderContentType -> String
(Int -> FolderContentType -> ShowS)
-> (FolderContentType -> String)
-> ([FolderContentType] -> ShowS)
-> Show FolderContentType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FolderContentType] -> ShowS
$cshowList :: [FolderContentType] -> ShowS
show :: FolderContentType -> String
$cshow :: FolderContentType -> String
showsPrec :: Int -> FolderContentType -> ShowS
$cshowsPrec :: Int -> FolderContentType -> ShowS
Prelude.Show,
ReadPrec [FolderContentType]
ReadPrec FolderContentType
Int -> ReadS FolderContentType
ReadS [FolderContentType]
(Int -> ReadS FolderContentType)
-> ReadS [FolderContentType]
-> ReadPrec FolderContentType
-> ReadPrec [FolderContentType]
-> Read FolderContentType
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FolderContentType]
$creadListPrec :: ReadPrec [FolderContentType]
readPrec :: ReadPrec FolderContentType
$creadPrec :: ReadPrec FolderContentType
readList :: ReadS [FolderContentType]
$creadList :: ReadS [FolderContentType]
readsPrec :: Int -> ReadS FolderContentType
$creadsPrec :: Int -> ReadS FolderContentType
Prelude.Read,
FolderContentType -> FolderContentType -> Bool
(FolderContentType -> FolderContentType -> Bool)
-> (FolderContentType -> FolderContentType -> Bool)
-> Eq FolderContentType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FolderContentType -> FolderContentType -> Bool
$c/= :: FolderContentType -> FolderContentType -> Bool
== :: FolderContentType -> FolderContentType -> Bool
$c== :: FolderContentType -> FolderContentType -> Bool
Prelude.Eq,
Eq FolderContentType
Eq FolderContentType
-> (FolderContentType -> FolderContentType -> Ordering)
-> (FolderContentType -> FolderContentType -> Bool)
-> (FolderContentType -> FolderContentType -> Bool)
-> (FolderContentType -> FolderContentType -> Bool)
-> (FolderContentType -> FolderContentType -> Bool)
-> (FolderContentType -> FolderContentType -> FolderContentType)
-> (FolderContentType -> FolderContentType -> FolderContentType)
-> Ord FolderContentType
FolderContentType -> FolderContentType -> Bool
FolderContentType -> FolderContentType -> Ordering
FolderContentType -> FolderContentType -> FolderContentType
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 :: FolderContentType -> FolderContentType -> FolderContentType
$cmin :: FolderContentType -> FolderContentType -> FolderContentType
max :: FolderContentType -> FolderContentType -> FolderContentType
$cmax :: FolderContentType -> FolderContentType -> FolderContentType
>= :: FolderContentType -> FolderContentType -> Bool
$c>= :: FolderContentType -> FolderContentType -> Bool
> :: FolderContentType -> FolderContentType -> Bool
$c> :: FolderContentType -> FolderContentType -> Bool
<= :: FolderContentType -> FolderContentType -> Bool
$c<= :: FolderContentType -> FolderContentType -> Bool
< :: FolderContentType -> FolderContentType -> Bool
$c< :: FolderContentType -> FolderContentType -> Bool
compare :: FolderContentType -> FolderContentType -> Ordering
$ccompare :: FolderContentType -> FolderContentType -> Ordering
$cp1Ord :: Eq FolderContentType
Prelude.Ord,
(forall x. FolderContentType -> Rep FolderContentType x)
-> (forall x. Rep FolderContentType x -> FolderContentType)
-> Generic FolderContentType
forall x. Rep FolderContentType x -> FolderContentType
forall x. FolderContentType -> Rep FolderContentType x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep FolderContentType x -> FolderContentType
$cfrom :: forall x. FolderContentType -> Rep FolderContentType x
Prelude.Generic
)
deriving newtype
( Int -> FolderContentType -> Int
FolderContentType -> Int
(Int -> FolderContentType -> Int)
-> (FolderContentType -> Int) -> Hashable FolderContentType
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: FolderContentType -> Int
$chash :: FolderContentType -> Int
hashWithSalt :: Int -> FolderContentType -> Int
$chashWithSalt :: Int -> FolderContentType -> Int
Prelude.Hashable,
FolderContentType -> ()
(FolderContentType -> ()) -> NFData FolderContentType
forall a. (a -> ()) -> NFData a
rnf :: FolderContentType -> ()
$crnf :: FolderContentType -> ()
Prelude.NFData,
Text -> Either String FolderContentType
(Text -> Either String FolderContentType)
-> FromText FolderContentType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FolderContentType
$cfromText :: Text -> Either String FolderContentType
Core.FromText,
FolderContentType -> Text
(FolderContentType -> Text) -> ToText FolderContentType
forall a. (a -> Text) -> ToText a
toText :: FolderContentType -> Text
$ctoText :: FolderContentType -> Text
Core.ToText,
FolderContentType -> ByteString
(FolderContentType -> ByteString) -> ToByteString FolderContentType
forall a. (a -> ByteString) -> ToByteString a
toBS :: FolderContentType -> ByteString
$ctoBS :: FolderContentType -> ByteString
Core.ToByteString,
FolderContentType -> ByteStringBuilder
(FolderContentType -> ByteStringBuilder) -> ToLog FolderContentType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FolderContentType -> ByteStringBuilder
$cbuild :: FolderContentType -> ByteStringBuilder
Core.ToLog,
HeaderName -> FolderContentType -> [Header]
(HeaderName -> FolderContentType -> [Header])
-> ToHeader FolderContentType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FolderContentType -> [Header]
$ctoHeader :: HeaderName -> FolderContentType -> [Header]
Core.ToHeader,
FolderContentType -> QueryString
(FolderContentType -> QueryString) -> ToQuery FolderContentType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FolderContentType -> QueryString
$ctoQuery :: FolderContentType -> QueryString
Core.ToQuery,
Value -> Parser [FolderContentType]
Value -> Parser FolderContentType
(Value -> Parser FolderContentType)
-> (Value -> Parser [FolderContentType])
-> FromJSON FolderContentType
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [FolderContentType]
$cparseJSONList :: Value -> Parser [FolderContentType]
parseJSON :: Value -> Parser FolderContentType
$cparseJSON :: Value -> Parser FolderContentType
Core.FromJSON,
FromJSONKeyFunction [FolderContentType]
FromJSONKeyFunction FolderContentType
FromJSONKeyFunction FolderContentType
-> FromJSONKeyFunction [FolderContentType]
-> FromJSONKey FolderContentType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FolderContentType]
$cfromJSONKeyList :: FromJSONKeyFunction [FolderContentType]
fromJSONKey :: FromJSONKeyFunction FolderContentType
$cfromJSONKey :: FromJSONKeyFunction FolderContentType
Core.FromJSONKey,
[FolderContentType] -> Encoding
[FolderContentType] -> Value
FolderContentType -> Encoding
FolderContentType -> Value
(FolderContentType -> Value)
-> (FolderContentType -> Encoding)
-> ([FolderContentType] -> Value)
-> ([FolderContentType] -> Encoding)
-> ToJSON FolderContentType
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [FolderContentType] -> Encoding
$ctoEncodingList :: [FolderContentType] -> Encoding
toJSONList :: [FolderContentType] -> Value
$ctoJSONList :: [FolderContentType] -> Value
toEncoding :: FolderContentType -> Encoding
$ctoEncoding :: FolderContentType -> Encoding
toJSON :: FolderContentType -> Value
$ctoJSON :: FolderContentType -> Value
Core.ToJSON,
ToJSONKeyFunction [FolderContentType]
ToJSONKeyFunction FolderContentType
ToJSONKeyFunction FolderContentType
-> ToJSONKeyFunction [FolderContentType]
-> ToJSONKey FolderContentType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FolderContentType]
$ctoJSONKeyList :: ToJSONKeyFunction [FolderContentType]
toJSONKey :: ToJSONKeyFunction FolderContentType
$ctoJSONKey :: ToJSONKeyFunction FolderContentType
Core.ToJSONKey,
[Node] -> Either String FolderContentType
([Node] -> Either String FolderContentType)
-> FromXML FolderContentType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FolderContentType
$cparseXML :: [Node] -> Either String FolderContentType
Core.FromXML,
FolderContentType -> XML
(FolderContentType -> XML) -> ToXML FolderContentType
forall a. (a -> XML) -> ToXML a
toXML :: FolderContentType -> XML
$ctoXML :: FolderContentType -> XML
Core.ToXML
)
pattern FolderContentType_ALL :: FolderContentType
pattern $bFolderContentType_ALL :: FolderContentType
$mFolderContentType_ALL :: forall r. FolderContentType -> (Void# -> r) -> (Void# -> r) -> r
FolderContentType_ALL = FolderContentType' "ALL"
pattern FolderContentType_DOCUMENT :: FolderContentType
pattern $bFolderContentType_DOCUMENT :: FolderContentType
$mFolderContentType_DOCUMENT :: forall r. FolderContentType -> (Void# -> r) -> (Void# -> r) -> r
FolderContentType_DOCUMENT = FolderContentType' "DOCUMENT"
pattern FolderContentType_FOLDER :: FolderContentType
pattern $bFolderContentType_FOLDER :: FolderContentType
$mFolderContentType_FOLDER :: forall r. FolderContentType -> (Void# -> r) -> (Void# -> r) -> r
FolderContentType_FOLDER = FolderContentType' "FOLDER"
{-# COMPLETE
FolderContentType_ALL,
FolderContentType_DOCUMENT,
FolderContentType_FOLDER,
FolderContentType'
#-}