{-# 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.ProvisionedProductPlanType
-- 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.ProvisionedProductPlanType
  ( ProvisionedProductPlanType
      ( ..,
        ProvisionedProductPlanType_CLOUDFORMATION
      ),
  )
where

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

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

pattern ProvisionedProductPlanType_CLOUDFORMATION :: ProvisionedProductPlanType
pattern $bProvisionedProductPlanType_CLOUDFORMATION :: ProvisionedProductPlanType
$mProvisionedProductPlanType_CLOUDFORMATION :: forall r.
ProvisionedProductPlanType -> (Void# -> r) -> (Void# -> r) -> r
ProvisionedProductPlanType_CLOUDFORMATION = ProvisionedProductPlanType' "CLOUDFORMATION"

{-# COMPLETE
  ProvisionedProductPlanType_CLOUDFORMATION,
  ProvisionedProductPlanType'
  #-}