{-# 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.Rekognition.Types.StreamProcessorStatus
-- 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.Rekognition.Types.StreamProcessorStatus
  ( StreamProcessorStatus
      ( ..,
        StreamProcessorStatus_FAILED,
        StreamProcessorStatus_RUNNING,
        StreamProcessorStatus_STARTING,
        StreamProcessorStatus_STOPPED,
        StreamProcessorStatus_STOPPING
      ),
  )
where

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

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

pattern StreamProcessorStatus_FAILED :: StreamProcessorStatus
pattern $bStreamProcessorStatus_FAILED :: StreamProcessorStatus
$mStreamProcessorStatus_FAILED :: forall r.
StreamProcessorStatus -> (Void# -> r) -> (Void# -> r) -> r
StreamProcessorStatus_FAILED = StreamProcessorStatus' "FAILED"

pattern StreamProcessorStatus_RUNNING :: StreamProcessorStatus
pattern $bStreamProcessorStatus_RUNNING :: StreamProcessorStatus
$mStreamProcessorStatus_RUNNING :: forall r.
StreamProcessorStatus -> (Void# -> r) -> (Void# -> r) -> r
StreamProcessorStatus_RUNNING = StreamProcessorStatus' "RUNNING"

pattern StreamProcessorStatus_STARTING :: StreamProcessorStatus
pattern $bStreamProcessorStatus_STARTING :: StreamProcessorStatus
$mStreamProcessorStatus_STARTING :: forall r.
StreamProcessorStatus -> (Void# -> r) -> (Void# -> r) -> r
StreamProcessorStatus_STARTING = StreamProcessorStatus' "STARTING"

pattern StreamProcessorStatus_STOPPED :: StreamProcessorStatus
pattern $bStreamProcessorStatus_STOPPED :: StreamProcessorStatus
$mStreamProcessorStatus_STOPPED :: forall r.
StreamProcessorStatus -> (Void# -> r) -> (Void# -> r) -> r
StreamProcessorStatus_STOPPED = StreamProcessorStatus' "STOPPED"

pattern StreamProcessorStatus_STOPPING :: StreamProcessorStatus
pattern $bStreamProcessorStatus_STOPPING :: StreamProcessorStatus
$mStreamProcessorStatus_STOPPING :: forall r.
StreamProcessorStatus -> (Void# -> r) -> (Void# -> r) -> r
StreamProcessorStatus_STOPPING = StreamProcessorStatus' "STOPPING"

{-# COMPLETE
  StreamProcessorStatus_FAILED,
  StreamProcessorStatus_RUNNING,
  StreamProcessorStatus_STARTING,
  StreamProcessorStatus_STOPPED,
  StreamProcessorStatus_STOPPING,
  StreamProcessorStatus'
  #-}