{-# 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.Rekognition.Types.DatasetType
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
module Amazonka.Rekognition.Types.DatasetType
  ( DatasetType
      ( ..,
        DatasetType_TEST,
        DatasetType_TRAIN
      ),
  )
where

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

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

pattern DatasetType_TEST :: DatasetType
pattern $bDatasetType_TEST :: DatasetType
$mDatasetType_TEST :: forall {r}. DatasetType -> ((# #) -> r) -> ((# #) -> r) -> r
DatasetType_TEST = DatasetType' "TEST"

pattern DatasetType_TRAIN :: DatasetType
pattern $bDatasetType_TRAIN :: DatasetType
$mDatasetType_TRAIN :: forall {r}. DatasetType -> ((# #) -> r) -> ((# #) -> r) -> r
DatasetType_TRAIN = DatasetType' "TRAIN"

{-# COMPLETE
  DatasetType_TEST,
  DatasetType_TRAIN,
  DatasetType'
  #-}