{-# 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.IotTwinMaker.Types.SyncResourceState
-- 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.IotTwinMaker.Types.SyncResourceState
  ( SyncResourceState
      ( ..,
        SyncResourceState_DELETED,
        SyncResourceState_ERROR,
        SyncResourceState_INITIALIZING,
        SyncResourceState_IN_SYNC,
        SyncResourceState_PROCESSING
      ),
  )
where

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

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

pattern SyncResourceState_DELETED :: SyncResourceState
pattern $bSyncResourceState_DELETED :: SyncResourceState
$mSyncResourceState_DELETED :: forall {r}. SyncResourceState -> ((# #) -> r) -> ((# #) -> r) -> r
SyncResourceState_DELETED = SyncResourceState' "DELETED"

pattern SyncResourceState_ERROR :: SyncResourceState
pattern $bSyncResourceState_ERROR :: SyncResourceState
$mSyncResourceState_ERROR :: forall {r}. SyncResourceState -> ((# #) -> r) -> ((# #) -> r) -> r
SyncResourceState_ERROR = SyncResourceState' "ERROR"

pattern SyncResourceState_INITIALIZING :: SyncResourceState
pattern $bSyncResourceState_INITIALIZING :: SyncResourceState
$mSyncResourceState_INITIALIZING :: forall {r}. SyncResourceState -> ((# #) -> r) -> ((# #) -> r) -> r
SyncResourceState_INITIALIZING = SyncResourceState' "INITIALIZING"

pattern SyncResourceState_IN_SYNC :: SyncResourceState
pattern $bSyncResourceState_IN_SYNC :: SyncResourceState
$mSyncResourceState_IN_SYNC :: forall {r}. SyncResourceState -> ((# #) -> r) -> ((# #) -> r) -> r
SyncResourceState_IN_SYNC = SyncResourceState' "IN_SYNC"

pattern SyncResourceState_PROCESSING :: SyncResourceState
pattern $bSyncResourceState_PROCESSING :: SyncResourceState
$mSyncResourceState_PROCESSING :: forall {r}. SyncResourceState -> ((# #) -> r) -> ((# #) -> r) -> r
SyncResourceState_PROCESSING = SyncResourceState' "PROCESSING"

{-# COMPLETE
  SyncResourceState_DELETED,
  SyncResourceState_ERROR,
  SyncResourceState_INITIALIZING,
  SyncResourceState_IN_SYNC,
  SyncResourceState_PROCESSING,
  SyncResourceState'
  #-}