{-# 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.SageMaker.Types.ParameterType
-- 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.SageMaker.Types.ParameterType
  ( ParameterType
      ( ..,
        ParameterType_Categorical,
        ParameterType_Continuous,
        ParameterType_FreeText,
        ParameterType_Integer
      ),
  )
where

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

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

pattern ParameterType_Categorical :: ParameterType
pattern $bParameterType_Categorical :: ParameterType
$mParameterType_Categorical :: forall r. ParameterType -> (Void# -> r) -> (Void# -> r) -> r
ParameterType_Categorical = ParameterType' "Categorical"

pattern ParameterType_Continuous :: ParameterType
pattern $bParameterType_Continuous :: ParameterType
$mParameterType_Continuous :: forall r. ParameterType -> (Void# -> r) -> (Void# -> r) -> r
ParameterType_Continuous = ParameterType' "Continuous"

pattern ParameterType_FreeText :: ParameterType
pattern $bParameterType_FreeText :: ParameterType
$mParameterType_FreeText :: forall r. ParameterType -> (Void# -> r) -> (Void# -> r) -> r
ParameterType_FreeText = ParameterType' "FreeText"

pattern ParameterType_Integer :: ParameterType
pattern $bParameterType_Integer :: ParameterType
$mParameterType_Integer :: forall r. ParameterType -> (Void# -> r) -> (Void# -> r) -> r
ParameterType_Integer = ParameterType' "Integer"

{-# COMPLETE
  ParameterType_Categorical,
  ParameterType_Continuous,
  ParameterType_FreeText,
  ParameterType_Integer,
  ParameterType'
  #-}