{-# 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.DocumentThumbnailType
-- 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.DocumentThumbnailType
  ( DocumentThumbnailType
      ( ..,
        DocumentThumbnailType_LARGE,
        DocumentThumbnailType_SMALL,
        DocumentThumbnailType_SMALL_HQ
      ),
  )
where

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

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

pattern DocumentThumbnailType_LARGE :: DocumentThumbnailType
pattern $bDocumentThumbnailType_LARGE :: DocumentThumbnailType
$mDocumentThumbnailType_LARGE :: forall r.
DocumentThumbnailType -> (Void# -> r) -> (Void# -> r) -> r
DocumentThumbnailType_LARGE = DocumentThumbnailType' "LARGE"

pattern DocumentThumbnailType_SMALL :: DocumentThumbnailType
pattern $bDocumentThumbnailType_SMALL :: DocumentThumbnailType
$mDocumentThumbnailType_SMALL :: forall r.
DocumentThumbnailType -> (Void# -> r) -> (Void# -> r) -> r
DocumentThumbnailType_SMALL = DocumentThumbnailType' "SMALL"

pattern DocumentThumbnailType_SMALL_HQ :: DocumentThumbnailType
pattern $bDocumentThumbnailType_SMALL_HQ :: DocumentThumbnailType
$mDocumentThumbnailType_SMALL_HQ :: forall r.
DocumentThumbnailType -> (Void# -> r) -> (Void# -> r) -> r
DocumentThumbnailType_SMALL_HQ = DocumentThumbnailType' "SMALL_HQ"

{-# COMPLETE
  DocumentThumbnailType_LARGE,
  DocumentThumbnailType_SMALL,
  DocumentThumbnailType_SMALL_HQ,
  DocumentThumbnailType'
  #-}