{-# 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.SageMaker.Types.AutoMLJobArtifacts
-- 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.AutoMLJobArtifacts where

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

-- | The artifacts that are generated during an AutoML job.
--
-- /See:/ 'newAutoMLJobArtifacts' smart constructor.
data AutoMLJobArtifacts = AutoMLJobArtifacts'
  { -- | The URL of the notebook location.
    AutoMLJobArtifacts -> Maybe Text
candidateDefinitionNotebookLocation :: Prelude.Maybe Prelude.Text,
    -- | The URL of the notebook location.
    AutoMLJobArtifacts -> Maybe Text
dataExplorationNotebookLocation :: Prelude.Maybe Prelude.Text
  }
  deriving (AutoMLJobArtifacts -> AutoMLJobArtifacts -> Bool
(AutoMLJobArtifacts -> AutoMLJobArtifacts -> Bool)
-> (AutoMLJobArtifacts -> AutoMLJobArtifacts -> Bool)
-> Eq AutoMLJobArtifacts
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AutoMLJobArtifacts -> AutoMLJobArtifacts -> Bool
$c/= :: AutoMLJobArtifacts -> AutoMLJobArtifacts -> Bool
== :: AutoMLJobArtifacts -> AutoMLJobArtifacts -> Bool
$c== :: AutoMLJobArtifacts -> AutoMLJobArtifacts -> Bool
Prelude.Eq, ReadPrec [AutoMLJobArtifacts]
ReadPrec AutoMLJobArtifacts
Int -> ReadS AutoMLJobArtifacts
ReadS [AutoMLJobArtifacts]
(Int -> ReadS AutoMLJobArtifacts)
-> ReadS [AutoMLJobArtifacts]
-> ReadPrec AutoMLJobArtifacts
-> ReadPrec [AutoMLJobArtifacts]
-> Read AutoMLJobArtifacts
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [AutoMLJobArtifacts]
$creadListPrec :: ReadPrec [AutoMLJobArtifacts]
readPrec :: ReadPrec AutoMLJobArtifacts
$creadPrec :: ReadPrec AutoMLJobArtifacts
readList :: ReadS [AutoMLJobArtifacts]
$creadList :: ReadS [AutoMLJobArtifacts]
readsPrec :: Int -> ReadS AutoMLJobArtifacts
$creadsPrec :: Int -> ReadS AutoMLJobArtifacts
Prelude.Read, Int -> AutoMLJobArtifacts -> ShowS
[AutoMLJobArtifacts] -> ShowS
AutoMLJobArtifacts -> String
(Int -> AutoMLJobArtifacts -> ShowS)
-> (AutoMLJobArtifacts -> String)
-> ([AutoMLJobArtifacts] -> ShowS)
-> Show AutoMLJobArtifacts
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [AutoMLJobArtifacts] -> ShowS
$cshowList :: [AutoMLJobArtifacts] -> ShowS
show :: AutoMLJobArtifacts -> String
$cshow :: AutoMLJobArtifacts -> String
showsPrec :: Int -> AutoMLJobArtifacts -> ShowS
$cshowsPrec :: Int -> AutoMLJobArtifacts -> ShowS
Prelude.Show, (forall x. AutoMLJobArtifacts -> Rep AutoMLJobArtifacts x)
-> (forall x. Rep AutoMLJobArtifacts x -> AutoMLJobArtifacts)
-> Generic AutoMLJobArtifacts
forall x. Rep AutoMLJobArtifacts x -> AutoMLJobArtifacts
forall x. AutoMLJobArtifacts -> Rep AutoMLJobArtifacts x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep AutoMLJobArtifacts x -> AutoMLJobArtifacts
$cfrom :: forall x. AutoMLJobArtifacts -> Rep AutoMLJobArtifacts x
Prelude.Generic)

-- |
-- Create a value of 'AutoMLJobArtifacts' 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:
--
-- 'candidateDefinitionNotebookLocation', 'autoMLJobArtifacts_candidateDefinitionNotebookLocation' - The URL of the notebook location.
--
-- 'dataExplorationNotebookLocation', 'autoMLJobArtifacts_dataExplorationNotebookLocation' - The URL of the notebook location.
newAutoMLJobArtifacts ::
  AutoMLJobArtifacts
newAutoMLJobArtifacts :: AutoMLJobArtifacts
newAutoMLJobArtifacts =
  AutoMLJobArtifacts' :: Maybe Text -> Maybe Text -> AutoMLJobArtifacts
AutoMLJobArtifacts'
    { $sel:candidateDefinitionNotebookLocation:AutoMLJobArtifacts' :: Maybe Text
candidateDefinitionNotebookLocation =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dataExplorationNotebookLocation:AutoMLJobArtifacts' :: Maybe Text
dataExplorationNotebookLocation = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The URL of the notebook location.
autoMLJobArtifacts_candidateDefinitionNotebookLocation :: Lens.Lens' AutoMLJobArtifacts (Prelude.Maybe Prelude.Text)
autoMLJobArtifacts_candidateDefinitionNotebookLocation :: (Maybe Text -> f (Maybe Text))
-> AutoMLJobArtifacts -> f AutoMLJobArtifacts
autoMLJobArtifacts_candidateDefinitionNotebookLocation = (AutoMLJobArtifacts -> Maybe Text)
-> (AutoMLJobArtifacts -> Maybe Text -> AutoMLJobArtifacts)
-> Lens
     AutoMLJobArtifacts AutoMLJobArtifacts (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoMLJobArtifacts' {Maybe Text
candidateDefinitionNotebookLocation :: Maybe Text
$sel:candidateDefinitionNotebookLocation:AutoMLJobArtifacts' :: AutoMLJobArtifacts -> Maybe Text
candidateDefinitionNotebookLocation} -> Maybe Text
candidateDefinitionNotebookLocation) (\s :: AutoMLJobArtifacts
s@AutoMLJobArtifacts' {} Maybe Text
a -> AutoMLJobArtifacts
s {$sel:candidateDefinitionNotebookLocation:AutoMLJobArtifacts' :: Maybe Text
candidateDefinitionNotebookLocation = Maybe Text
a} :: AutoMLJobArtifacts)

-- | The URL of the notebook location.
autoMLJobArtifacts_dataExplorationNotebookLocation :: Lens.Lens' AutoMLJobArtifacts (Prelude.Maybe Prelude.Text)
autoMLJobArtifacts_dataExplorationNotebookLocation :: (Maybe Text -> f (Maybe Text))
-> AutoMLJobArtifacts -> f AutoMLJobArtifacts
autoMLJobArtifacts_dataExplorationNotebookLocation = (AutoMLJobArtifacts -> Maybe Text)
-> (AutoMLJobArtifacts -> Maybe Text -> AutoMLJobArtifacts)
-> Lens
     AutoMLJobArtifacts AutoMLJobArtifacts (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\AutoMLJobArtifacts' {Maybe Text
dataExplorationNotebookLocation :: Maybe Text
$sel:dataExplorationNotebookLocation:AutoMLJobArtifacts' :: AutoMLJobArtifacts -> Maybe Text
dataExplorationNotebookLocation} -> Maybe Text
dataExplorationNotebookLocation) (\s :: AutoMLJobArtifacts
s@AutoMLJobArtifacts' {} Maybe Text
a -> AutoMLJobArtifacts
s {$sel:dataExplorationNotebookLocation:AutoMLJobArtifacts' :: Maybe Text
dataExplorationNotebookLocation = Maybe Text
a} :: AutoMLJobArtifacts)

instance Core.FromJSON AutoMLJobArtifacts where
  parseJSON :: Value -> Parser AutoMLJobArtifacts
parseJSON =
    String
-> (Object -> Parser AutoMLJobArtifacts)
-> Value
-> Parser AutoMLJobArtifacts
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"AutoMLJobArtifacts"
      ( \Object
x ->
          Maybe Text -> Maybe Text -> AutoMLJobArtifacts
AutoMLJobArtifacts'
            (Maybe Text -> Maybe Text -> AutoMLJobArtifacts)
-> Parser (Maybe Text) -> Parser (Maybe Text -> AutoMLJobArtifacts)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CandidateDefinitionNotebookLocation")
            Parser (Maybe Text -> AutoMLJobArtifacts)
-> Parser (Maybe Text) -> Parser AutoMLJobArtifacts
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"DataExplorationNotebookLocation")
      )

instance Prelude.Hashable AutoMLJobArtifacts

instance Prelude.NFData AutoMLJobArtifacts