{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Personalize.Types.Algorithm
-- 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.Personalize.Types.Algorithm where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.Personalize.Types.AlgorithmImage
import Amazonka.Personalize.Types.DefaultHyperParameterRanges
import qualified Amazonka.Prelude as Prelude

-- | Describes a custom algorithm.
--
-- /See:/ 'newAlgorithm' smart constructor.
data Algorithm = Algorithm'
  { -- | The Amazon Resource Name (ARN) of the algorithm.
    Algorithm -> Maybe Text
algorithmArn :: Prelude.Maybe Prelude.Text,
    -- | The URI of the Docker container for the algorithm image.
    Algorithm -> Maybe AlgorithmImage
algorithmImage :: Prelude.Maybe AlgorithmImage,
    -- | The date and time (in Unix time) that the algorithm was created.
    Algorithm -> Maybe POSIX
creationDateTime :: Prelude.Maybe Data.POSIX,
    -- | Specifies the default hyperparameters, their ranges, and whether they
    -- are tunable. A tunable hyperparameter can have its value determined
    -- during hyperparameter optimization (HPO).
    Algorithm -> Maybe DefaultHyperParameterRanges
defaultHyperParameterRanges :: Prelude.Maybe DefaultHyperParameterRanges,
    -- | Specifies the default hyperparameters.
    Algorithm -> Maybe (HashMap Text Text)
defaultHyperParameters :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | Specifies the default maximum number of training jobs and parallel
    -- training jobs.
    Algorithm -> Maybe (HashMap Text Text)
defaultResourceConfig :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text),
    -- | The date and time (in Unix time) that the algorithm was last updated.
    Algorithm -> Maybe POSIX
lastUpdatedDateTime :: Prelude.Maybe Data.POSIX,
    -- | The name of the algorithm.
    Algorithm -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The Amazon Resource Name (ARN) of the role.
    Algorithm -> Maybe Text
roleArn :: Prelude.Maybe Prelude.Text,
    -- | The training input mode.
    Algorithm -> Maybe Text
trainingInputMode :: Prelude.Maybe Prelude.Text
  }
  deriving (Algorithm -> Algorithm -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Algorithm -> Algorithm -> Bool
$c/= :: Algorithm -> Algorithm -> Bool
== :: Algorithm -> Algorithm -> Bool
$c== :: Algorithm -> Algorithm -> Bool
Prelude.Eq, ReadPrec [Algorithm]
ReadPrec Algorithm
Int -> ReadS Algorithm
ReadS [Algorithm]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [Algorithm]
$creadListPrec :: ReadPrec [Algorithm]
readPrec :: ReadPrec Algorithm
$creadPrec :: ReadPrec Algorithm
readList :: ReadS [Algorithm]
$creadList :: ReadS [Algorithm]
readsPrec :: Int -> ReadS Algorithm
$creadsPrec :: Int -> ReadS Algorithm
Prelude.Read, Int -> Algorithm -> ShowS
[Algorithm] -> ShowS
Algorithm -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [Algorithm] -> ShowS
$cshowList :: [Algorithm] -> ShowS
show :: Algorithm -> String
$cshow :: Algorithm -> String
showsPrec :: Int -> Algorithm -> ShowS
$cshowsPrec :: Int -> Algorithm -> ShowS
Prelude.Show, forall x. Rep Algorithm x -> Algorithm
forall x. Algorithm -> Rep Algorithm x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep Algorithm x -> Algorithm
$cfrom :: forall x. Algorithm -> Rep Algorithm x
Prelude.Generic)

-- |
-- Create a value of 'Algorithm' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'algorithmArn', 'algorithm_algorithmArn' - The Amazon Resource Name (ARN) of the algorithm.
--
-- 'algorithmImage', 'algorithm_algorithmImage' - The URI of the Docker container for the algorithm image.
--
-- 'creationDateTime', 'algorithm_creationDateTime' - The date and time (in Unix time) that the algorithm was created.
--
-- 'defaultHyperParameterRanges', 'algorithm_defaultHyperParameterRanges' - Specifies the default hyperparameters, their ranges, and whether they
-- are tunable. A tunable hyperparameter can have its value determined
-- during hyperparameter optimization (HPO).
--
-- 'defaultHyperParameters', 'algorithm_defaultHyperParameters' - Specifies the default hyperparameters.
--
-- 'defaultResourceConfig', 'algorithm_defaultResourceConfig' - Specifies the default maximum number of training jobs and parallel
-- training jobs.
--
-- 'lastUpdatedDateTime', 'algorithm_lastUpdatedDateTime' - The date and time (in Unix time) that the algorithm was last updated.
--
-- 'name', 'algorithm_name' - The name of the algorithm.
--
-- 'roleArn', 'algorithm_roleArn' - The Amazon Resource Name (ARN) of the role.
--
-- 'trainingInputMode', 'algorithm_trainingInputMode' - The training input mode.
newAlgorithm ::
  Algorithm
newAlgorithm :: Algorithm
newAlgorithm =
  Algorithm'
    { $sel:algorithmArn:Algorithm' :: Maybe Text
algorithmArn = forall a. Maybe a
Prelude.Nothing,
      $sel:algorithmImage:Algorithm' :: Maybe AlgorithmImage
algorithmImage = forall a. Maybe a
Prelude.Nothing,
      $sel:creationDateTime:Algorithm' :: Maybe POSIX
creationDateTime = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultHyperParameterRanges:Algorithm' :: Maybe DefaultHyperParameterRanges
defaultHyperParameterRanges = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultHyperParameters:Algorithm' :: Maybe (HashMap Text Text)
defaultHyperParameters = forall a. Maybe a
Prelude.Nothing,
      $sel:defaultResourceConfig:Algorithm' :: Maybe (HashMap Text Text)
defaultResourceConfig = forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedDateTime:Algorithm' :: Maybe POSIX
lastUpdatedDateTime = forall a. Maybe a
Prelude.Nothing,
      $sel:name:Algorithm' :: Maybe Text
name = forall a. Maybe a
Prelude.Nothing,
      $sel:roleArn:Algorithm' :: Maybe Text
roleArn = forall a. Maybe a
Prelude.Nothing,
      $sel:trainingInputMode:Algorithm' :: Maybe Text
trainingInputMode = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the algorithm.
algorithm_algorithmArn :: Lens.Lens' Algorithm (Prelude.Maybe Prelude.Text)
algorithm_algorithmArn :: Lens' Algorithm (Maybe Text)
algorithm_algorithmArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Algorithm' {Maybe Text
algorithmArn :: Maybe Text
$sel:algorithmArn:Algorithm' :: Algorithm -> Maybe Text
algorithmArn} -> Maybe Text
algorithmArn) (\s :: Algorithm
s@Algorithm' {} Maybe Text
a -> Algorithm
s {$sel:algorithmArn:Algorithm' :: Maybe Text
algorithmArn = Maybe Text
a} :: Algorithm)

-- | The URI of the Docker container for the algorithm image.
algorithm_algorithmImage :: Lens.Lens' Algorithm (Prelude.Maybe AlgorithmImage)
algorithm_algorithmImage :: Lens' Algorithm (Maybe AlgorithmImage)
algorithm_algorithmImage = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Algorithm' {Maybe AlgorithmImage
algorithmImage :: Maybe AlgorithmImage
$sel:algorithmImage:Algorithm' :: Algorithm -> Maybe AlgorithmImage
algorithmImage} -> Maybe AlgorithmImage
algorithmImage) (\s :: Algorithm
s@Algorithm' {} Maybe AlgorithmImage
a -> Algorithm
s {$sel:algorithmImage:Algorithm' :: Maybe AlgorithmImage
algorithmImage = Maybe AlgorithmImage
a} :: Algorithm)

-- | The date and time (in Unix time) that the algorithm was created.
algorithm_creationDateTime :: Lens.Lens' Algorithm (Prelude.Maybe Prelude.UTCTime)
algorithm_creationDateTime :: Lens' Algorithm (Maybe UTCTime)
algorithm_creationDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Algorithm' {Maybe POSIX
creationDateTime :: Maybe POSIX
$sel:creationDateTime:Algorithm' :: Algorithm -> Maybe POSIX
creationDateTime} -> Maybe POSIX
creationDateTime) (\s :: Algorithm
s@Algorithm' {} Maybe POSIX
a -> Algorithm
s {$sel:creationDateTime:Algorithm' :: Maybe POSIX
creationDateTime = Maybe POSIX
a} :: Algorithm) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | Specifies the default hyperparameters, their ranges, and whether they
-- are tunable. A tunable hyperparameter can have its value determined
-- during hyperparameter optimization (HPO).
algorithm_defaultHyperParameterRanges :: Lens.Lens' Algorithm (Prelude.Maybe DefaultHyperParameterRanges)
algorithm_defaultHyperParameterRanges :: Lens' Algorithm (Maybe DefaultHyperParameterRanges)
algorithm_defaultHyperParameterRanges = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Algorithm' {Maybe DefaultHyperParameterRanges
defaultHyperParameterRanges :: Maybe DefaultHyperParameterRanges
$sel:defaultHyperParameterRanges:Algorithm' :: Algorithm -> Maybe DefaultHyperParameterRanges
defaultHyperParameterRanges} -> Maybe DefaultHyperParameterRanges
defaultHyperParameterRanges) (\s :: Algorithm
s@Algorithm' {} Maybe DefaultHyperParameterRanges
a -> Algorithm
s {$sel:defaultHyperParameterRanges:Algorithm' :: Maybe DefaultHyperParameterRanges
defaultHyperParameterRanges = Maybe DefaultHyperParameterRanges
a} :: Algorithm)

-- | Specifies the default hyperparameters.
algorithm_defaultHyperParameters :: Lens.Lens' Algorithm (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
algorithm_defaultHyperParameters :: Lens' Algorithm (Maybe (HashMap Text Text))
algorithm_defaultHyperParameters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Algorithm' {Maybe (HashMap Text Text)
defaultHyperParameters :: Maybe (HashMap Text Text)
$sel:defaultHyperParameters:Algorithm' :: Algorithm -> Maybe (HashMap Text Text)
defaultHyperParameters} -> Maybe (HashMap Text Text)
defaultHyperParameters) (\s :: Algorithm
s@Algorithm' {} Maybe (HashMap Text Text)
a -> Algorithm
s {$sel:defaultHyperParameters:Algorithm' :: Maybe (HashMap Text Text)
defaultHyperParameters = Maybe (HashMap Text Text)
a} :: Algorithm) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Specifies the default maximum number of training jobs and parallel
-- training jobs.
algorithm_defaultResourceConfig :: Lens.Lens' Algorithm (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
algorithm_defaultResourceConfig :: Lens' Algorithm (Maybe (HashMap Text Text))
algorithm_defaultResourceConfig = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Algorithm' {Maybe (HashMap Text Text)
defaultResourceConfig :: Maybe (HashMap Text Text)
$sel:defaultResourceConfig:Algorithm' :: Algorithm -> Maybe (HashMap Text Text)
defaultResourceConfig} -> Maybe (HashMap Text Text)
defaultResourceConfig) (\s :: Algorithm
s@Algorithm' {} Maybe (HashMap Text Text)
a -> Algorithm
s {$sel:defaultResourceConfig:Algorithm' :: Maybe (HashMap Text Text)
defaultResourceConfig = Maybe (HashMap Text Text)
a} :: Algorithm) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The date and time (in Unix time) that the algorithm was last updated.
algorithm_lastUpdatedDateTime :: Lens.Lens' Algorithm (Prelude.Maybe Prelude.UTCTime)
algorithm_lastUpdatedDateTime :: Lens' Algorithm (Maybe UTCTime)
algorithm_lastUpdatedDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Algorithm' {Maybe POSIX
lastUpdatedDateTime :: Maybe POSIX
$sel:lastUpdatedDateTime:Algorithm' :: Algorithm -> Maybe POSIX
lastUpdatedDateTime} -> Maybe POSIX
lastUpdatedDateTime) (\s :: Algorithm
s@Algorithm' {} Maybe POSIX
a -> Algorithm
s {$sel:lastUpdatedDateTime:Algorithm' :: Maybe POSIX
lastUpdatedDateTime = Maybe POSIX
a} :: Algorithm) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall (a :: Format). Iso' (Time a) UTCTime
Data._Time

-- | The name of the algorithm.
algorithm_name :: Lens.Lens' Algorithm (Prelude.Maybe Prelude.Text)
algorithm_name :: Lens' Algorithm (Maybe Text)
algorithm_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Algorithm' {Maybe Text
name :: Maybe Text
$sel:name:Algorithm' :: Algorithm -> Maybe Text
name} -> Maybe Text
name) (\s :: Algorithm
s@Algorithm' {} Maybe Text
a -> Algorithm
s {$sel:name:Algorithm' :: Maybe Text
name = Maybe Text
a} :: Algorithm)

-- | The Amazon Resource Name (ARN) of the role.
algorithm_roleArn :: Lens.Lens' Algorithm (Prelude.Maybe Prelude.Text)
algorithm_roleArn :: Lens' Algorithm (Maybe Text)
algorithm_roleArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Algorithm' {Maybe Text
roleArn :: Maybe Text
$sel:roleArn:Algorithm' :: Algorithm -> Maybe Text
roleArn} -> Maybe Text
roleArn) (\s :: Algorithm
s@Algorithm' {} Maybe Text
a -> Algorithm
s {$sel:roleArn:Algorithm' :: Maybe Text
roleArn = Maybe Text
a} :: Algorithm)

-- | The training input mode.
algorithm_trainingInputMode :: Lens.Lens' Algorithm (Prelude.Maybe Prelude.Text)
algorithm_trainingInputMode :: Lens' Algorithm (Maybe Text)
algorithm_trainingInputMode = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\Algorithm' {Maybe Text
trainingInputMode :: Maybe Text
$sel:trainingInputMode:Algorithm' :: Algorithm -> Maybe Text
trainingInputMode} -> Maybe Text
trainingInputMode) (\s :: Algorithm
s@Algorithm' {} Maybe Text
a -> Algorithm
s {$sel:trainingInputMode:Algorithm' :: Maybe Text
trainingInputMode = Maybe Text
a} :: Algorithm)

instance Data.FromJSON Algorithm where
  parseJSON :: Value -> Parser Algorithm
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"Algorithm"
      ( \Object
x ->
          Maybe Text
-> Maybe AlgorithmImage
-> Maybe POSIX
-> Maybe DefaultHyperParameterRanges
-> Maybe (HashMap Text Text)
-> Maybe (HashMap Text Text)
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Algorithm
Algorithm'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"algorithmArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"algorithmImage")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"creationDateTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"defaultHyperParameterRanges")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"defaultHyperParameters"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"defaultResourceConfig"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"lastUpdatedDateTime")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"name")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"roleArn")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"trainingInputMode")
      )

instance Prelude.Hashable Algorithm where
  hashWithSalt :: Int -> Algorithm -> Int
hashWithSalt Int
_salt Algorithm' {Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe AlgorithmImage
Maybe DefaultHyperParameterRanges
trainingInputMode :: Maybe Text
roleArn :: Maybe Text
name :: Maybe Text
lastUpdatedDateTime :: Maybe POSIX
defaultResourceConfig :: Maybe (HashMap Text Text)
defaultHyperParameters :: Maybe (HashMap Text Text)
defaultHyperParameterRanges :: Maybe DefaultHyperParameterRanges
creationDateTime :: Maybe POSIX
algorithmImage :: Maybe AlgorithmImage
algorithmArn :: Maybe Text
$sel:trainingInputMode:Algorithm' :: Algorithm -> Maybe Text
$sel:roleArn:Algorithm' :: Algorithm -> Maybe Text
$sel:name:Algorithm' :: Algorithm -> Maybe Text
$sel:lastUpdatedDateTime:Algorithm' :: Algorithm -> Maybe POSIX
$sel:defaultResourceConfig:Algorithm' :: Algorithm -> Maybe (HashMap Text Text)
$sel:defaultHyperParameters:Algorithm' :: Algorithm -> Maybe (HashMap Text Text)
$sel:defaultHyperParameterRanges:Algorithm' :: Algorithm -> Maybe DefaultHyperParameterRanges
$sel:creationDateTime:Algorithm' :: Algorithm -> Maybe POSIX
$sel:algorithmImage:Algorithm' :: Algorithm -> Maybe AlgorithmImage
$sel:algorithmArn:Algorithm' :: Algorithm -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
algorithmArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AlgorithmImage
algorithmImage
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
creationDateTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DefaultHyperParameterRanges
defaultHyperParameterRanges
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
defaultHyperParameters
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (HashMap Text Text)
defaultResourceConfig
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe POSIX
lastUpdatedDateTime
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
name
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
roleArn
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
trainingInputMode

instance Prelude.NFData Algorithm where
  rnf :: Algorithm -> ()
rnf Algorithm' {Maybe Text
Maybe (HashMap Text Text)
Maybe POSIX
Maybe AlgorithmImage
Maybe DefaultHyperParameterRanges
trainingInputMode :: Maybe Text
roleArn :: Maybe Text
name :: Maybe Text
lastUpdatedDateTime :: Maybe POSIX
defaultResourceConfig :: Maybe (HashMap Text Text)
defaultHyperParameters :: Maybe (HashMap Text Text)
defaultHyperParameterRanges :: Maybe DefaultHyperParameterRanges
creationDateTime :: Maybe POSIX
algorithmImage :: Maybe AlgorithmImage
algorithmArn :: Maybe Text
$sel:trainingInputMode:Algorithm' :: Algorithm -> Maybe Text
$sel:roleArn:Algorithm' :: Algorithm -> Maybe Text
$sel:name:Algorithm' :: Algorithm -> Maybe Text
$sel:lastUpdatedDateTime:Algorithm' :: Algorithm -> Maybe POSIX
$sel:defaultResourceConfig:Algorithm' :: Algorithm -> Maybe (HashMap Text Text)
$sel:defaultHyperParameters:Algorithm' :: Algorithm -> Maybe (HashMap Text Text)
$sel:defaultHyperParameterRanges:Algorithm' :: Algorithm -> Maybe DefaultHyperParameterRanges
$sel:creationDateTime:Algorithm' :: Algorithm -> Maybe POSIX
$sel:algorithmImage:Algorithm' :: Algorithm -> Maybe AlgorithmImage
$sel:algorithmArn:Algorithm' :: Algorithm -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
algorithmArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AlgorithmImage
algorithmImage
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
creationDateTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe DefaultHyperParameterRanges
defaultHyperParameterRanges
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
defaultHyperParameters
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (HashMap Text Text)
defaultResourceConfig
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
lastUpdatedDateTime
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
name
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
roleArn
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
trainingInputMode