{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE PatternSynonyms #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Amazonka.DeviceFarm.Types.ArtifactCategory
( ArtifactCategory
( ..,
ArtifactCategory_FILE,
ArtifactCategory_LOG,
ArtifactCategory_SCREENSHOT
),
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Prelude as Prelude
newtype ArtifactCategory = ArtifactCategory'
{ ArtifactCategory -> Text
fromArtifactCategory ::
Core.Text
}
deriving stock
( Int -> ArtifactCategory -> ShowS
[ArtifactCategory] -> ShowS
ArtifactCategory -> String
(Int -> ArtifactCategory -> ShowS)
-> (ArtifactCategory -> String)
-> ([ArtifactCategory] -> ShowS)
-> Show ArtifactCategory
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ArtifactCategory] -> ShowS
$cshowList :: [ArtifactCategory] -> ShowS
show :: ArtifactCategory -> String
$cshow :: ArtifactCategory -> String
showsPrec :: Int -> ArtifactCategory -> ShowS
$cshowsPrec :: Int -> ArtifactCategory -> ShowS
Prelude.Show,
ReadPrec [ArtifactCategory]
ReadPrec ArtifactCategory
Int -> ReadS ArtifactCategory
ReadS [ArtifactCategory]
(Int -> ReadS ArtifactCategory)
-> ReadS [ArtifactCategory]
-> ReadPrec ArtifactCategory
-> ReadPrec [ArtifactCategory]
-> Read ArtifactCategory
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ArtifactCategory]
$creadListPrec :: ReadPrec [ArtifactCategory]
readPrec :: ReadPrec ArtifactCategory
$creadPrec :: ReadPrec ArtifactCategory
readList :: ReadS [ArtifactCategory]
$creadList :: ReadS [ArtifactCategory]
readsPrec :: Int -> ReadS ArtifactCategory
$creadsPrec :: Int -> ReadS ArtifactCategory
Prelude.Read,
ArtifactCategory -> ArtifactCategory -> Bool
(ArtifactCategory -> ArtifactCategory -> Bool)
-> (ArtifactCategory -> ArtifactCategory -> Bool)
-> Eq ArtifactCategory
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ArtifactCategory -> ArtifactCategory -> Bool
$c/= :: ArtifactCategory -> ArtifactCategory -> Bool
== :: ArtifactCategory -> ArtifactCategory -> Bool
$c== :: ArtifactCategory -> ArtifactCategory -> Bool
Prelude.Eq,
Eq ArtifactCategory
Eq ArtifactCategory
-> (ArtifactCategory -> ArtifactCategory -> Ordering)
-> (ArtifactCategory -> ArtifactCategory -> Bool)
-> (ArtifactCategory -> ArtifactCategory -> Bool)
-> (ArtifactCategory -> ArtifactCategory -> Bool)
-> (ArtifactCategory -> ArtifactCategory -> Bool)
-> (ArtifactCategory -> ArtifactCategory -> ArtifactCategory)
-> (ArtifactCategory -> ArtifactCategory -> ArtifactCategory)
-> Ord ArtifactCategory
ArtifactCategory -> ArtifactCategory -> Bool
ArtifactCategory -> ArtifactCategory -> Ordering
ArtifactCategory -> ArtifactCategory -> ArtifactCategory
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 :: ArtifactCategory -> ArtifactCategory -> ArtifactCategory
$cmin :: ArtifactCategory -> ArtifactCategory -> ArtifactCategory
max :: ArtifactCategory -> ArtifactCategory -> ArtifactCategory
$cmax :: ArtifactCategory -> ArtifactCategory -> ArtifactCategory
>= :: ArtifactCategory -> ArtifactCategory -> Bool
$c>= :: ArtifactCategory -> ArtifactCategory -> Bool
> :: ArtifactCategory -> ArtifactCategory -> Bool
$c> :: ArtifactCategory -> ArtifactCategory -> Bool
<= :: ArtifactCategory -> ArtifactCategory -> Bool
$c<= :: ArtifactCategory -> ArtifactCategory -> Bool
< :: ArtifactCategory -> ArtifactCategory -> Bool
$c< :: ArtifactCategory -> ArtifactCategory -> Bool
compare :: ArtifactCategory -> ArtifactCategory -> Ordering
$ccompare :: ArtifactCategory -> ArtifactCategory -> Ordering
$cp1Ord :: Eq ArtifactCategory
Prelude.Ord,
(forall x. ArtifactCategory -> Rep ArtifactCategory x)
-> (forall x. Rep ArtifactCategory x -> ArtifactCategory)
-> Generic ArtifactCategory
forall x. Rep ArtifactCategory x -> ArtifactCategory
forall x. ArtifactCategory -> Rep ArtifactCategory x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ArtifactCategory x -> ArtifactCategory
$cfrom :: forall x. ArtifactCategory -> Rep ArtifactCategory x
Prelude.Generic
)
deriving newtype
( Int -> ArtifactCategory -> Int
ArtifactCategory -> Int
(Int -> ArtifactCategory -> Int)
-> (ArtifactCategory -> Int) -> Hashable ArtifactCategory
forall a. (Int -> a -> Int) -> (a -> Int) -> Hashable a
hash :: ArtifactCategory -> Int
$chash :: ArtifactCategory -> Int
hashWithSalt :: Int -> ArtifactCategory -> Int
$chashWithSalt :: Int -> ArtifactCategory -> Int
Prelude.Hashable,
ArtifactCategory -> ()
(ArtifactCategory -> ()) -> NFData ArtifactCategory
forall a. (a -> ()) -> NFData a
rnf :: ArtifactCategory -> ()
$crnf :: ArtifactCategory -> ()
Prelude.NFData,
Text -> Either String ArtifactCategory
(Text -> Either String ArtifactCategory)
-> FromText ArtifactCategory
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String ArtifactCategory
$cfromText :: Text -> Either String ArtifactCategory
Core.FromText,
ArtifactCategory -> Text
(ArtifactCategory -> Text) -> ToText ArtifactCategory
forall a. (a -> Text) -> ToText a
toText :: ArtifactCategory -> Text
$ctoText :: ArtifactCategory -> Text
Core.ToText,
ArtifactCategory -> ByteString
(ArtifactCategory -> ByteString) -> ToByteString ArtifactCategory
forall a. (a -> ByteString) -> ToByteString a
toBS :: ArtifactCategory -> ByteString
$ctoBS :: ArtifactCategory -> ByteString
Core.ToByteString,
ArtifactCategory -> ByteStringBuilder
(ArtifactCategory -> ByteStringBuilder) -> ToLog ArtifactCategory
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: ArtifactCategory -> ByteStringBuilder
$cbuild :: ArtifactCategory -> ByteStringBuilder
Core.ToLog,
HeaderName -> ArtifactCategory -> [Header]
(HeaderName -> ArtifactCategory -> [Header])
-> ToHeader ArtifactCategory
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> ArtifactCategory -> [Header]
$ctoHeader :: HeaderName -> ArtifactCategory -> [Header]
Core.ToHeader,
ArtifactCategory -> QueryString
(ArtifactCategory -> QueryString) -> ToQuery ArtifactCategory
forall a. (a -> QueryString) -> ToQuery a
toQuery :: ArtifactCategory -> QueryString
$ctoQuery :: ArtifactCategory -> QueryString
Core.ToQuery,
Value -> Parser [ArtifactCategory]
Value -> Parser ArtifactCategory
(Value -> Parser ArtifactCategory)
-> (Value -> Parser [ArtifactCategory])
-> FromJSON ArtifactCategory
forall a.
(Value -> Parser a) -> (Value -> Parser [a]) -> FromJSON a
parseJSONList :: Value -> Parser [ArtifactCategory]
$cparseJSONList :: Value -> Parser [ArtifactCategory]
parseJSON :: Value -> Parser ArtifactCategory
$cparseJSON :: Value -> Parser ArtifactCategory
Core.FromJSON,
FromJSONKeyFunction [ArtifactCategory]
FromJSONKeyFunction ArtifactCategory
FromJSONKeyFunction ArtifactCategory
-> FromJSONKeyFunction [ArtifactCategory]
-> FromJSONKey ArtifactCategory
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [ArtifactCategory]
$cfromJSONKeyList :: FromJSONKeyFunction [ArtifactCategory]
fromJSONKey :: FromJSONKeyFunction ArtifactCategory
$cfromJSONKey :: FromJSONKeyFunction ArtifactCategory
Core.FromJSONKey,
[ArtifactCategory] -> Encoding
[ArtifactCategory] -> Value
ArtifactCategory -> Encoding
ArtifactCategory -> Value
(ArtifactCategory -> Value)
-> (ArtifactCategory -> Encoding)
-> ([ArtifactCategory] -> Value)
-> ([ArtifactCategory] -> Encoding)
-> ToJSON ArtifactCategory
forall a.
(a -> Value)
-> (a -> Encoding)
-> ([a] -> Value)
-> ([a] -> Encoding)
-> ToJSON a
toEncodingList :: [ArtifactCategory] -> Encoding
$ctoEncodingList :: [ArtifactCategory] -> Encoding
toJSONList :: [ArtifactCategory] -> Value
$ctoJSONList :: [ArtifactCategory] -> Value
toEncoding :: ArtifactCategory -> Encoding
$ctoEncoding :: ArtifactCategory -> Encoding
toJSON :: ArtifactCategory -> Value
$ctoJSON :: ArtifactCategory -> Value
Core.ToJSON,
ToJSONKeyFunction [ArtifactCategory]
ToJSONKeyFunction ArtifactCategory
ToJSONKeyFunction ArtifactCategory
-> ToJSONKeyFunction [ArtifactCategory]
-> ToJSONKey ArtifactCategory
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [ArtifactCategory]
$ctoJSONKeyList :: ToJSONKeyFunction [ArtifactCategory]
toJSONKey :: ToJSONKeyFunction ArtifactCategory
$ctoJSONKey :: ToJSONKeyFunction ArtifactCategory
Core.ToJSONKey,
[Node] -> Either String ArtifactCategory
([Node] -> Either String ArtifactCategory)
-> FromXML ArtifactCategory
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String ArtifactCategory
$cparseXML :: [Node] -> Either String ArtifactCategory
Core.FromXML,
ArtifactCategory -> XML
(ArtifactCategory -> XML) -> ToXML ArtifactCategory
forall a. (a -> XML) -> ToXML a
toXML :: ArtifactCategory -> XML
$ctoXML :: ArtifactCategory -> XML
Core.ToXML
)
pattern ArtifactCategory_FILE :: ArtifactCategory
pattern $bArtifactCategory_FILE :: ArtifactCategory
$mArtifactCategory_FILE :: forall r. ArtifactCategory -> (Void# -> r) -> (Void# -> r) -> r
ArtifactCategory_FILE = ArtifactCategory' "FILE"
pattern ArtifactCategory_LOG :: ArtifactCategory
pattern $bArtifactCategory_LOG :: ArtifactCategory
$mArtifactCategory_LOG :: forall r. ArtifactCategory -> (Void# -> r) -> (Void# -> r) -> r
ArtifactCategory_LOG = ArtifactCategory' "LOG"
pattern ArtifactCategory_SCREENSHOT :: ArtifactCategory
pattern $bArtifactCategory_SCREENSHOT :: ArtifactCategory
$mArtifactCategory_SCREENSHOT :: forall r. ArtifactCategory -> (Void# -> r) -> (Void# -> r) -> r
ArtifactCategory_SCREENSHOT = ArtifactCategory' "SCREENSHOT"
{-# COMPLETE
ArtifactCategory_FILE,
ArtifactCategory_LOG,
ArtifactCategory_SCREENSHOT,
ArtifactCategory'
#-}