{-# 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.Data as Data
import qualified Amazonka.Prelude as Prelude
newtype FolderContentType = FolderContentType'
{ FolderContentType -> Text
fromFolderContentType ::
Data.Text
}
deriving stock
( Int -> FolderContentType -> ShowS
[FolderContentType] -> ShowS
FolderContentType -> String
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]
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
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
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
Prelude.Ord,
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
( Eq FolderContentType
Int -> FolderContentType -> Int
FolderContentType -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: FolderContentType -> ()
$crnf :: FolderContentType -> ()
Prelude.NFData,
Text -> Either String FolderContentType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String FolderContentType
$cfromText :: Text -> Either String FolderContentType
Data.FromText,
FolderContentType -> Text
forall a. (a -> Text) -> ToText a
toText :: FolderContentType -> Text
$ctoText :: FolderContentType -> Text
Data.ToText,
FolderContentType -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: FolderContentType -> ByteString
$ctoBS :: FolderContentType -> ByteString
Data.ToByteString,
FolderContentType -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: FolderContentType -> ByteStringBuilder
$cbuild :: FolderContentType -> ByteStringBuilder
Data.ToLog,
HeaderName -> FolderContentType -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> FolderContentType -> [Header]
$ctoHeader :: HeaderName -> FolderContentType -> [Header]
Data.ToHeader,
FolderContentType -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: FolderContentType -> QueryString
$ctoQuery :: FolderContentType -> QueryString
Data.ToQuery,
Value -> Parser [FolderContentType]
Value -> Parser 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
Data.FromJSON,
FromJSONKeyFunction [FolderContentType]
FromJSONKeyFunction FolderContentType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [FolderContentType]
$cfromJSONKeyList :: FromJSONKeyFunction [FolderContentType]
fromJSONKey :: FromJSONKeyFunction FolderContentType
$cfromJSONKey :: FromJSONKeyFunction FolderContentType
Data.FromJSONKey,
[FolderContentType] -> Encoding
[FolderContentType] -> Value
FolderContentType -> Encoding
FolderContentType -> Value
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
Data.ToJSON,
ToJSONKeyFunction [FolderContentType]
ToJSONKeyFunction FolderContentType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [FolderContentType]
$ctoJSONKeyList :: ToJSONKeyFunction [FolderContentType]
toJSONKey :: ToJSONKeyFunction FolderContentType
$ctoJSONKey :: ToJSONKeyFunction FolderContentType
Data.ToJSONKey,
[Node] -> Either String FolderContentType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String FolderContentType
$cparseXML :: [Node] -> Either String FolderContentType
Data.FromXML,
FolderContentType -> XML
forall a. (a -> XML) -> ToXML a
toXML :: FolderContentType -> XML
$ctoXML :: FolderContentType -> XML
Data.ToXML
)
pattern FolderContentType_ALL :: FolderContentType
pattern $bFolderContentType_ALL :: FolderContentType
$mFolderContentType_ALL :: forall {r}. FolderContentType -> ((# #) -> r) -> ((# #) -> r) -> r
FolderContentType_ALL = FolderContentType' "ALL"
pattern FolderContentType_DOCUMENT :: FolderContentType
pattern $bFolderContentType_DOCUMENT :: FolderContentType
$mFolderContentType_DOCUMENT :: forall {r}. FolderContentType -> ((# #) -> r) -> ((# #) -> r) -> r
FolderContentType_DOCUMENT = FolderContentType' "DOCUMENT"
pattern FolderContentType_FOLDER :: FolderContentType
pattern $bFolderContentType_FOLDER :: FolderContentType
$mFolderContentType_FOLDER :: forall {r}. FolderContentType -> ((# #) -> r) -> ((# #) -> r) -> r
FolderContentType_FOLDER = FolderContentType' "FOLDER"
{-# COMPLETE
FolderContentType_ALL,
FolderContentType_DOCUMENT,
FolderContentType_FOLDER,
FolderContentType'
#-}