{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.MGN.Types.ChangeServerLifeCycleStateSourceServerLifecycleState
( ChangeServerLifeCycleStateSourceServerLifecycleState
( ..,
ChangeServerLifeCycleStateSourceServerLifecycleState_CUTOVER,
ChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_CUTOVER,
ChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_TEST
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ChangeServerLifeCycleStateSourceServerLifecycleState = ChangeServerLifeCycleStateSourceServerLifecycleState'
{ ChangeServerLifeCycleStateSourceServerLifecycleState -> Text
fromChangeServerLifeCycleStateSourceServerLifecycleState ::
Core.Text
}
deriving stock
( Int
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> ShowS
[ChangeServerLifeCycleStateSourceServerLifecycleState] -> ShowS
ChangeServerLifeCycleStateSourceServerLifecycleState -> String
(Int
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> ShowS)
-> (ChangeServerLifeCycleStateSourceServerLifecycleState -> String)
-> ([ChangeServerLifeCycleStateSourceServerLifecycleState]
-> ShowS)
-> Show ChangeServerLifeCycleStateSourceServerLifecycleState
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChangeServerLifeCycleStateSourceServerLifecycleState] -> ShowS
$cshowList :: [ChangeServerLifeCycleStateSourceServerLifecycleState] -> ShowS
show :: ChangeServerLifeCycleStateSourceServerLifecycleState -> String
$cshow :: ChangeServerLifeCycleStateSourceServerLifecycleState -> String
showsPrec :: Int
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> ShowS
$cshowsPrec :: Int
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> ShowS
Prelude.Show,
ReadPrec [ChangeServerLifeCycleStateSourceServerLifecycleState]
ReadPrec ChangeServerLifeCycleStateSourceServerLifecycleState
Int -> ReadS ChangeServerLifeCycleStateSourceServerLifecycleState
ReadS [ChangeServerLifeCycleStateSourceServerLifecycleState]
(Int -> ReadS ChangeServerLifeCycleStateSourceServerLifecycleState)
-> ReadS [ChangeServerLifeCycleStateSourceServerLifecycleState]
-> ReadPrec ChangeServerLifeCycleStateSourceServerLifecycleState
-> ReadPrec [ChangeServerLifeCycleStateSourceServerLifecycleState]
-> Read ChangeServerLifeCycleStateSourceServerLifecycleState
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChangeServerLifeCycleStateSourceServerLifecycleState]
$creadListPrec :: ReadPrec [ChangeServerLifeCycleStateSourceServerLifecycleState]
readPrec :: ReadPrec ChangeServerLifeCycleStateSourceServerLifecycleState
$creadPrec :: ReadPrec ChangeServerLifeCycleStateSourceServerLifecycleState
readList :: ReadS [ChangeServerLifeCycleStateSourceServerLifecycleState]
$creadList :: ReadS [ChangeServerLifeCycleStateSourceServerLifecycleState]
readsPrec :: Int -> ReadS ChangeServerLifeCycleStateSourceServerLifecycleState
$creadsPrec :: Int -> ReadS ChangeServerLifeCycleStateSourceServerLifecycleState
Prelude.Read,
ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
(ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool)
-> (ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool)
-> Eq ChangeServerLifeCycleStateSourceServerLifecycleState
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
$c/= :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
== :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
$c== :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
Prelude.Eq,
Eq ChangeServerLifeCycleStateSourceServerLifecycleState
Eq ChangeServerLifeCycleStateSourceServerLifecycleState
-> (ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
-> Ordering)
-> (ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool)
-> (ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool)
-> (ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool)
-> (ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool)
-> (ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState)
-> (ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState)
-> Ord ChangeServerLifeCycleStateSourceServerLifecycleState
ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Ordering
ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
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 :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
$cmin :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
max :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
$cmax :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState
>= :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
$c>= :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
> :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
$c> :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
<= :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
$c<= :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
< :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
$c< :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Bool
compare :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Ordering
$ccompare :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Ordering
$cp1Ord :: Eq ChangeServerLifeCycleStateSourceServerLifecycleState
Prelude.Ord,
(forall x.
ChangeServerLifeCycleStateSourceServerLifecycleState
-> Rep ChangeServerLifeCycleStateSourceServerLifecycleState x)
-> (forall x.
Rep ChangeServerLifeCycleStateSourceServerLifecycleState x
-> ChangeServerLifeCycleStateSourceServerLifecycleState)
-> Generic ChangeServerLifeCycleStateSourceServerLifecycleState
forall x.
Rep ChangeServerLifeCycleStateSourceServerLifecycleState x
-> ChangeServerLifeCycleStateSourceServerLifecycleState
forall x.
ChangeServerLifeCycleStateSourceServerLifecycleState
-> Rep ChangeServerLifeCycleStateSourceServerLifecycleState x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ChangeServerLifeCycleStateSourceServerLifecycleState x
-> ChangeServerLifeCycleStateSourceServerLifecycleState
$cfrom :: forall x.
ChangeServerLifeCycleStateSourceServerLifecycleState
-> Rep ChangeServerLifeCycleStateSourceServerLifecycleState x
Prelude.Generic
)
deriving newtype
( Int -> ChangeServerLifeCycleStateSourceServerLifecycleState -> Int
ChangeServerLifeCycleStateSourceServerLifecycleState -> Int
(Int
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> Int)
-> (ChangeServerLifeCycleStateSourceServerLifecycleState -> Int)
-> Hashable ChangeServerLifeCycleStateSourceServerLifecycleState
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ChangeServerLifeCycleStateSourceServerLifecycleState -> Int
$chash :: ChangeServerLifeCycleStateSourceServerLifecycleState -> Int
hashWithSalt :: Int -> ChangeServerLifeCycleStateSourceServerLifecycleState -> Int
$chashWithSalt :: Int -> ChangeServerLifeCycleStateSourceServerLifecycleState -> Int
Prelude.Hashable,
ChangeServerLifeCycleStateSourceServerLifecycleState -> ()
(ChangeServerLifeCycleStateSourceServerLifecycleState -> ())
-> NFData ChangeServerLifeCycleStateSourceServerLifecycleState
forall a. (a -> ()) -> NFData a
rnf :: ChangeServerLifeCycleStateSourceServerLifecycleState -> ()
$crnf :: ChangeServerLifeCycleStateSourceServerLifecycleState -> ()
Prelude.NFData,
Text
-> Either
String ChangeServerLifeCycleStateSourceServerLifecycleState
(Text
-> Either
String ChangeServerLifeCycleStateSourceServerLifecycleState)
-> FromText ChangeServerLifeCycleStateSourceServerLifecycleState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text
-> Either
String ChangeServerLifeCycleStateSourceServerLifecycleState
$cfromText :: Text
-> Either
String ChangeServerLifeCycleStateSourceServerLifecycleState
Core.FromText,
ChangeServerLifeCycleStateSourceServerLifecycleState -> Text
(ChangeServerLifeCycleStateSourceServerLifecycleState -> Text)
-> ToText ChangeServerLifeCycleStateSourceServerLifecycleState
forall a. (a -> Text) -> ToText a
toText :: ChangeServerLifeCycleStateSourceServerLifecycleState -> Text
$ctoText :: ChangeServerLifeCycleStateSourceServerLifecycleState -> Text
Core.ToText,
ChangeServerLifeCycleStateSourceServerLifecycleState -> ByteString
(ChangeServerLifeCycleStateSourceServerLifecycleState
-> ByteString)
-> ToByteString
ChangeServerLifeCycleStateSourceServerLifecycleState
forall a. (a -> ByteString) -> ToByteString a
toBS :: ChangeServerLifeCycleStateSourceServerLifecycleState -> ByteString
$ctoBS :: ChangeServerLifeCycleStateSourceServerLifecycleState -> ByteString
Core.ToByteString,
ChangeServerLifeCycleStateSourceServerLifecycleState
-> ByteStringBuilder
(ChangeServerLifeCycleStateSourceServerLifecycleState
-> ByteStringBuilder)
-> ToLog ChangeServerLifeCycleStateSourceServerLifecycleState
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ByteStringBuilder
$cbuild :: ChangeServerLifeCycleStateSourceServerLifecycleState
-> ByteStringBuilder
Core.ToLog,
HeaderName
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> [Header]
(HeaderName
-> ChangeServerLifeCycleStateSourceServerLifecycleState
-> [Header])
-> ToHeader ChangeServerLifeCycleStateSourceServerLifecycleState
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> [Header]
$ctoHeader :: HeaderName
-> ChangeServerLifeCycleStateSourceServerLifecycleState -> [Header]
Core.ToHeader,
ChangeServerLifeCycleStateSourceServerLifecycleState -> QueryString
(ChangeServerLifeCycleStateSourceServerLifecycleState
-> QueryString)
-> ToQuery ChangeServerLifeCycleStateSourceServerLifecycleState
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ChangeServerLifeCycleStateSourceServerLifecycleState -> QueryString
$ctoQuery :: ChangeServerLifeCycleStateSourceServerLifecycleState -> QueryString
Core.ToQuery,
Value
-> Parser [ChangeServerLifeCycleStateSourceServerLifecycleState]
Value
-> Parser ChangeServerLifeCycleStateSourceServerLifecycleState
(Value
-> Parser ChangeServerLifeCycleStateSourceServerLifecycleState)
-> (Value
-> Parser [ChangeServerLifeCycleStateSourceServerLifecycleState])
-> FromJSON ChangeServerLifeCycleStateSourceServerLifecycleState
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value
-> Parser [ChangeServerLifeCycleStateSourceServerLifecycleState]
$cparseJSONList :: Value
-> Parser [ChangeServerLifeCycleStateSourceServerLifecycleState]
parseJSON :: Value
-> Parser ChangeServerLifeCycleStateSourceServerLifecycleState
$cparseJSON :: Value
-> Parser ChangeServerLifeCycleStateSourceServerLifecycleState
Core.FromJSON,
FromJSONKeyFunction
[ChangeServerLifeCycleStateSourceServerLifecycleState]
FromJSONKeyFunction
ChangeServerLifeCycleStateSourceServerLifecycleState
FromJSONKeyFunction
ChangeServerLifeCycleStateSourceServerLifecycleState
-> FromJSONKeyFunction
[ChangeServerLifeCycleStateSourceServerLifecycleState]
-> FromJSONKey ChangeServerLifeCycleStateSourceServerLifecycleState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction
[ChangeServerLifeCycleStateSourceServerLifecycleState]
$cfromJSONKeyList :: FromJSONKeyFunction
[ChangeServerLifeCycleStateSourceServerLifecycleState]
fromJSONKey :: FromJSONKeyFunction
ChangeServerLifeCycleStateSourceServerLifecycleState
$cfromJSONKey :: FromJSONKeyFunction
ChangeServerLifeCycleStateSourceServerLifecycleState
Core.FromJSONKey,
[ChangeServerLifeCycleStateSourceServerLifecycleState] -> Encoding
[ChangeServerLifeCycleStateSourceServerLifecycleState] -> Value
ChangeServerLifeCycleStateSourceServerLifecycleState -> Encoding
ChangeServerLifeCycleStateSourceServerLifecycleState -> Value
(ChangeServerLifeCycleStateSourceServerLifecycleState -> Value)
-> (ChangeServerLifeCycleStateSourceServerLifecycleState
-> Encoding)
-> ([ChangeServerLifeCycleStateSourceServerLifecycleState]
-> Value)
-> ([ChangeServerLifeCycleStateSourceServerLifecycleState]
-> Encoding)
-> ToJSON ChangeServerLifeCycleStateSourceServerLifecycleState
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ChangeServerLifeCycleStateSourceServerLifecycleState] -> Encoding
$ctoEncodingList :: [ChangeServerLifeCycleStateSourceServerLifecycleState] -> Encoding
toJSONList :: [ChangeServerLifeCycleStateSourceServerLifecycleState] -> Value
$ctoJSONList :: [ChangeServerLifeCycleStateSourceServerLifecycleState] -> Value
toEncoding :: ChangeServerLifeCycleStateSourceServerLifecycleState -> Encoding
$ctoEncoding :: ChangeServerLifeCycleStateSourceServerLifecycleState -> Encoding
toJSON :: ChangeServerLifeCycleStateSourceServerLifecycleState -> Value
$ctoJSON :: ChangeServerLifeCycleStateSourceServerLifecycleState -> Value
Core.ToJSON,
ToJSONKeyFunction
[ChangeServerLifeCycleStateSourceServerLifecycleState]
ToJSONKeyFunction
ChangeServerLifeCycleStateSourceServerLifecycleState
ToJSONKeyFunction
ChangeServerLifeCycleStateSourceServerLifecycleState
-> ToJSONKeyFunction
[ChangeServerLifeCycleStateSourceServerLifecycleState]
-> ToJSONKey ChangeServerLifeCycleStateSourceServerLifecycleState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction
[ChangeServerLifeCycleStateSourceServerLifecycleState]
$ctoJSONKeyList :: ToJSONKeyFunction
[ChangeServerLifeCycleStateSourceServerLifecycleState]
toJSONKey :: ToJSONKeyFunction
ChangeServerLifeCycleStateSourceServerLifecycleState
$ctoJSONKey :: ToJSONKeyFunction
ChangeServerLifeCycleStateSourceServerLifecycleState
Core.ToJSONKey,
[Node]
-> Either
String ChangeServerLifeCycleStateSourceServerLifecycleState
([Node]
-> Either
String ChangeServerLifeCycleStateSourceServerLifecycleState)
-> FromXML ChangeServerLifeCycleStateSourceServerLifecycleState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node]
-> Either
String ChangeServerLifeCycleStateSourceServerLifecycleState
$cparseXML :: [Node]
-> Either
String ChangeServerLifeCycleStateSourceServerLifecycleState
Core.FromXML,
ChangeServerLifeCycleStateSourceServerLifecycleState -> XML
(ChangeServerLifeCycleStateSourceServerLifecycleState -> XML)
-> ToXML ChangeServerLifeCycleStateSourceServerLifecycleState
forall a. (a -> XML) -> ToXML a
toXML :: ChangeServerLifeCycleStateSourceServerLifecycleState -> XML
$ctoXML :: ChangeServerLifeCycleStateSourceServerLifecycleState -> XML
Core.ToXML
)
pattern ChangeServerLifeCycleStateSourceServerLifecycleState_CUTOVER :: ChangeServerLifeCycleStateSourceServerLifecycleState
pattern $bChangeServerLifeCycleStateSourceServerLifecycleState_CUTOVER :: ChangeServerLifeCycleStateSourceServerLifecycleState
$mChangeServerLifeCycleStateSourceServerLifecycleState_CUTOVER :: forall r.
ChangeServerLifeCycleStateSourceServerLifecycleState
-> (Void# -> r) -> (Void# -> r) -> r
ChangeServerLifeCycleStateSourceServerLifecycleState_CUTOVER = ChangeServerLifeCycleStateSourceServerLifecycleState' "CUTOVER"
pattern ChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_CUTOVER :: ChangeServerLifeCycleStateSourceServerLifecycleState
pattern $bChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_CUTOVER :: ChangeServerLifeCycleStateSourceServerLifecycleState
$mChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_CUTOVER :: forall r.
ChangeServerLifeCycleStateSourceServerLifecycleState
-> (Void# -> r) -> (Void# -> r) -> r
ChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_CUTOVER = ChangeServerLifeCycleStateSourceServerLifecycleState' "READY_FOR_CUTOVER"
pattern ChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_TEST :: ChangeServerLifeCycleStateSourceServerLifecycleState
pattern $bChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_TEST :: ChangeServerLifeCycleStateSourceServerLifecycleState
$mChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_TEST :: forall r.
ChangeServerLifeCycleStateSourceServerLifecycleState
-> (Void# -> r) -> (Void# -> r) -> r
ChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_TEST = ChangeServerLifeCycleStateSourceServerLifecycleState' "READY_FOR_TEST"
{-# COMPLETE
ChangeServerLifeCycleStateSourceServerLifecycleState_CUTOVER,
ChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_CUTOVER,
ChangeServerLifeCycleStateSourceServerLifecycleState_READY_FOR_TEST,
ChangeServerLifeCycleStateSourceServerLifecycleState'
#-}