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