{-# 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.MachineLearning.Types.DetailsAttributes
-- 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.MachineLearning.Types.DetailsAttributes
  ( DetailsAttributes
      ( ..,
        DetailsAttributes_Algorithm,
        DetailsAttributes_PredictiveModelType
      ),
  )
where

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

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

pattern DetailsAttributes_Algorithm :: DetailsAttributes
pattern $bDetailsAttributes_Algorithm :: DetailsAttributes
$mDetailsAttributes_Algorithm :: forall {r}. DetailsAttributes -> ((# #) -> r) -> ((# #) -> r) -> r
DetailsAttributes_Algorithm = DetailsAttributes' "Algorithm"

pattern DetailsAttributes_PredictiveModelType :: DetailsAttributes
pattern $bDetailsAttributes_PredictiveModelType :: DetailsAttributes
$mDetailsAttributes_PredictiveModelType :: forall {r}. DetailsAttributes -> ((# #) -> r) -> ((# #) -> r) -> r
DetailsAttributes_PredictiveModelType = DetailsAttributes' "PredictiveModelType"

{-# COMPLETE
  DetailsAttributes_Algorithm,
  DetailsAttributes_PredictiveModelType,
  DetailsAttributes'
  #-}