{-# 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-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- 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.Data as Data
import qualified Amazonka.Prelude as Prelude

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

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

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

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

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