{-# 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.QuickSight.Types.IngestionType
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.QuickSight.Types.IngestionType
  ( IngestionType
      ( ..,
        IngestionType_FULL_REFRESH,
        IngestionType_INCREMENTAL_REFRESH
      ),
  )
where

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

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

pattern IngestionType_FULL_REFRESH :: IngestionType
pattern $bIngestionType_FULL_REFRESH :: IngestionType
$mIngestionType_FULL_REFRESH :: forall r. IngestionType -> (Void# -> r) -> (Void# -> r) -> r
IngestionType_FULL_REFRESH = IngestionType' "FULL_REFRESH"

pattern IngestionType_INCREMENTAL_REFRESH :: IngestionType
pattern $bIngestionType_INCREMENTAL_REFRESH :: IngestionType
$mIngestionType_INCREMENTAL_REFRESH :: forall r. IngestionType -> (Void# -> r) -> (Void# -> r) -> r
IngestionType_INCREMENTAL_REFRESH = IngestionType' "INCREMENTAL_REFRESH"

{-# COMPLETE
  IngestionType_FULL_REFRESH,
  IngestionType_INCREMENTAL_REFRESH,
  IngestionType'
  #-}