{-# 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.MediaLive.Types.DeviceSettingsSyncState
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.MediaLive.Types.DeviceSettingsSyncState
  ( DeviceSettingsSyncState
      ( ..,
        DeviceSettingsSyncState_SYNCED,
        DeviceSettingsSyncState_SYNCING
      ),
  )
where

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

-- | The status of the action to synchronize the device configuration. If you
-- change the configuration of the input device (for example, the maximum
-- bitrate), MediaLive sends the new data to the device. The device might
-- not update itself immediately. SYNCED means the device has updated its
-- configuration. SYNCING means that it has not updated its configuration.
newtype DeviceSettingsSyncState = DeviceSettingsSyncState'
  { DeviceSettingsSyncState -> Text
fromDeviceSettingsSyncState ::
      Data.Text
  }
  deriving stock
    ( Int -> DeviceSettingsSyncState -> ShowS
[DeviceSettingsSyncState] -> ShowS
DeviceSettingsSyncState -> String
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]
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
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
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
Prelude.Ord,
      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
    ( Eq DeviceSettingsSyncState
Int -> DeviceSettingsSyncState -> Int
DeviceSettingsSyncState -> Int
forall a. Eq 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 -> ()
forall a. (a -> ()) -> NFData a
rnf :: DeviceSettingsSyncState -> ()
$crnf :: DeviceSettingsSyncState -> ()
Prelude.NFData,
      Text -> Either String DeviceSettingsSyncState
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String DeviceSettingsSyncState
$cfromText :: Text -> Either String DeviceSettingsSyncState
Data.FromText,
      DeviceSettingsSyncState -> Text
forall a. (a -> Text) -> ToText a
toText :: DeviceSettingsSyncState -> Text
$ctoText :: DeviceSettingsSyncState -> Text
Data.ToText,
      DeviceSettingsSyncState -> ByteString
forall a. (a -> ByteString) -> ToByteString a
toBS :: DeviceSettingsSyncState -> ByteString
$ctoBS :: DeviceSettingsSyncState -> ByteString
Data.ToByteString,
      DeviceSettingsSyncState -> ByteStringBuilder
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: DeviceSettingsSyncState -> ByteStringBuilder
$cbuild :: DeviceSettingsSyncState -> ByteStringBuilder
Data.ToLog,
      HeaderName -> DeviceSettingsSyncState -> [Header]
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> DeviceSettingsSyncState -> [Header]
$ctoHeader :: HeaderName -> DeviceSettingsSyncState -> [Header]
Data.ToHeader,
      DeviceSettingsSyncState -> QueryString
forall a. (a -> QueryString) -> ToQuery a
toQuery :: DeviceSettingsSyncState -> QueryString
$ctoQuery :: DeviceSettingsSyncState -> QueryString
Data.ToQuery,
      Value -> Parser [DeviceSettingsSyncState]
Value -> Parser 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
Data.FromJSON,
      FromJSONKeyFunction [DeviceSettingsSyncState]
FromJSONKeyFunction DeviceSettingsSyncState
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [DeviceSettingsSyncState]
$cfromJSONKeyList :: FromJSONKeyFunction [DeviceSettingsSyncState]
fromJSONKey :: FromJSONKeyFunction DeviceSettingsSyncState
$cfromJSONKey :: FromJSONKeyFunction DeviceSettingsSyncState
Data.FromJSONKey,
      [DeviceSettingsSyncState] -> Encoding
[DeviceSettingsSyncState] -> Value
DeviceSettingsSyncState -> Encoding
DeviceSettingsSyncState -> Value
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
Data.ToJSON,
      ToJSONKeyFunction [DeviceSettingsSyncState]
ToJSONKeyFunction DeviceSettingsSyncState
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [DeviceSettingsSyncState]
$ctoJSONKeyList :: ToJSONKeyFunction [DeviceSettingsSyncState]
toJSONKey :: ToJSONKeyFunction DeviceSettingsSyncState
$ctoJSONKey :: ToJSONKeyFunction DeviceSettingsSyncState
Data.ToJSONKey,
      [Node] -> Either String DeviceSettingsSyncState
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String DeviceSettingsSyncState
$cparseXML :: [Node] -> Either String DeviceSettingsSyncState
Data.FromXML,
      DeviceSettingsSyncState -> XML
forall a. (a -> XML) -> ToXML a
toXML :: DeviceSettingsSyncState -> XML
$ctoXML :: DeviceSettingsSyncState -> XML
Data.ToXML
    )

pattern DeviceSettingsSyncState_SYNCED :: DeviceSettingsSyncState
pattern $bDeviceSettingsSyncState_SYNCED :: DeviceSettingsSyncState
$mDeviceSettingsSyncState_SYNCED :: forall {r}.
DeviceSettingsSyncState -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceSettingsSyncState_SYNCED = DeviceSettingsSyncState' "SYNCED"

pattern DeviceSettingsSyncState_SYNCING :: DeviceSettingsSyncState
pattern $bDeviceSettingsSyncState_SYNCING :: DeviceSettingsSyncState
$mDeviceSettingsSyncState_SYNCING :: forall {r}.
DeviceSettingsSyncState -> ((# #) -> r) -> ((# #) -> r) -> r
DeviceSettingsSyncState_SYNCING = DeviceSettingsSyncState' "SYNCING"

{-# COMPLETE
  DeviceSettingsSyncState_SYNCED,
  DeviceSettingsSyncState_SYNCING,
  DeviceSettingsSyncState'
  #-}