{-# 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.IngestionRequestType
-- 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.IngestionRequestType
  ( IngestionRequestType
      ( ..,
        IngestionRequestType_EDIT,
        IngestionRequestType_FULL_REFRESH,
        IngestionRequestType_INCREMENTAL_REFRESH,
        IngestionRequestType_INITIAL_INGESTION
      ),
  )
where

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

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

pattern IngestionRequestType_EDIT :: IngestionRequestType
pattern $bIngestionRequestType_EDIT :: IngestionRequestType
$mIngestionRequestType_EDIT :: forall r. IngestionRequestType -> (Void# -> r) -> (Void# -> r) -> r
IngestionRequestType_EDIT = IngestionRequestType' "EDIT"

pattern IngestionRequestType_FULL_REFRESH :: IngestionRequestType
pattern $bIngestionRequestType_FULL_REFRESH :: IngestionRequestType
$mIngestionRequestType_FULL_REFRESH :: forall r. IngestionRequestType -> (Void# -> r) -> (Void# -> r) -> r
IngestionRequestType_FULL_REFRESH = IngestionRequestType' "FULL_REFRESH"

pattern IngestionRequestType_INCREMENTAL_REFRESH :: IngestionRequestType
pattern $bIngestionRequestType_INCREMENTAL_REFRESH :: IngestionRequestType
$mIngestionRequestType_INCREMENTAL_REFRESH :: forall r. IngestionRequestType -> (Void# -> r) -> (Void# -> r) -> r
IngestionRequestType_INCREMENTAL_REFRESH = IngestionRequestType' "INCREMENTAL_REFRESH"

pattern IngestionRequestType_INITIAL_INGESTION :: IngestionRequestType
pattern $bIngestionRequestType_INITIAL_INGESTION :: IngestionRequestType
$mIngestionRequestType_INITIAL_INGESTION :: forall r. IngestionRequestType -> (Void# -> r) -> (Void# -> r) -> r
IngestionRequestType_INITIAL_INGESTION = IngestionRequestType' "INITIAL_INGESTION"

{-# COMPLETE
  IngestionRequestType_EDIT,
  IngestionRequestType_FULL_REFRESH,
  IngestionRequestType_INCREMENTAL_REFRESH,
  IngestionRequestType_INITIAL_INGESTION,
  IngestionRequestType'
  #-}