{-# 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.GreengrassV2.Types.LambdaInputPayloadEncodingType
-- 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.GreengrassV2.Types.LambdaInputPayloadEncodingType
  ( LambdaInputPayloadEncodingType
      ( ..,
        LambdaInputPayloadEncodingType_Binary,
        LambdaInputPayloadEncodingType_Json
      ),
  )
where

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

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

pattern LambdaInputPayloadEncodingType_Binary :: LambdaInputPayloadEncodingType
pattern $bLambdaInputPayloadEncodingType_Binary :: LambdaInputPayloadEncodingType
$mLambdaInputPayloadEncodingType_Binary :: forall r.
LambdaInputPayloadEncodingType -> (Void# -> r) -> (Void# -> r) -> r
LambdaInputPayloadEncodingType_Binary = LambdaInputPayloadEncodingType' "binary"

pattern LambdaInputPayloadEncodingType_Json :: LambdaInputPayloadEncodingType
pattern $bLambdaInputPayloadEncodingType_Json :: LambdaInputPayloadEncodingType
$mLambdaInputPayloadEncodingType_Json :: forall r.
LambdaInputPayloadEncodingType -> (Void# -> r) -> (Void# -> r) -> r
LambdaInputPayloadEncodingType_Json = LambdaInputPayloadEncodingType' "json"

{-# COMPLETE
  LambdaInputPayloadEncodingType_Binary,
  LambdaInputPayloadEncodingType_Json,
  LambdaInputPayloadEncodingType'
  #-}