{-# 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.Kinesis.Types.ConsumerStatus
-- 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.Kinesis.Types.ConsumerStatus
  ( ConsumerStatus
      ( ..,
        ConsumerStatus_ACTIVE,
        ConsumerStatus_CREATING,
        ConsumerStatus_DELETING
      ),
  )
where

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

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

pattern ConsumerStatus_ACTIVE :: ConsumerStatus
pattern $bConsumerStatus_ACTIVE :: ConsumerStatus
$mConsumerStatus_ACTIVE :: forall r. ConsumerStatus -> (Void# -> r) -> (Void# -> r) -> r
ConsumerStatus_ACTIVE = ConsumerStatus' "ACTIVE"

pattern ConsumerStatus_CREATING :: ConsumerStatus
pattern $bConsumerStatus_CREATING :: ConsumerStatus
$mConsumerStatus_CREATING :: forall r. ConsumerStatus -> (Void# -> r) -> (Void# -> r) -> r
ConsumerStatus_CREATING = ConsumerStatus' "CREATING"

pattern ConsumerStatus_DELETING :: ConsumerStatus
pattern $bConsumerStatus_DELETING :: ConsumerStatus
$mConsumerStatus_DELETING :: forall r. ConsumerStatus -> (Void# -> r) -> (Void# -> r) -> r
ConsumerStatus_DELETING = ConsumerStatus' "DELETING"

{-# COMPLETE
  ConsumerStatus_ACTIVE,
  ConsumerStatus_CREATING,
  ConsumerStatus_DELETING,
  ConsumerStatus'
  #-}