{-# 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.DataBrew.Types.SampleType
-- 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.DataBrew.Types.SampleType
  ( SampleType
      ( ..,
        SampleType_FIRST_N,
        SampleType_LAST_N,
        SampleType_RANDOM
      ),
  )
where

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

newtype SampleType = SampleType'
  { SampleType -> Text
fromSampleType ::
      Core.Text
  }
  deriving stock
    ( Int -> SampleType -> ShowS
[SampleType] -> ShowS
SampleType -> String
(Int -> SampleType -> ShowS)
-> (SampleType -> String)
-> ([SampleType] -> ShowS)
-> Show SampleType
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]
(Int -> ReadS SampleType)
-> ReadS [SampleType]
-> ReadPrec SampleType
-> ReadPrec [SampleType]
-> Read 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
(SampleType -> SampleType -> Bool)
-> (SampleType -> SampleType -> Bool) -> Eq SampleType
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
Eq SampleType
-> (SampleType -> SampleType -> Ordering)
-> (SampleType -> SampleType -> Bool)
-> (SampleType -> SampleType -> Bool)
-> (SampleType -> SampleType -> Bool)
-> (SampleType -> SampleType -> Bool)
-> (SampleType -> SampleType -> SampleType)
-> (SampleType -> SampleType -> SampleType)
-> Ord 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
$cp1Ord :: Eq SampleType
Prelude.Ord,
      (forall x. SampleType -> Rep SampleType x)
-> (forall x. Rep SampleType x -> SampleType) -> Generic SampleType
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
    ( Int -> SampleType -> Int
SampleType -> Int
(Int -> SampleType -> Int)
-> (SampleType -> Int) -> Hashable SampleType
forall 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 -> ()
(SampleType -> ()) -> NFData SampleType
forall a. (a -> ()) -> NFData a
rnf :: SampleType -> ()
$crnf :: SampleType -> ()
Prelude.NFData,
      Text -> Either String SampleType
(Text -> Either String SampleType) -> FromText SampleType
forall a. (Text -> Either String a) -> FromText a
fromText :: Text -> Either String SampleType
$cfromText :: Text -> Either String SampleType
Core.FromText,
      SampleType -> Text
(SampleType -> Text) -> ToText SampleType
forall a. (a -> Text) -> ToText a
toText :: SampleType -> Text
$ctoText :: SampleType -> Text
Core.ToText,
      SampleType -> ByteString
(SampleType -> ByteString) -> ToByteString SampleType
forall a. (a -> ByteString) -> ToByteString a
toBS :: SampleType -> ByteString
$ctoBS :: SampleType -> ByteString
Core.ToByteString,
      SampleType -> ByteStringBuilder
(SampleType -> ByteStringBuilder) -> ToLog SampleType
forall a. (a -> ByteStringBuilder) -> ToLog a
build :: SampleType -> ByteStringBuilder
$cbuild :: SampleType -> ByteStringBuilder
Core.ToLog,
      HeaderName -> SampleType -> [Header]
(HeaderName -> SampleType -> [Header]) -> ToHeader SampleType
forall a. (HeaderName -> a -> [Header]) -> ToHeader a
toHeader :: HeaderName -> SampleType -> [Header]
$ctoHeader :: HeaderName -> SampleType -> [Header]
Core.ToHeader,
      SampleType -> QueryString
(SampleType -> QueryString) -> ToQuery SampleType
forall a. (a -> QueryString) -> ToQuery a
toQuery :: SampleType -> QueryString
$ctoQuery :: SampleType -> QueryString
Core.ToQuery,
      Value -> Parser [SampleType]
Value -> Parser SampleType
(Value -> Parser SampleType)
-> (Value -> Parser [SampleType]) -> FromJSON 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
Core.FromJSON,
      FromJSONKeyFunction [SampleType]
FromJSONKeyFunction SampleType
FromJSONKeyFunction SampleType
-> FromJSONKeyFunction [SampleType] -> FromJSONKey SampleType
forall a.
FromJSONKeyFunction a -> FromJSONKeyFunction [a] -> FromJSONKey a
fromJSONKeyList :: FromJSONKeyFunction [SampleType]
$cfromJSONKeyList :: FromJSONKeyFunction [SampleType]
fromJSONKey :: FromJSONKeyFunction SampleType
$cfromJSONKey :: FromJSONKeyFunction SampleType
Core.FromJSONKey,
      [SampleType] -> Encoding
[SampleType] -> Value
SampleType -> Encoding
SampleType -> Value
(SampleType -> Value)
-> (SampleType -> Encoding)
-> ([SampleType] -> Value)
-> ([SampleType] -> Encoding)
-> ToJSON SampleType
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
Core.ToJSON,
      ToJSONKeyFunction [SampleType]
ToJSONKeyFunction SampleType
ToJSONKeyFunction SampleType
-> ToJSONKeyFunction [SampleType] -> ToJSONKey SampleType
forall a.
ToJSONKeyFunction a -> ToJSONKeyFunction [a] -> ToJSONKey a
toJSONKeyList :: ToJSONKeyFunction [SampleType]
$ctoJSONKeyList :: ToJSONKeyFunction [SampleType]
toJSONKey :: ToJSONKeyFunction SampleType
$ctoJSONKey :: ToJSONKeyFunction SampleType
Core.ToJSONKey,
      [Node] -> Either String SampleType
([Node] -> Either String SampleType) -> FromXML SampleType
forall a. ([Node] -> Either String a) -> FromXML a
parseXML :: [Node] -> Either String SampleType
$cparseXML :: [Node] -> Either String SampleType
Core.FromXML,
      SampleType -> XML
(SampleType -> XML) -> ToXML SampleType
forall a. (a -> XML) -> ToXML a
toXML :: SampleType -> XML
$ctoXML :: SampleType -> XML
Core.ToXML
    )

pattern SampleType_FIRST_N :: SampleType
pattern $bSampleType_FIRST_N :: SampleType
$mSampleType_FIRST_N :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_FIRST_N = SampleType' "FIRST_N"

pattern SampleType_LAST_N :: SampleType
pattern $bSampleType_LAST_N :: SampleType
$mSampleType_LAST_N :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_LAST_N = SampleType' "LAST_N"

pattern SampleType_RANDOM :: SampleType
pattern $bSampleType_RANDOM :: SampleType
$mSampleType_RANDOM :: forall r. SampleType -> (Void# -> r) -> (Void# -> r) -> r
SampleType_RANDOM = SampleType' "RANDOM"

{-# COMPLETE
  SampleType_FIRST_N,
  SampleType_LAST_N,
  SampleType_RANDOM,
  SampleType'
  #-}