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