{-# 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.MGN.Types.LifeCycleState
-- 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.MGN.Types.LifeCycleState
  ( LifeCycleState
      ( ..,
        LifeCycleState_CUTOVER,
        LifeCycleState_CUTTING_OVER,
        LifeCycleState_DISCONNECTED,
        LifeCycleState_NOT_READY,
        LifeCycleState_READY_FOR_CUTOVER,
        LifeCycleState_READY_FOR_TEST,
        LifeCycleState_STOPPED,
        LifeCycleState_TESTING
      ),
  )
where

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

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

pattern LifeCycleState_CUTOVER :: LifeCycleState
pattern $bLifeCycleState_CUTOVER :: LifeCycleState
$mLifeCycleState_CUTOVER :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_CUTOVER = LifeCycleState' "CUTOVER"

pattern LifeCycleState_CUTTING_OVER :: LifeCycleState
pattern $bLifeCycleState_CUTTING_OVER :: LifeCycleState
$mLifeCycleState_CUTTING_OVER :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_CUTTING_OVER = LifeCycleState' "CUTTING_OVER"

pattern LifeCycleState_DISCONNECTED :: LifeCycleState
pattern $bLifeCycleState_DISCONNECTED :: LifeCycleState
$mLifeCycleState_DISCONNECTED :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_DISCONNECTED = LifeCycleState' "DISCONNECTED"

pattern LifeCycleState_NOT_READY :: LifeCycleState
pattern $bLifeCycleState_NOT_READY :: LifeCycleState
$mLifeCycleState_NOT_READY :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_NOT_READY = LifeCycleState' "NOT_READY"

pattern LifeCycleState_READY_FOR_CUTOVER :: LifeCycleState
pattern $bLifeCycleState_READY_FOR_CUTOVER :: LifeCycleState
$mLifeCycleState_READY_FOR_CUTOVER :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_READY_FOR_CUTOVER = LifeCycleState' "READY_FOR_CUTOVER"

pattern LifeCycleState_READY_FOR_TEST :: LifeCycleState
pattern $bLifeCycleState_READY_FOR_TEST :: LifeCycleState
$mLifeCycleState_READY_FOR_TEST :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_READY_FOR_TEST = LifeCycleState' "READY_FOR_TEST"

pattern LifeCycleState_STOPPED :: LifeCycleState
pattern $bLifeCycleState_STOPPED :: LifeCycleState
$mLifeCycleState_STOPPED :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_STOPPED = LifeCycleState' "STOPPED"

pattern LifeCycleState_TESTING :: LifeCycleState
pattern $bLifeCycleState_TESTING :: LifeCycleState
$mLifeCycleState_TESTING :: forall r. LifeCycleState -> (Void# -> r) -> (Void# -> r) -> r
LifeCycleState_TESTING = LifeCycleState' "TESTING"

{-# COMPLETE
  LifeCycleState_CUTOVER,
  LifeCycleState_CUTTING_OVER,
  LifeCycleState_DISCONNECTED,
  LifeCycleState_NOT_READY,
  LifeCycleState_READY_FOR_CUTOVER,
  LifeCycleState_READY_FOR_TEST,
  LifeCycleState_STOPPED,
  LifeCycleState_TESTING,
  LifeCycleState'
  #-}