{-# 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.DocumentVersionStatus
-- 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.DocumentVersionStatus
  ( DocumentVersionStatus
      ( ..,
        DocumentVersionStatus_ACTIVE
      ),
  )
where

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

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

pattern DocumentVersionStatus_ACTIVE :: DocumentVersionStatus
pattern $bDocumentVersionStatus_ACTIVE :: DocumentVersionStatus
$mDocumentVersionStatus_ACTIVE :: forall r.
DocumentVersionStatus -> (Void# -> r) -> (Void# -> r) -> r
DocumentVersionStatus_ACTIVE = DocumentVersionStatus' "ACTIVE"

{-# COMPLETE
  DocumentVersionStatus_ACTIVE,
  DocumentVersionStatus'
  #-}