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