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