{-# 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-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- 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.Prelude as Prelude

newtype DocumentStatusType = DocumentStatusType'
  { DocumentStatusType -> Text
fromDocumentStatusType ::
      Core.Text
  }
  deriving stock
    ( Int -> DocumentStatusType -> ShowS
[DocumentStatusType] -> ShowS
DocumentStatusType -> String
(Int -> DocumentStatusType -> ShowS)
-> (DocumentStatusType -> String)
-> ([DocumentStatusType] -> ShowS)
-> Show DocumentStatusType
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]
(Int -> ReadS DocumentStatusType)
-> ReadS [DocumentStatusType]
-> ReadPrec DocumentStatusType
-> ReadPrec [DocumentStatusType]
-> Read 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
(DocumentStatusType -> DocumentStatusType -> Bool)
-> (DocumentStatusType -> DocumentStatusType -> Bool)
-> Eq DocumentStatusType
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
Eq DocumentStatusType
-> (DocumentStatusType -> DocumentStatusType -> Ordering)
-> (DocumentStatusType -> DocumentStatusType -> Bool)
-> (DocumentStatusType -> DocumentStatusType -> Bool)
-> (DocumentStatusType -> DocumentStatusType -> Bool)
-> (DocumentStatusType -> DocumentStatusType -> Bool)
-> (DocumentStatusType -> DocumentStatusType -> DocumentStatusType)
-> (DocumentStatusType -> DocumentStatusType -> DocumentStatusType)
-> Ord 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
$cp1Ord :: Eq DocumentStatusType
Prelude.Ord,
      (forall x. DocumentStatusType -> Rep DocumentStatusType x)
-> (forall x. Rep DocumentStatusType x -> DocumentStatusType)
-> Generic DocumentStatusType
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
    ( Int -> DocumentStatusType -> Int
DocumentStatusType -> Int
(Int -> DocumentStatusType -> Int)
-> (DocumentStatusType -> Int) -> Hashable DocumentStatusType
forall 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 -> ()
(DocumentStatusType -> ()) -> NFData DocumentStatusType
forall a. (a -> ()) -> NFData a
rnf :: DocumentStatusType -> ()
$crnf :: DocumentStatusType -> ()
Prelude.NFData,
      Text -> Either String DocumentStatusType
(Text -> Either String DocumentStatusType)
-> FromText DocumentStatusType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DocumentStatusType
$cfromText :: Text -> Either String DocumentStatusType
Core.FromText,
      DocumentStatusType -> Text
(DocumentStatusType -> Text) -> ToText DocumentStatusType
forall a. (a -> Text) -> ToText a
toText :: DocumentStatusType -> Text
$ctoText :: DocumentStatusType -> Text
Core.ToText,
      DocumentStatusType -> ByteString
(DocumentStatusType -> ByteString)
-> ToByteString DocumentStatusType
forall a. (a -> ByteString) -> ToByteString a
toBS :: DocumentStatusType -> ByteString
$ctoBS :: DocumentStatusType -> ByteString
Core.ToByteString,
      DocumentStatusType -> ByteStringBuilder
(DocumentStatusType -> ByteStringBuilder)
-> ToLog DocumentStatusType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DocumentStatusType -> ByteStringBuilder
$cbuild :: DocumentStatusType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> DocumentStatusType -> [Header]
(HeaderName -> DocumentStatusType -> [Header])
-> ToHeader DocumentStatusType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DocumentStatusType -> [Header]
$ctoHeader :: HeaderName -> DocumentStatusType -> [Header]
Core.ToHeader,
      DocumentStatusType -> QueryString
(DocumentStatusType -> QueryString) -> ToQuery DocumentStatusType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DocumentStatusType -> QueryString
$ctoQuery :: DocumentStatusType -> QueryString
Core.ToQuery,
      Value -> Parser [DocumentStatusType]
Value -> Parser DocumentStatusType
(Value -> Parser DocumentStatusType)
-> (Value -> Parser [DocumentStatusType])
-> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [DocumentStatusType]
FromJSONKeyFunction DocumentStatusType
FromJSONKeyFunction DocumentStatusType
-> FromJSONKeyFunction [DocumentStatusType]
-> FromJSONKey DocumentStatusType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DocumentStatusType]
$cfromJSONKeyList :: FromJSONKeyFunction [DocumentStatusType]
fromJSONKey :: FromJSONKeyFunction DocumentStatusType
$cfromJSONKey :: FromJSONKeyFunction DocumentStatusType
Core.FromJSONKey,
      [DocumentStatusType] -> Encoding
[DocumentStatusType] -> Value
DocumentStatusType -> Encoding
DocumentStatusType -> Value
(DocumentStatusType -> Value)
-> (DocumentStatusType -> Encoding)
-> ([DocumentStatusType] -> Value)
-> ([DocumentStatusType] -> Encoding)
-> ToJSON DocumentStatusType
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
Core.ToJSON,
      ToJSONKeyFunction [DocumentStatusType]
ToJSONKeyFunction DocumentStatusType
ToJSONKeyFunction DocumentStatusType
-> ToJSONKeyFunction [DocumentStatusType]
-> ToJSONKey DocumentStatusType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DocumentStatusType]
$ctoJSONKeyList :: ToJSONKeyFunction [DocumentStatusType]
toJSONKey :: ToJSONKeyFunction DocumentStatusType
$ctoJSONKey :: ToJSONKeyFunction DocumentStatusType
Core.ToJSONKey,
      [Node] -> Either String DocumentStatusType
([Node] -> Either String DocumentStatusType)
-> FromXML DocumentStatusType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DocumentStatusType
$cparseXML :: [Node] -> Either String DocumentStatusType
Core.FromXML,
      DocumentStatusType -> XML
(DocumentStatusType -> XML) -> ToXML DocumentStatusType
forall a. (a -> XML) -> ToXML a
toXML :: DocumentStatusType -> XML
$ctoXML :: DocumentStatusType -> XML
Core.ToXML
    )

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

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

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