{-# 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.IoTSiteWise.Types.ImageFileType
-- 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.IoTSiteWise.Types.ImageFileType
  ( ImageFileType
      ( ..,
        ImageFileType_PNG
      ),
  )
where

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

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

pattern ImageFileType_PNG :: ImageFileType
pattern $bImageFileType_PNG :: ImageFileType
$mImageFileType_PNG :: forall r. ImageFileType -> (Void# -> r) -> (Void# -> r) -> r
ImageFileType_PNG = ImageFileType' "PNG"

{-# COMPLETE
  ImageFileType_PNG,
  ImageFileType'
  #-}