{-# 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 #-}
module Amazonka.SageMaker.Types.MonitoringGroundTruthS3Input where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data MonitoringGroundTruthS3Input = MonitoringGroundTruthS3Input'
{
MonitoringGroundTruthS3Input -> Maybe Text
s3Uri :: Prelude.Maybe Prelude.Text
}
deriving (MonitoringGroundTruthS3Input
-> MonitoringGroundTruthS3Input -> Bool
(MonitoringGroundTruthS3Input
-> MonitoringGroundTruthS3Input -> Bool)
-> (MonitoringGroundTruthS3Input
-> MonitoringGroundTruthS3Input -> Bool)
-> Eq MonitoringGroundTruthS3Input
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: MonitoringGroundTruthS3Input
-> MonitoringGroundTruthS3Input -> Bool
$c/= :: MonitoringGroundTruthS3Input
-> MonitoringGroundTruthS3Input -> Bool
== :: MonitoringGroundTruthS3Input
-> MonitoringGroundTruthS3Input -> Bool
$c== :: MonitoringGroundTruthS3Input
-> MonitoringGroundTruthS3Input -> Bool
Prelude.Eq, ReadPrec [MonitoringGroundTruthS3Input]
ReadPrec MonitoringGroundTruthS3Input
Int -> ReadS MonitoringGroundTruthS3Input
ReadS [MonitoringGroundTruthS3Input]
(Int -> ReadS MonitoringGroundTruthS3Input)
-> ReadS [MonitoringGroundTruthS3Input]
-> ReadPrec MonitoringGroundTruthS3Input
-> ReadPrec [MonitoringGroundTruthS3Input]
-> Read MonitoringGroundTruthS3Input
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [MonitoringGroundTruthS3Input]
$creadListPrec :: ReadPrec [MonitoringGroundTruthS3Input]
readPrec :: ReadPrec MonitoringGroundTruthS3Input
$creadPrec :: ReadPrec MonitoringGroundTruthS3Input
readList :: ReadS [MonitoringGroundTruthS3Input]
$creadList :: ReadS [MonitoringGroundTruthS3Input]
readsPrec :: Int -> ReadS MonitoringGroundTruthS3Input
$creadsPrec :: Int -> ReadS MonitoringGroundTruthS3Input
Prelude.Read, Int -> MonitoringGroundTruthS3Input -> ShowS
[MonitoringGroundTruthS3Input] -> ShowS
MonitoringGroundTruthS3Input -> String
(Int -> MonitoringGroundTruthS3Input -> ShowS)
-> (MonitoringGroundTruthS3Input -> String)
-> ([MonitoringGroundTruthS3Input] -> ShowS)
-> Show MonitoringGroundTruthS3Input
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [MonitoringGroundTruthS3Input] -> ShowS
$cshowList :: [MonitoringGroundTruthS3Input] -> ShowS
show :: MonitoringGroundTruthS3Input -> String
$cshow :: MonitoringGroundTruthS3Input -> String
showsPrec :: Int -> MonitoringGroundTruthS3Input -> ShowS
$cshowsPrec :: Int -> MonitoringGroundTruthS3Input -> ShowS
Prelude.Show, (forall x.
MonitoringGroundTruthS3Input -> Rep MonitoringGroundTruthS3Input x)
-> (forall x.
Rep MonitoringGroundTruthS3Input x -> MonitoringGroundTruthS3Input)
-> Generic MonitoringGroundTruthS3Input
forall x.
Rep MonitoringGroundTruthS3Input x -> MonitoringGroundTruthS3Input
forall x.
MonitoringGroundTruthS3Input -> Rep MonitoringGroundTruthS3Input x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep MonitoringGroundTruthS3Input x -> MonitoringGroundTruthS3Input
$cfrom :: forall x.
MonitoringGroundTruthS3Input -> Rep MonitoringGroundTruthS3Input x
Prelude.Generic)
newMonitoringGroundTruthS3Input ::
MonitoringGroundTruthS3Input
newMonitoringGroundTruthS3Input :: MonitoringGroundTruthS3Input
newMonitoringGroundTruthS3Input =
MonitoringGroundTruthS3Input' :: Maybe Text -> MonitoringGroundTruthS3Input
MonitoringGroundTruthS3Input'
{ $sel:s3Uri:MonitoringGroundTruthS3Input' :: Maybe Text
s3Uri =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
monitoringGroundTruthS3Input_s3Uri :: Lens.Lens' MonitoringGroundTruthS3Input (Prelude.Maybe Prelude.Text)
monitoringGroundTruthS3Input_s3Uri :: (Maybe Text -> f (Maybe Text))
-> MonitoringGroundTruthS3Input -> f MonitoringGroundTruthS3Input
monitoringGroundTruthS3Input_s3Uri = (MonitoringGroundTruthS3Input -> Maybe Text)
-> (MonitoringGroundTruthS3Input
-> Maybe Text -> MonitoringGroundTruthS3Input)
-> Lens
MonitoringGroundTruthS3Input
MonitoringGroundTruthS3Input
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\MonitoringGroundTruthS3Input' {Maybe Text
s3Uri :: Maybe Text
$sel:s3Uri:MonitoringGroundTruthS3Input' :: MonitoringGroundTruthS3Input -> Maybe Text
s3Uri} -> Maybe Text
s3Uri) (\s :: MonitoringGroundTruthS3Input
s@MonitoringGroundTruthS3Input' {} Maybe Text
a -> MonitoringGroundTruthS3Input
s {$sel:s3Uri:MonitoringGroundTruthS3Input' :: Maybe Text
s3Uri = Maybe Text
a} :: MonitoringGroundTruthS3Input)
instance Core.FromJSON MonitoringGroundTruthS3Input where
parseJSON :: Value -> Parser MonitoringGroundTruthS3Input
parseJSON =
String
-> (Object -> Parser MonitoringGroundTruthS3Input)
-> Value
-> Parser MonitoringGroundTruthS3Input
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"MonitoringGroundTruthS3Input"
( \Object
x ->
Maybe Text -> MonitoringGroundTruthS3Input
MonitoringGroundTruthS3Input'
(Maybe Text -> MonitoringGroundTruthS3Input)
-> Parser (Maybe Text) -> Parser MonitoringGroundTruthS3Input
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
"S3Uri")
)
instance
Prelude.Hashable
MonitoringGroundTruthS3Input
instance Prelude.NFData MonitoringGroundTruthS3Input
instance Core.ToJSON MonitoringGroundTruthS3Input where
toJSON :: MonitoringGroundTruthS3Input -> Value
toJSON MonitoringGroundTruthS3Input' {Maybe Text
s3Uri :: Maybe Text
$sel:s3Uri:MonitoringGroundTruthS3Input' :: MonitoringGroundTruthS3Input -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"S3Uri" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
s3Uri]
)