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