{-# 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.Replacement
-- 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.Replacement
  ( Replacement
      ( ..,
        Replacement_CONDITIONAL,
        Replacement_FALSE,
        Replacement_TRUE
      ),
  )
where

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

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

pattern Replacement_CONDITIONAL :: Replacement
pattern $bReplacement_CONDITIONAL :: Replacement
$mReplacement_CONDITIONAL :: forall {r}. Replacement -> ((# #) -> r) -> ((# #) -> r) -> r
Replacement_CONDITIONAL = Replacement' "CONDITIONAL"

pattern Replacement_FALSE :: Replacement
pattern $bReplacement_FALSE :: Replacement
$mReplacement_FALSE :: forall {r}. Replacement -> ((# #) -> r) -> ((# #) -> r) -> r
Replacement_FALSE = Replacement' "FALSE"

pattern Replacement_TRUE :: Replacement
pattern $bReplacement_TRUE :: Replacement
$mReplacement_TRUE :: forall {r}. Replacement -> ((# #) -> r) -> ((# #) -> r) -> r
Replacement_TRUE = Replacement' "TRUE"

{-# COMPLETE
  Replacement_CONDITIONAL,
  Replacement_FALSE,
  Replacement_TRUE,
  Replacement'
  #-}