{-# 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.ServiceCatalog.Types.ProductType
-- 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.ServiceCatalog.Types.ProductType
  ( ProductType
      ( ..,
        ProductType_CLOUD_FORMATION_TEMPLATE,
        ProductType_MARKETPLACE
      ),
  )
where

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

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

pattern ProductType_CLOUD_FORMATION_TEMPLATE :: ProductType
pattern $bProductType_CLOUD_FORMATION_TEMPLATE :: ProductType
$mProductType_CLOUD_FORMATION_TEMPLATE :: forall {r}. ProductType -> ((# #) -> r) -> ((# #) -> r) -> r
ProductType_CLOUD_FORMATION_TEMPLATE = ProductType' "CLOUD_FORMATION_TEMPLATE"

pattern ProductType_MARKETPLACE :: ProductType
pattern $bProductType_MARKETPLACE :: ProductType
$mProductType_MARKETPLACE :: forall {r}. ProductType -> ((# #) -> r) -> ((# #) -> r) -> r
ProductType_MARKETPLACE = ProductType' "MARKETPLACE"

{-# COMPLETE
  ProductType_CLOUD_FORMATION_TEMPLATE,
  ProductType_MARKETPLACE,
  ProductType'
  #-}