{-# 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.IngestionStatus
-- 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.IngestionStatus
  ( IngestionStatus
      ( ..,
        IngestionStatus_CANCELLED,
        IngestionStatus_COMPLETED,
        IngestionStatus_FAILED,
        IngestionStatus_INITIALIZED,
        IngestionStatus_QUEUED,
        IngestionStatus_RUNNING
      ),
  )
where

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

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

pattern IngestionStatus_CANCELLED :: IngestionStatus
pattern $bIngestionStatus_CANCELLED :: IngestionStatus
$mIngestionStatus_CANCELLED :: forall r. IngestionStatus -> (Void# -> r) -> (Void# -> r) -> r
IngestionStatus_CANCELLED = IngestionStatus' "CANCELLED"

pattern IngestionStatus_COMPLETED :: IngestionStatus
pattern $bIngestionStatus_COMPLETED :: IngestionStatus
$mIngestionStatus_COMPLETED :: forall r. IngestionStatus -> (Void# -> r) -> (Void# -> r) -> r
IngestionStatus_COMPLETED = IngestionStatus' "COMPLETED"

pattern IngestionStatus_FAILED :: IngestionStatus
pattern $bIngestionStatus_FAILED :: IngestionStatus
$mIngestionStatus_FAILED :: forall r. IngestionStatus -> (Void# -> r) -> (Void# -> r) -> r
IngestionStatus_FAILED = IngestionStatus' "FAILED"

pattern IngestionStatus_INITIALIZED :: IngestionStatus
pattern $bIngestionStatus_INITIALIZED :: IngestionStatus
$mIngestionStatus_INITIALIZED :: forall r. IngestionStatus -> (Void# -> r) -> (Void# -> r) -> r
IngestionStatus_INITIALIZED = IngestionStatus' "INITIALIZED"

pattern IngestionStatus_QUEUED :: IngestionStatus
pattern $bIngestionStatus_QUEUED :: IngestionStatus
$mIngestionStatus_QUEUED :: forall r. IngestionStatus -> (Void# -> r) -> (Void# -> r) -> r
IngestionStatus_QUEUED = IngestionStatus' "QUEUED"

pattern IngestionStatus_RUNNING :: IngestionStatus
pattern $bIngestionStatus_RUNNING :: IngestionStatus
$mIngestionStatus_RUNNING :: forall r. IngestionStatus -> (Void# -> r) -> (Void# -> r) -> r
IngestionStatus_RUNNING = IngestionStatus' "RUNNING"

{-# COMPLETE
  IngestionStatus_CANCELLED,
  IngestionStatus_COMPLETED,
  IngestionStatus_FAILED,
  IngestionStatus_INITIALIZED,
  IngestionStatus_QUEUED,
  IngestionStatus_RUNNING,
  IngestionStatus'
  #-}