{-# 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.MigrationHubOrchestrator.Types.TemplateStatus
-- 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.MigrationHubOrchestrator.Types.TemplateStatus
  ( TemplateStatus
      ( ..,
        TemplateStatus_CREATED
      ),
  )
where

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

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

pattern TemplateStatus_CREATED :: TemplateStatus
pattern $bTemplateStatus_CREATED :: TemplateStatus
$mTemplateStatus_CREATED :: forall {r}. TemplateStatus -> ((# #) -> r) -> ((# #) -> r) -> r
TemplateStatus_CREATED = TemplateStatus' "CREATED"

{-# COMPLETE
  TemplateStatus_CREATED,
  TemplateStatus'
  #-}