{-# 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.Proton.Types.SyncType
-- 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.Proton.Types.SyncType
  ( SyncType
      ( ..,
        SyncType_TEMPLATE_SYNC
      ),
  )
where

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

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

pattern SyncType_TEMPLATE_SYNC :: SyncType
pattern $bSyncType_TEMPLATE_SYNC :: SyncType
$mSyncType_TEMPLATE_SYNC :: forall {r}. SyncType -> ((# #) -> r) -> ((# #) -> r) -> r
SyncType_TEMPLATE_SYNC = SyncType' "TEMPLATE_SYNC"

{-# COMPLETE
  SyncType_TEMPLATE_SYNC,
  SyncType'
  #-}