{-# 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.DeviceFarm.Types.UploadStatus
-- 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.DeviceFarm.Types.UploadStatus
  ( UploadStatus
      ( ..,
        UploadStatus_FAILED,
        UploadStatus_INITIALIZED,
        UploadStatus_PROCESSING,
        UploadStatus_SUCCEEDED
      ),
  )
where

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

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

pattern UploadStatus_FAILED :: UploadStatus
pattern $bUploadStatus_FAILED :: UploadStatus
$mUploadStatus_FAILED :: forall {r}. UploadStatus -> ((# #) -> r) -> ((# #) -> r) -> r
UploadStatus_FAILED = UploadStatus' "FAILED"

pattern UploadStatus_INITIALIZED :: UploadStatus
pattern $bUploadStatus_INITIALIZED :: UploadStatus
$mUploadStatus_INITIALIZED :: forall {r}. UploadStatus -> ((# #) -> r) -> ((# #) -> r) -> r
UploadStatus_INITIALIZED = UploadStatus' "INITIALIZED"

pattern UploadStatus_PROCESSING :: UploadStatus
pattern $bUploadStatus_PROCESSING :: UploadStatus
$mUploadStatus_PROCESSING :: forall {r}. UploadStatus -> ((# #) -> r) -> ((# #) -> r) -> r
UploadStatus_PROCESSING = UploadStatus' "PROCESSING"

pattern UploadStatus_SUCCEEDED :: UploadStatus
pattern $bUploadStatus_SUCCEEDED :: UploadStatus
$mUploadStatus_SUCCEEDED :: forall {r}. UploadStatus -> ((# #) -> r) -> ((# #) -> r) -> r
UploadStatus_SUCCEEDED = UploadStatus' "SUCCEEDED"

{-# COMPLETE
  UploadStatus_FAILED,
  UploadStatus_INITIALIZED,
  UploadStatus_PROCESSING,
  UploadStatus_SUCCEEDED,
  UploadStatus'
  #-}