{-# 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.Lambda.Types.PackageType
-- 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.Lambda.Types.PackageType
  ( PackageType
      ( ..,
        PackageType_Image,
        PackageType_Zip
      ),
  )
where

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

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

pattern PackageType_Image :: PackageType
pattern $bPackageType_Image :: PackageType
$mPackageType_Image :: forall r. PackageType -> (Void# -> r) -> (Void# -> r) -> r
PackageType_Image = PackageType' "Image"

pattern PackageType_Zip :: PackageType
pattern $bPackageType_Zip :: PackageType
$mPackageType_Zip :: forall r. PackageType -> (Void# -> r) -> (Void# -> r) -> r
PackageType_Zip = PackageType' "Zip"

{-# COMPLETE
  PackageType_Image,
  PackageType_Zip,
  PackageType'
  #-}