{-# 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.KinesisVideo.Types.SyncStatus
-- 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.KinesisVideo.Types.SyncStatus
  ( SyncStatus
      ( ..,
        SyncStatus_ACKNOWLEDGED,
        SyncStatus_DELETE_FAILED,
        SyncStatus_DELETING,
        SyncStatus_IN_SYNC,
        SyncStatus_SYNCING,
        SyncStatus_SYNC_FAILED
      ),
  )
where

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

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

pattern SyncStatus_ACKNOWLEDGED :: SyncStatus
pattern $bSyncStatus_ACKNOWLEDGED :: SyncStatus
$mSyncStatus_ACKNOWLEDGED :: forall {r}. SyncStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SyncStatus_ACKNOWLEDGED = SyncStatus' "ACKNOWLEDGED"

pattern SyncStatus_DELETE_FAILED :: SyncStatus
pattern $bSyncStatus_DELETE_FAILED :: SyncStatus
$mSyncStatus_DELETE_FAILED :: forall {r}. SyncStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SyncStatus_DELETE_FAILED = SyncStatus' "DELETE_FAILED"

pattern SyncStatus_DELETING :: SyncStatus
pattern $bSyncStatus_DELETING :: SyncStatus
$mSyncStatus_DELETING :: forall {r}. SyncStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SyncStatus_DELETING = SyncStatus' "DELETING"

pattern SyncStatus_IN_SYNC :: SyncStatus
pattern $bSyncStatus_IN_SYNC :: SyncStatus
$mSyncStatus_IN_SYNC :: forall {r}. SyncStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SyncStatus_IN_SYNC = SyncStatus' "IN_SYNC"

pattern SyncStatus_SYNCING :: SyncStatus
pattern $bSyncStatus_SYNCING :: SyncStatus
$mSyncStatus_SYNCING :: forall {r}. SyncStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SyncStatus_SYNCING = SyncStatus' "SYNCING"

pattern SyncStatus_SYNC_FAILED :: SyncStatus
pattern $bSyncStatus_SYNC_FAILED :: SyncStatus
$mSyncStatus_SYNC_FAILED :: forall {r}. SyncStatus -> ((# #) -> r) -> ((# #) -> r) -> r
SyncStatus_SYNC_FAILED = SyncStatus' "SYNC_FAILED"

{-# COMPLETE
  SyncStatus_ACKNOWLEDGED,
  SyncStatus_DELETE_FAILED,
  SyncStatus_DELETING,
  SyncStatus_IN_SYNC,
  SyncStatus_SYNCING,
  SyncStatus_SYNC_FAILED,
  SyncStatus'
  #-}