{-# 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_UP_TO_DATE
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype DeviceUpdateStatus = DeviceUpdateStatus'
{ DeviceUpdateStatus -> Text
fromDeviceUpdateStatus ::
Core.Text
}
deriving stock
( Int -> DeviceUpdateStatus -> ShowS
[DeviceUpdateStatus] -> ShowS
DeviceUpdateStatus -> String
(Int -> DeviceUpdateStatus -> ShowS)
-> (DeviceUpdateStatus -> String)
-> ([DeviceUpdateStatus] -> ShowS)
-> Show DeviceUpdateStatus
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]
(Int -> ReadS DeviceUpdateStatus)
-> ReadS [DeviceUpdateStatus]
-> ReadPrec DeviceUpdateStatus
-> ReadPrec [DeviceUpdateStatus]
-> Read 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
(DeviceUpdateStatus -> DeviceUpdateStatus -> Bool)
-> (DeviceUpdateStatus -> DeviceUpdateStatus -> Bool)
-> Eq DeviceUpdateStatus
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
Eq DeviceUpdateStatus
-> (DeviceUpdateStatus -> DeviceUpdateStatus -> Ordering)
-> (DeviceUpdateStatus -> DeviceUpdateStatus -> Bool)
-> (DeviceUpdateStatus -> DeviceUpdateStatus -> Bool)
-> (DeviceUpdateStatus -> DeviceUpdateStatus -> Bool)
-> (DeviceUpdateStatus -> DeviceUpdateStatus -> Bool)
-> (DeviceUpdateStatus -> DeviceUpdateStatus -> DeviceUpdateStatus)
-> (DeviceUpdateStatus -> DeviceUpdateStatus -> DeviceUpdateStatus)
-> Ord 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
$cp1Ord :: Eq DeviceUpdateStatus
Prelude.Ord,
(forall x. DeviceUpdateStatus -> Rep DeviceUpdateStatus x)
-> (forall x. Rep DeviceUpdateStatus x -> DeviceUpdateStatus)
-> Generic DeviceUpdateStatus
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
( Int -> DeviceUpdateStatus -> Int
DeviceUpdateStatus -> Int
(Int -> DeviceUpdateStatus -> Int)
-> (DeviceUpdateStatus -> Int) -> Hashable DeviceUpdateStatus
forall 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 -> ()
(DeviceUpdateStatus -> ()) -> NFData DeviceUpdateStatus
forall a. (a -> ()) -> NFData a
rnf :: DeviceUpdateStatus -> ()
$crnf :: DeviceUpdateStatus -> ()
Prelude.NFData,
Text -> Either String DeviceUpdateStatus
(Text -> Either String DeviceUpdateStatus)
-> FromText DeviceUpdateStatus
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeviceUpdateStatus
$cfromText :: Text -> Either String DeviceUpdateStatus
Core.FromText,
DeviceUpdateStatus -> Text
(DeviceUpdateStatus -> Text) -> ToText DeviceUpdateStatus
forall a. (a -> Text) -> ToText a
toText :: DeviceUpdateStatus -> Text
$ctoText :: DeviceUpdateStatus -> Text
Core.ToText,
DeviceUpdateStatus -> ByteString
(DeviceUpdateStatus -> ByteString)
-> ToByteString DeviceUpdateStatus
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeviceUpdateStatus -> ByteString
$ctoBS :: DeviceUpdateStatus -> ByteString
Core.ToByteString,
DeviceUpdateStatus -> ByteStringBuilder
(DeviceUpdateStatus -> ByteStringBuilder)
-> ToLog DeviceUpdateStatus
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeviceUpdateStatus -> ByteStringBuilder
$cbuild :: DeviceUpdateStatus -> ByteStringBuilder
Core.ToLog,
HeaderName -> DeviceUpdateStatus -> [Header]
(HeaderName -> DeviceUpdateStatus -> [Header])
-> ToHeader DeviceUpdateStatus
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeviceUpdateStatus -> [Header]
$ctoHeader :: HeaderName -> DeviceUpdateStatus -> [Header]
Core.ToHeader,
DeviceUpdateStatus -> QueryString
(DeviceUpdateStatus -> QueryString) -> ToQuery DeviceUpdateStatus
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeviceUpdateStatus -> QueryString
$ctoQuery :: DeviceUpdateStatus -> QueryString
Core.ToQuery,
Value -> Parser [DeviceUpdateStatus]
Value -> Parser DeviceUpdateStatus
(Value -> Parser DeviceUpdateStatus)
-> (Value -> Parser [DeviceUpdateStatus])
-> FromJSON 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
Core.FromJSON,
FromJSONKeyFunction [DeviceUpdateStatus]
FromJSONKeyFunction DeviceUpdateStatus
FromJSONKeyFunction DeviceUpdateStatus
-> FromJSONKeyFunction [DeviceUpdateStatus]
-> FromJSONKey DeviceUpdateStatus
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeviceUpdateStatus]
$cfromJSONKeyList :: FromJSONKeyFunction [DeviceUpdateStatus]
fromJSONKey :: FromJSONKeyFunction DeviceUpdateStatus
$cfromJSONKey :: FromJSONKeyFunction DeviceUpdateStatus
Core.FromJSONKey,
[DeviceUpdateStatus] -> Encoding
[DeviceUpdateStatus] -> Value
DeviceUpdateStatus -> Encoding
DeviceUpdateStatus -> Value
(DeviceUpdateStatus -> Value)
-> (DeviceUpdateStatus -> Encoding)
-> ([DeviceUpdateStatus] -> Value)
-> ([DeviceUpdateStatus] -> Encoding)
-> ToJSON DeviceUpdateStatus
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
Core.ToJSON,
ToJSONKeyFunction [DeviceUpdateStatus]
ToJSONKeyFunction DeviceUpdateStatus
ToJSONKeyFunction DeviceUpdateStatus
-> ToJSONKeyFunction [DeviceUpdateStatus]
-> ToJSONKey DeviceUpdateStatus
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeviceUpdateStatus]
$ctoJSONKeyList :: ToJSONKeyFunction [DeviceUpdateStatus]
toJSONKey :: ToJSONKeyFunction DeviceUpdateStatus
$ctoJSONKey :: ToJSONKeyFunction DeviceUpdateStatus
Core.ToJSONKey,
[Node] -> Either String DeviceUpdateStatus
([Node] -> Either String DeviceUpdateStatus)
-> FromXML DeviceUpdateStatus
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeviceUpdateStatus
$cparseXML :: [Node] -> Either String DeviceUpdateStatus
Core.FromXML,
DeviceUpdateStatus -> XML
(DeviceUpdateStatus -> XML) -> ToXML DeviceUpdateStatus
forall a. (a -> XML) -> ToXML a
toXML :: DeviceUpdateStatus -> XML
$ctoXML :: DeviceUpdateStatus -> XML
Core.ToXML
)
pattern DeviceUpdateStatus_NOT_UP_TO_DATE :: DeviceUpdateStatus
pattern $bDeviceUpdateStatus_NOT_UP_TO_DATE :: DeviceUpdateStatus
$mDeviceUpdateStatus_NOT_UP_TO_DATE :: forall r. DeviceUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
DeviceUpdateStatus_NOT_UP_TO_DATE = DeviceUpdateStatus' "NOT_UP_TO_DATE"
pattern DeviceUpdateStatus_UP_TO_DATE :: DeviceUpdateStatus
pattern $bDeviceUpdateStatus_UP_TO_DATE :: DeviceUpdateStatus
$mDeviceUpdateStatus_UP_TO_DATE :: forall r. DeviceUpdateStatus -> (Void# -> r) -> (Void# -> r) -> r
DeviceUpdateStatus_UP_TO_DATE = DeviceUpdateStatus' "UP_TO_DATE"
{-# COMPLETE
DeviceUpdateStatus_NOT_UP_TO_DATE,
DeviceUpdateStatus_UP_TO_DATE,
DeviceUpdateStatus'
#-}