{-# 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.CustomerProfiles.Types.DataPullMode
-- 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.CustomerProfiles.Types.DataPullMode
  ( DataPullMode
      ( ..,
        DataPullMode_Complete,
        DataPullMode_Incremental
      ),
  )
where

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

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

pattern DataPullMode_Complete :: DataPullMode
pattern $bDataPullMode_Complete :: DataPullMode
$mDataPullMode_Complete :: forall {r}. DataPullMode -> ((# #) -> r) -> ((# #) -> r) -> r
DataPullMode_Complete = DataPullMode' "Complete"

pattern DataPullMode_Incremental :: DataPullMode
pattern $bDataPullMode_Incremental :: DataPullMode
$mDataPullMode_Incremental :: forall {r}. DataPullMode -> ((# #) -> r) -> ((# #) -> r) -> r
DataPullMode_Incremental = DataPullMode' "Incremental"

{-# COMPLETE
  DataPullMode_Complete,
  DataPullMode_Incremental,
  DataPullMode'
  #-}