{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.IoTAnalytics.Types.ChannelStatus
( ChannelStatus
( ..,
ChannelStatus_ACTIVE,
ChannelStatus_CREATING,
ChannelStatus_DELETING
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ChannelStatus = ChannelStatus'
{ ChannelStatus -> Text
fromChannelStatus ::
Core.Text
}
deriving stock
( Int -> ChannelStatus -> ShowS
[ChannelStatus] -> ShowS
ChannelStatus -> String
(Int -> ChannelStatus -> ShowS)
-> (ChannelStatus -> String)
-> ([ChannelStatus] -> ShowS)
-> Show ChannelStatus
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ChannelStatus] -> ShowS
$cshowList :: [ChannelStatus] -> ShowS
show :: ChannelStatus -> String
$cshow :: ChannelStatus -> String
showsPrec :: Int -> ChannelStatus -> ShowS
$cshowsPrec :: Int -> ChannelStatus -> ShowS
Prelude.Show,
ReadPrec [ChannelStatus]
ReadPrec ChannelStatus
Int -> ReadS ChannelStatus
ReadS [ChannelStatus]
(Int -> ReadS ChannelStatus)
-> ReadS [ChannelStatus]
-> ReadPrec ChannelStatus
-> ReadPrec [ChannelStatus]
-> Read ChannelStatus
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ChannelStatus]
$creadListPrec :: ReadPrec [ChannelStatus]
readPrec :: ReadPrec ChannelStatus
$creadPrec :: ReadPrec ChannelStatus
readList :: ReadS [ChannelStatus]
$creadList :: ReadS [ChannelStatus]
readsPrec :: Int -> ReadS ChannelStatus
$creadsPrec :: Int -> ReadS ChannelStatus
Prelude.Read,
ChannelStatus -> ChannelStatus -> Bool
(ChannelStatus -> ChannelStatus -> Bool)
-> (ChannelStatus -> ChannelStatus -> Bool) -> Eq ChannelStatus
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ChannelStatus -> ChannelStatus -> Bool
$c/= :: ChannelStatus -> ChannelStatus -> Bool
== :: ChannelStatus -> ChannelStatus -> Bool
$c== :: ChannelStatus -> ChannelStatus -> Bool
Prelude.Eq,
Eq ChannelStatus
Eq ChannelStatus
-> (ChannelStatus -> ChannelStatus -> Ordering)
-> (ChannelStatus -> ChannelStatus -> Bool)
-> (ChannelStatus -> ChannelStatus -> Bool)
-> (ChannelStatus -> ChannelStatus -> Bool)
-> (ChannelStatus -> ChannelStatus -> Bool)
-> (ChannelStatus -> ChannelStatus -> ChannelStatus)
-> (ChannelStatus -> ChannelStatus -> ChannelStatus)
-> Ord ChannelStatus
ChannelStatus -> ChannelStatus -> Bool
ChannelStatus -> ChannelStatus -> Ordering
ChannelStatus -> ChannelStatus -> ChannelStatus
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 :: ChannelStatus -> ChannelStatus -> ChannelStatus
$cmin :: ChannelStatus -> ChannelStatus -> ChannelStatus
max :: ChannelStatus -> ChannelStatus -> ChannelStatus
$cmax :: ChannelStatus -> ChannelStatus -> ChannelStatus
>= :: ChannelStatus -> ChannelStatus -> Bool
$c>= :: ChannelStatus -> ChannelStatus -> Bool
> :: ChannelStatus -> ChannelStatus -> Bool
$c> :: ChannelStatus -> ChannelStatus -> Bool
<= :: ChannelStatus -> ChannelStatus -> Bool
$c<= :: ChannelStatus -> ChannelStatus -> Bool
< :: ChannelStatus -> ChannelStatus -> Bool
$c< :: ChannelStatus -> ChannelStatus -> Bool
compare :: ChannelStatus -> ChannelStatus -> Ordering
$ccompare :: ChannelStatus -> ChannelStatus -> Ordering
$cp1Ord :: Eq ChannelStatus
Prelude.Ord,
(forall x. ChannelStatus -> Rep ChannelStatus x)
-> (forall x. Rep ChannelStatus x -> ChannelStatus)
-> Generic ChannelStatus
forall x. Rep ChannelStatus x -> ChannelStatus
forall x. ChannelStatus -> Rep ChannelStatus x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ChannelStatus x -> ChannelStatus
$cfrom :: forall x. ChannelStatus -> Rep ChannelStatus x
Prelude.Generic
)
deriving newtype
( Int -> ChannelStatus -> Int
ChannelStatus -> Int
(Int -> ChannelStatus -> Int)
-> (ChannelStatus -> Int) -> Hashable ChannelStatus
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ChannelStatus -> Int
$chash :: ChannelStatus -> Int
hashWithSalt :: Int -> ChannelStatus -> Int
$chashWithSalt :: Int -> ChannelStatus -> Int
Prelude.Hashable,
ChannelStatus -> ()
(ChannelStatus -> ()) -> NFData ChannelStatus
forall a. (a -> ()) -> NFData a
rnf :: ChannelStatus -> ()
$crnf :: ChannelStatus -> ()
Prelude.NFData,
Text -> Either String ChannelStatus
(Text -> Either String ChannelStatus) -> FromText ChannelStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ChannelStatus
$cfromText :: Text -> Either String ChannelStatus
Core.FromText,
ChannelStatus -> Text
(ChannelStatus -> Text) -> ToText ChannelStatus
forall a. (a -> Text) -> ToText a
toText :: ChannelStatus -> Text
$ctoText :: ChannelStatus -> Text
Core.ToText,
ChannelStatus -> ByteString
(ChannelStatus -> ByteString) -> ToByteString ChannelStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: ChannelStatus -> ByteString
$ctoBS :: ChannelStatus -> ByteString
Core.ToByteString,
ChannelStatus -> ByteStringBuilder
(ChannelStatus -> ByteStringBuilder) -> ToLog ChannelStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ChannelStatus -> ByteStringBuilder
$cbuild :: ChannelStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> ChannelStatus -> [Header]
(HeaderName -> ChannelStatus -> [Header]) -> ToHeader ChannelStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ChannelStatus -> [Header]
$ctoHeader :: HeaderName -> ChannelStatus -> [Header]
Core.ToHeader,
ChannelStatus -> QueryString
(ChannelStatus -> QueryString) -> ToQuery ChannelStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ChannelStatus -> QueryString
$ctoQuery :: ChannelStatus -> QueryString
Core.ToQuery,
Value -> Parser [ChannelStatus]
Value -> Parser ChannelStatus
(Value -> Parser ChannelStatus)
-> (Value -> Parser [ChannelStatus]) -> FromJSON ChannelStatus
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ChannelStatus]
$cparseJSONList :: Value -> Parser [ChannelStatus]
parseJSON :: Value -> Parser ChannelStatus
$cparseJSON :: Value -> Parser ChannelStatus
Core.FromJSON,
FromJSONKeyFunction [ChannelStatus]
FromJSONKeyFunction ChannelStatus
FromJSONKeyFunction ChannelStatus
-> FromJSONKeyFunction [ChannelStatus] -> FromJSONKey ChannelStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ChannelStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [ChannelStatus]
fromJSONKey :: FromJSONKeyFunction ChannelStatus
$cfromJSONKey :: FromJSONKeyFunction ChannelStatus
Core.FromJSONKey,
[ChannelStatus] -> Encoding
[ChannelStatus] -> Value
ChannelStatus -> Encoding
ChannelStatus -> Value
(ChannelStatus -> Value)
-> (ChannelStatus -> Encoding)
-> ([ChannelStatus] -> Value)
-> ([ChannelStatus] -> Encoding)
-> ToJSON ChannelStatus
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ChannelStatus] -> Encoding
$ctoEncodingList :: [ChannelStatus] -> Encoding
toJSONList :: [ChannelStatus] -> Value
$ctoJSONList :: [ChannelStatus] -> Value
toEncoding :: ChannelStatus -> Encoding
$ctoEncoding :: ChannelStatus -> Encoding
toJSON :: ChannelStatus -> Value
$ctoJSON :: ChannelStatus -> Value
Core.ToJSON,
ToJSONKeyFunction [ChannelStatus]
ToJSONKeyFunction ChannelStatus
ToJSONKeyFunction ChannelStatus
-> ToJSONKeyFunction [ChannelStatus] -> ToJSONKey ChannelStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ChannelStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [ChannelStatus]
toJSONKey :: ToJSONKeyFunction ChannelStatus
$ctoJSONKey :: ToJSONKeyFunction ChannelStatus
Core.ToJSONKey,
[Node] -> Either String ChannelStatus
([Node] -> Either String ChannelStatus) -> FromXML ChannelStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ChannelStatus
$cparseXML :: [Node] -> Either String ChannelStatus
Core.FromXML,
ChannelStatus -> XML
(ChannelStatus -> XML) -> ToXML ChannelStatus
forall a. (a -> XML) -> ToXML a
toXML :: ChannelStatus -> XML
$ctoXML :: ChannelStatus -> XML
Core.ToXML
)
pattern ChannelStatus_ACTIVE :: ChannelStatus
pattern $bChannelStatus_ACTIVE :: ChannelStatus
$mChannelStatus_ACTIVE :: forall r. ChannelStatus -> (Void# -> r) -> (Void# -> r) -> r
ChannelStatus_ACTIVE = ChannelStatus' "ACTIVE"
pattern ChannelStatus_CREATING :: ChannelStatus
pattern $bChannelStatus_CREATING :: ChannelStatus
$mChannelStatus_CREATING :: forall r. ChannelStatus -> (Void# -> r) -> (Void# -> r) -> r
ChannelStatus_CREATING = ChannelStatus' "CREATING"
pattern ChannelStatus_DELETING :: ChannelStatus
pattern $bChannelStatus_DELETING :: ChannelStatus
$mChannelStatus_DELETING :: forall r. ChannelStatus -> (Void# -> r) -> (Void# -> r) -> r
ChannelStatus_DELETING = ChannelStatus' "DELETING"
{-# COMPLETE
ChannelStatus_ACTIVE,
ChannelStatus_CREATING,
ChannelStatus_DELETING,
ChannelStatus'
#-}