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

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

-- | The artifacts of the model card export job.
--
-- /See:/ 'newModelCardExportArtifacts' smart constructor.
data ModelCardExportArtifacts = ModelCardExportArtifacts'
  { -- | The Amazon S3 URI of the exported model artifacts.
    ModelCardExportArtifacts -> Text
s3ExportArtifacts :: Prelude.Text
  }
  deriving (ModelCardExportArtifacts -> ModelCardExportArtifacts -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModelCardExportArtifacts -> ModelCardExportArtifacts -> Bool
$c/= :: ModelCardExportArtifacts -> ModelCardExportArtifacts -> Bool
== :: ModelCardExportArtifacts -> ModelCardExportArtifacts -> Bool
$c== :: ModelCardExportArtifacts -> ModelCardExportArtifacts -> Bool
Prelude.Eq, ReadPrec [ModelCardExportArtifacts]
ReadPrec ModelCardExportArtifacts
Int -> ReadS ModelCardExportArtifacts
ReadS [ModelCardExportArtifacts]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModelCardExportArtifacts]
$creadListPrec :: ReadPrec [ModelCardExportArtifacts]
readPrec :: ReadPrec ModelCardExportArtifacts
$creadPrec :: ReadPrec ModelCardExportArtifacts
readList :: ReadS [ModelCardExportArtifacts]
$creadList :: ReadS [ModelCardExportArtifacts]
readsPrec :: Int -> ReadS ModelCardExportArtifacts
$creadsPrec :: Int -> ReadS ModelCardExportArtifacts
Prelude.Read, Int -> ModelCardExportArtifacts -> ShowS
[ModelCardExportArtifacts] -> ShowS
ModelCardExportArtifacts -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModelCardExportArtifacts] -> ShowS
$cshowList :: [ModelCardExportArtifacts] -> ShowS
show :: ModelCardExportArtifacts -> String
$cshow :: ModelCardExportArtifacts -> String
showsPrec :: Int -> ModelCardExportArtifacts -> ShowS
$cshowsPrec :: Int -> ModelCardExportArtifacts -> ShowS
Prelude.Show, forall x.
Rep ModelCardExportArtifacts x -> ModelCardExportArtifacts
forall x.
ModelCardExportArtifacts -> Rep ModelCardExportArtifacts x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ModelCardExportArtifacts x -> ModelCardExportArtifacts
$cfrom :: forall x.
ModelCardExportArtifacts -> Rep ModelCardExportArtifacts x
Prelude.Generic)

-- |
-- Create a value of 'ModelCardExportArtifacts' 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:
--
-- 's3ExportArtifacts', 'modelCardExportArtifacts_s3ExportArtifacts' - The Amazon S3 URI of the exported model artifacts.
newModelCardExportArtifacts ::
  -- | 's3ExportArtifacts'
  Prelude.Text ->
  ModelCardExportArtifacts
newModelCardExportArtifacts :: Text -> ModelCardExportArtifacts
newModelCardExportArtifacts Text
pS3ExportArtifacts_ =
  ModelCardExportArtifacts'
    { $sel:s3ExportArtifacts:ModelCardExportArtifacts' :: Text
s3ExportArtifacts =
        Text
pS3ExportArtifacts_
    }

-- | The Amazon S3 URI of the exported model artifacts.
modelCardExportArtifacts_s3ExportArtifacts :: Lens.Lens' ModelCardExportArtifacts Prelude.Text
modelCardExportArtifacts_s3ExportArtifacts :: Lens' ModelCardExportArtifacts Text
modelCardExportArtifacts_s3ExportArtifacts = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelCardExportArtifacts' {Text
s3ExportArtifacts :: Text
$sel:s3ExportArtifacts:ModelCardExportArtifacts' :: ModelCardExportArtifacts -> Text
s3ExportArtifacts} -> Text
s3ExportArtifacts) (\s :: ModelCardExportArtifacts
s@ModelCardExportArtifacts' {} Text
a -> ModelCardExportArtifacts
s {$sel:s3ExportArtifacts:ModelCardExportArtifacts' :: Text
s3ExportArtifacts = Text
a} :: ModelCardExportArtifacts)

instance Data.FromJSON ModelCardExportArtifacts where
  parseJSON :: Value -> Parser ModelCardExportArtifacts
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"ModelCardExportArtifacts"
      ( \Object
x ->
          Text -> ModelCardExportArtifacts
ModelCardExportArtifacts'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser a
Data..: Key
"S3ExportArtifacts")
      )

instance Prelude.Hashable ModelCardExportArtifacts where
  hashWithSalt :: Int -> ModelCardExportArtifacts -> Int
hashWithSalt Int
_salt ModelCardExportArtifacts' {Text
s3ExportArtifacts :: Text
$sel:s3ExportArtifacts:ModelCardExportArtifacts' :: ModelCardExportArtifacts -> Text
..} =
    Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
s3ExportArtifacts

instance Prelude.NFData ModelCardExportArtifacts where
  rnf :: ModelCardExportArtifacts -> ()
rnf ModelCardExportArtifacts' {Text
s3ExportArtifacts :: Text
$sel:s3ExportArtifacts:ModelCardExportArtifacts' :: ModelCardExportArtifacts -> Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Text
s3ExportArtifacts