{-# 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.SageMakerGeoSpatial.Types.OutputType
-- 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.SageMakerGeoSpatial.Types.OutputType
  ( OutputType
      ( ..,
        OutputType_FLOAT32,
        OutputType_FLOAT64,
        OutputType_INT16,
        OutputType_INT32,
        OutputType_UINT16
      ),
  )
where

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

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

pattern OutputType_FLOAT32 :: OutputType
pattern $bOutputType_FLOAT32 :: OutputType
$mOutputType_FLOAT32 :: forall {r}. OutputType -> ((# #) -> r) -> ((# #) -> r) -> r
OutputType_FLOAT32 = OutputType' "FLOAT32"

pattern OutputType_FLOAT64 :: OutputType
pattern $bOutputType_FLOAT64 :: OutputType
$mOutputType_FLOAT64 :: forall {r}. OutputType -> ((# #) -> r) -> ((# #) -> r) -> r
OutputType_FLOAT64 = OutputType' "FLOAT64"

pattern OutputType_INT16 :: OutputType
pattern $bOutputType_INT16 :: OutputType
$mOutputType_INT16 :: forall {r}. OutputType -> ((# #) -> r) -> ((# #) -> r) -> r
OutputType_INT16 = OutputType' "INT16"

pattern OutputType_INT32 :: OutputType
pattern $bOutputType_INT32 :: OutputType
$mOutputType_INT32 :: forall {r}. OutputType -> ((# #) -> r) -> ((# #) -> r) -> r
OutputType_INT32 = OutputType' "INT32"

pattern OutputType_UINT16 :: OutputType
pattern $bOutputType_UINT16 :: OutputType
$mOutputType_UINT16 :: forall {r}. OutputType -> ((# #) -> r) -> ((# #) -> r) -> r
OutputType_UINT16 = OutputType' "UINT16"

{-# COMPLETE
  OutputType_FLOAT32,
  OutputType_FLOAT64,
  OutputType_INT16,
  OutputType_INT32,
  OutputType_UINT16,
  OutputType'
  #-}