{-# 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.Evidently.Types.LaunchStopDesiredState
-- 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.Evidently.Types.LaunchStopDesiredState
  ( LaunchStopDesiredState
      ( ..,
        LaunchStopDesiredState_CANCELLED,
        LaunchStopDesiredState_COMPLETED
      ),
  )
where

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

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

pattern LaunchStopDesiredState_CANCELLED :: LaunchStopDesiredState
pattern $bLaunchStopDesiredState_CANCELLED :: LaunchStopDesiredState
$mLaunchStopDesiredState_CANCELLED :: forall {r}.
LaunchStopDesiredState -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchStopDesiredState_CANCELLED = LaunchStopDesiredState' "CANCELLED"

pattern LaunchStopDesiredState_COMPLETED :: LaunchStopDesiredState
pattern $bLaunchStopDesiredState_COMPLETED :: LaunchStopDesiredState
$mLaunchStopDesiredState_COMPLETED :: forall {r}.
LaunchStopDesiredState -> ((# #) -> r) -> ((# #) -> r) -> r
LaunchStopDesiredState_COMPLETED = LaunchStopDesiredState' "COMPLETED"

{-# COMPLETE
  LaunchStopDesiredState_CANCELLED,
  LaunchStopDesiredState_COMPLETED,
  LaunchStopDesiredState'
  #-}