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

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

newtype ProductType = ProductType'
  { ProductType -> Text
fromProductType ::
      Core.Text
  }
  deriving stock
    ( Int -> ProductType -> ShowS
[ProductType] -> ShowS
ProductType -> String
(Int -> ProductType -> ShowS)
-> (ProductType -> String)
-> ([ProductType] -> ShowS)
-> Show ProductType
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]
(Int -> ReadS ProductType)
-> ReadS [ProductType]
-> ReadPrec ProductType
-> ReadPrec [ProductType]
-> Read 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
(ProductType -> ProductType -> Bool)
-> (ProductType -> ProductType -> Bool) -> Eq ProductType
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
Eq ProductType
-> (ProductType -> ProductType -> Ordering)
-> (ProductType -> ProductType -> Bool)
-> (ProductType -> ProductType -> Bool)
-> (ProductType -> ProductType -> Bool)
-> (ProductType -> ProductType -> Bool)
-> (ProductType -> ProductType -> ProductType)
-> (ProductType -> ProductType -> ProductType)
-> Ord 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
$cp1Ord :: Eq ProductType
Prelude.Ord,
      (forall x. ProductType -> Rep ProductType x)
-> (forall x. Rep ProductType x -> ProductType)
-> Generic ProductType
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
    ( Int -> ProductType -> Int
ProductType -> Int
(Int -> ProductType -> Int)
-> (ProductType -> Int) -> Hashable ProductType
forall 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 -> ()
(ProductType -> ()) -> NFData ProductType
forall a. (a -> ()) -> NFData a
rnf :: ProductType -> ()
$crnf :: ProductType -> ()
Prelude.NFData,
      Text -> Either String ProductType
(Text -> Either String ProductType) -> FromText ProductType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ProductType
$cfromText :: Text -> Either String ProductType
Core.FromText,
      ProductType -> Text
(ProductType -> Text) -> ToText ProductType
forall a. (a -> Text) -> ToText a
toText :: ProductType -> Text
$ctoText :: ProductType -> Text
Core.ToText,
      ProductType -> ByteString
(ProductType -> ByteString) -> ToByteString ProductType
forall a. (a -> ByteString) -> ToByteString a
toBS :: ProductType -> ByteString
$ctoBS :: ProductType -> ByteString
Core.ToByteString,
      ProductType -> ByteStringBuilder
(ProductType -> ByteStringBuilder) -> ToLog ProductType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ProductType -> ByteStringBuilder
$cbuild :: ProductType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> ProductType -> [Header]
(HeaderName -> ProductType -> [Header]) -> ToHeader ProductType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ProductType -> [Header]
$ctoHeader :: HeaderName -> ProductType -> [Header]
Core.ToHeader,
      ProductType -> QueryString
(ProductType -> QueryString) -> ToQuery ProductType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ProductType -> QueryString
$ctoQuery :: ProductType -> QueryString
Core.ToQuery,
      Value -> Parser [ProductType]
Value -> Parser ProductType
(Value -> Parser ProductType)
-> (Value -> Parser [ProductType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [ProductType]
FromJSONKeyFunction ProductType
FromJSONKeyFunction ProductType
-> FromJSONKeyFunction [ProductType] -> FromJSONKey ProductType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ProductType]
$cfromJSONKeyList :: FromJSONKeyFunction [ProductType]
fromJSONKey :: FromJSONKeyFunction ProductType
$cfromJSONKey :: FromJSONKeyFunction ProductType
Core.FromJSONKey,
      [ProductType] -> Encoding
[ProductType] -> Value
ProductType -> Encoding
ProductType -> Value
(ProductType -> Value)
-> (ProductType -> Encoding)
-> ([ProductType] -> Value)
-> ([ProductType] -> Encoding)
-> ToJSON ProductType
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
Core.ToJSON,
      ToJSONKeyFunction [ProductType]
ToJSONKeyFunction ProductType
ToJSONKeyFunction ProductType
-> ToJSONKeyFunction [ProductType] -> ToJSONKey ProductType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ProductType]
$ctoJSONKeyList :: ToJSONKeyFunction [ProductType]
toJSONKey :: ToJSONKeyFunction ProductType
$ctoJSONKey :: ToJSONKeyFunction ProductType
Core.ToJSONKey,
      [Node] -> Either String ProductType
([Node] -> Either String ProductType) -> FromXML ProductType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ProductType
$cparseXML :: [Node] -> Either String ProductType
Core.FromXML,
      ProductType -> XML
(ProductType -> XML) -> ToXML ProductType
forall a. (a -> XML) -> ToXML a
toXML :: ProductType -> XML
$ctoXML :: ProductType -> XML
Core.ToXML
    )

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

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

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