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

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

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

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

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

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

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