{-# 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.CodeDeploy.Types.StopStatus
-- 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.CodeDeploy.Types.StopStatus
  ( StopStatus
      ( ..,
        StopStatus_Pending,
        StopStatus_Succeeded
      ),
  )
where

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

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

pattern StopStatus_Pending :: StopStatus
pattern $bStopStatus_Pending :: StopStatus
$mStopStatus_Pending :: forall r. StopStatus -> (Void# -> r) -> (Void# -> r) -> r
StopStatus_Pending = StopStatus' "Pending"

pattern StopStatus_Succeeded :: StopStatus
pattern $bStopStatus_Succeeded :: StopStatus
$mStopStatus_Succeeded :: forall r. StopStatus -> (Void# -> r) -> (Void# -> r) -> r
StopStatus_Succeeded = StopStatus' "Succeeded"

{-# COMPLETE
  StopStatus_Pending,
  StopStatus_Succeeded,
  StopStatus'
  #-}