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