{-# 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.Signer.Types.ImageFormat
-- 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.Signer.Types.ImageFormat
  ( ImageFormat
      ( ..,
        ImageFormat_JSON,
        ImageFormat_JSONDetached,
        ImageFormat_JSONEmbedded
      ),
  )
where

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

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

pattern ImageFormat_JSON :: ImageFormat
pattern $bImageFormat_JSON :: ImageFormat
$mImageFormat_JSON :: forall r. ImageFormat -> (Void# -> r) -> (Void# -> r) -> r
ImageFormat_JSON = ImageFormat' "JSON"

pattern ImageFormat_JSONDetached :: ImageFormat
pattern $bImageFormat_JSONDetached :: ImageFormat
$mImageFormat_JSONDetached :: forall r. ImageFormat -> (Void# -> r) -> (Void# -> r) -> r
ImageFormat_JSONDetached = ImageFormat' "JSONDetached"

pattern ImageFormat_JSONEmbedded :: ImageFormat
pattern $bImageFormat_JSONEmbedded :: ImageFormat
$mImageFormat_JSONEmbedded :: forall r. ImageFormat -> (Void# -> r) -> (Void# -> r) -> r
ImageFormat_JSONEmbedded = ImageFormat' "JSONEmbedded"

{-# COMPLETE
  ImageFormat_JSON,
  ImageFormat_JSONDetached,
  ImageFormat_JSONEmbedded,
  ImageFormat'
  #-}