{-# 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.IngestionRequestSource
-- 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.QuickSight.Types.IngestionRequestSource
  ( IngestionRequestSource
      ( ..,
        IngestionRequestSource_MANUAL,
        IngestionRequestSource_SCHEDULED
      ),
  )
where

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

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

pattern IngestionRequestSource_MANUAL :: IngestionRequestSource
pattern $bIngestionRequestSource_MANUAL :: IngestionRequestSource
$mIngestionRequestSource_MANUAL :: forall {r}.
IngestionRequestSource -> ((# #) -> r) -> ((# #) -> r) -> r
IngestionRequestSource_MANUAL = IngestionRequestSource' "MANUAL"

pattern IngestionRequestSource_SCHEDULED :: IngestionRequestSource
pattern $bIngestionRequestSource_SCHEDULED :: IngestionRequestSource
$mIngestionRequestSource_SCHEDULED :: forall {r}.
IngestionRequestSource -> ((# #) -> r) -> ((# #) -> r) -> r
IngestionRequestSource_SCHEDULED = IngestionRequestSource' "SCHEDULED"

{-# COMPLETE
  IngestionRequestSource_MANUAL,
  IngestionRequestSource_SCHEDULED,
  IngestionRequestSource'
  #-}