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

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

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

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

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