{-# 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.WorkDocs.Types.DocumentStatusType
-- 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.WorkDocs.Types.DocumentStatusType
  ( DocumentStatusType
      ( ..,
        DocumentStatusType_ACTIVE,
        DocumentStatusType_INITIALIZED
      ),
  )
where

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

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

pattern DocumentStatusType_ACTIVE :: DocumentStatusType
pattern $bDocumentStatusType_ACTIVE :: DocumentStatusType
$mDocumentStatusType_ACTIVE :: forall {r}. DocumentStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentStatusType_ACTIVE = DocumentStatusType' "ACTIVE"

pattern DocumentStatusType_INITIALIZED :: DocumentStatusType
pattern $bDocumentStatusType_INITIALIZED :: DocumentStatusType
$mDocumentStatusType_INITIALIZED :: forall {r}. DocumentStatusType -> ((# #) -> r) -> ((# #) -> r) -> r
DocumentStatusType_INITIALIZED = DocumentStatusType' "INITIALIZED"

{-# COMPLETE
  DocumentStatusType_ACTIVE,
  DocumentStatusType_INITIALIZED,
  DocumentStatusType'
  #-}