{-# 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.Panorama.Types.NodeFromTemplateJobStatus
-- 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.Panorama.Types.NodeFromTemplateJobStatus
  ( NodeFromTemplateJobStatus
      ( ..,
        NodeFromTemplateJobStatus_FAILED,
        NodeFromTemplateJobStatus_PENDING,
        NodeFromTemplateJobStatus_SUCCEEDED
      ),
  )
where

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

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

pattern NodeFromTemplateJobStatus_FAILED :: NodeFromTemplateJobStatus
pattern $bNodeFromTemplateJobStatus_FAILED :: NodeFromTemplateJobStatus
$mNodeFromTemplateJobStatus_FAILED :: forall r.
NodeFromTemplateJobStatus -> (Void# -> r) -> (Void# -> r) -> r
NodeFromTemplateJobStatus_FAILED = NodeFromTemplateJobStatus' "FAILED"

pattern NodeFromTemplateJobStatus_PENDING :: NodeFromTemplateJobStatus
pattern $bNodeFromTemplateJobStatus_PENDING :: NodeFromTemplateJobStatus
$mNodeFromTemplateJobStatus_PENDING :: forall r.
NodeFromTemplateJobStatus -> (Void# -> r) -> (Void# -> r) -> r
NodeFromTemplateJobStatus_PENDING = NodeFromTemplateJobStatus' "PENDING"

pattern NodeFromTemplateJobStatus_SUCCEEDED :: NodeFromTemplateJobStatus
pattern $bNodeFromTemplateJobStatus_SUCCEEDED :: NodeFromTemplateJobStatus
$mNodeFromTemplateJobStatus_SUCCEEDED :: forall r.
NodeFromTemplateJobStatus -> (Void# -> r) -> (Void# -> r) -> r
NodeFromTemplateJobStatus_SUCCEEDED = NodeFromTemplateJobStatus' "SUCCEEDED"

{-# COMPLETE
  NodeFromTemplateJobStatus_FAILED,
  NodeFromTemplateJobStatus_PENDING,
  NodeFromTemplateJobStatus_SUCCEEDED,
  NodeFromTemplateJobStatus'
  #-}