{-# 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.UploadCategory
-- 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.DeviceFarm.Types.UploadCategory
  ( UploadCategory
      ( ..,
        UploadCategory_CURATED,
        UploadCategory_PRIVATE
      ),
  )
where

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

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

pattern UploadCategory_CURATED :: UploadCategory
pattern $bUploadCategory_CURATED :: UploadCategory
$mUploadCategory_CURATED :: forall r. UploadCategory -> (Void# -> r) -> (Void# -> r) -> r
UploadCategory_CURATED = UploadCategory' "CURATED"

pattern UploadCategory_PRIVATE :: UploadCategory
pattern $bUploadCategory_PRIVATE :: UploadCategory
$mUploadCategory_PRIVATE :: forall r. UploadCategory -> (Void# -> r) -> (Void# -> r) -> r
UploadCategory_PRIVATE = UploadCategory' "PRIVATE"

{-# COMPLETE
  UploadCategory_CURATED,
  UploadCategory_PRIVATE,
  UploadCategory'
  #-}