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

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

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

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

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

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