{-# 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.ServiceCatalog.Types.LastSyncStatus
-- 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.ServiceCatalog.Types.LastSyncStatus
  ( LastSyncStatus
      ( ..,
        LastSyncStatus_FAILED,
        LastSyncStatus_SUCCEEDED
      ),
  )
where

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

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

pattern LastSyncStatus_FAILED :: LastSyncStatus
pattern $bLastSyncStatus_FAILED :: LastSyncStatus
$mLastSyncStatus_FAILED :: forall {r}. LastSyncStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LastSyncStatus_FAILED = LastSyncStatus' "FAILED"

pattern LastSyncStatus_SUCCEEDED :: LastSyncStatus
pattern $bLastSyncStatus_SUCCEEDED :: LastSyncStatus
$mLastSyncStatus_SUCCEEDED :: forall {r}. LastSyncStatus -> ((# #) -> r) -> ((# #) -> r) -> r
LastSyncStatus_SUCCEEDED = LastSyncStatus' "SUCCEEDED"

{-# COMPLETE
  LastSyncStatus_FAILED,
  LastSyncStatus_SUCCEEDED,
  LastSyncStatus'
  #-}