{-# 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.SSM.Types.StopType
-- 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.SSM.Types.StopType
  ( StopType
      ( ..,
        StopType_Cancel,
        StopType_Complete
      ),
  )
where

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

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

pattern StopType_Cancel :: StopType
pattern $bStopType_Cancel :: StopType
$mStopType_Cancel :: forall {r}. StopType -> ((# #) -> r) -> ((# #) -> r) -> r
StopType_Cancel = StopType' "Cancel"

pattern StopType_Complete :: StopType
pattern $bStopType_Complete :: StopType
$mStopType_Complete :: forall {r}. StopType -> ((# #) -> r) -> ((# #) -> r) -> r
StopType_Complete = StopType' "Complete"

{-# COMPLETE
  StopType_Cancel,
  StopType_Complete,
  StopType'
  #-}