{-# 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.SSM.Types.DocumentMetadataEnum
-- 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.SSM.Types.DocumentMetadataEnum
  ( DocumentMetadataEnum
      ( ..,
        DocumentMetadataEnum_DocumentReviews
      ),
  )
where

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

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

pattern DocumentMetadataEnum_DocumentReviews :: DocumentMetadataEnum
pattern $bDocumentMetadataEnum_DocumentReviews :: DocumentMetadataEnum
$mDocumentMetadataEnum_DocumentReviews :: forall r. DocumentMetadataEnum -> (Void# -> r) -> (Void# -> r) -> r
DocumentMetadataEnum_DocumentReviews = DocumentMetadataEnum' "DocumentReviews"

{-# COMPLETE
  DocumentMetadataEnum_DocumentReviews,
  DocumentMetadataEnum'
  #-}