{-# 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.StackSetOperationType
-- 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.StackSetOperationType
  ( StackSetOperationType
      ( ..,
        StackSetOperationType_CREATE,
        StackSetOperationType_DELETE,
        StackSetOperationType_UPDATE
      ),
  )
where

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

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

pattern StackSetOperationType_CREATE :: StackSetOperationType
pattern $bStackSetOperationType_CREATE :: StackSetOperationType
$mStackSetOperationType_CREATE :: forall {r}.
StackSetOperationType -> ((# #) -> r) -> ((# #) -> r) -> r
StackSetOperationType_CREATE = StackSetOperationType' "CREATE"

pattern StackSetOperationType_DELETE :: StackSetOperationType
pattern $bStackSetOperationType_DELETE :: StackSetOperationType
$mStackSetOperationType_DELETE :: forall {r}.
StackSetOperationType -> ((# #) -> r) -> ((# #) -> r) -> r
StackSetOperationType_DELETE = StackSetOperationType' "DELETE"

pattern StackSetOperationType_UPDATE :: StackSetOperationType
pattern $bStackSetOperationType_UPDATE :: StackSetOperationType
$mStackSetOperationType_UPDATE :: forall {r}.
StackSetOperationType -> ((# #) -> r) -> ((# #) -> r) -> r
StackSetOperationType_UPDATE = StackSetOperationType' "UPDATE"

{-# COMPLETE
  StackSetOperationType_CREATE,
  StackSetOperationType_DELETE,
  StackSetOperationType_UPDATE,
  StackSetOperationType'
  #-}