{-# 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.CodeDeploy.Types.BundleType
-- 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.CodeDeploy.Types.BundleType
  ( BundleType
      ( ..,
        BundleType_JSON,
        BundleType_Tar,
        BundleType_Tgz,
        BundleType_YAML,
        BundleType_Zip
      ),
  )
where

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

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

pattern BundleType_JSON :: BundleType
pattern $bBundleType_JSON :: BundleType
$mBundleType_JSON :: forall r. BundleType -> (Void# -> r) -> (Void# -> r) -> r
BundleType_JSON = BundleType' "JSON"

pattern BundleType_Tar :: BundleType
pattern $bBundleType_Tar :: BundleType
$mBundleType_Tar :: forall r. BundleType -> (Void# -> r) -> (Void# -> r) -> r
BundleType_Tar = BundleType' "tar"

pattern BundleType_Tgz :: BundleType
pattern $bBundleType_Tgz :: BundleType
$mBundleType_Tgz :: forall r. BundleType -> (Void# -> r) -> (Void# -> r) -> r
BundleType_Tgz = BundleType' "tgz"

pattern BundleType_YAML :: BundleType
pattern $bBundleType_YAML :: BundleType
$mBundleType_YAML :: forall r. BundleType -> (Void# -> r) -> (Void# -> r) -> r
BundleType_YAML = BundleType' "YAML"

pattern BundleType_Zip :: BundleType
pattern $bBundleType_Zip :: BundleType
$mBundleType_Zip :: forall r. BundleType -> (Void# -> r) -> (Void# -> r) -> r
BundleType_Zip = BundleType' "zip"

{-# COMPLETE
  BundleType_JSON,
  BundleType_Tar,
  BundleType_Tgz,
  BundleType_YAML,
  BundleType_Zip,
  BundleType'
  #-}