{-# 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.ModelPackagingOutputDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.LookoutVision.Types.GreengrassOutputDetails
import qualified Amazonka.Prelude as Prelude
data ModelPackagingOutputDetails = ModelPackagingOutputDetails'
{
ModelPackagingOutputDetails -> Maybe GreengrassOutputDetails
greengrass :: Prelude.Maybe GreengrassOutputDetails
}
deriving (ModelPackagingOutputDetails -> ModelPackagingOutputDetails -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ModelPackagingOutputDetails -> ModelPackagingOutputDetails -> Bool
$c/= :: ModelPackagingOutputDetails -> ModelPackagingOutputDetails -> Bool
== :: ModelPackagingOutputDetails -> ModelPackagingOutputDetails -> Bool
$c== :: ModelPackagingOutputDetails -> ModelPackagingOutputDetails -> Bool
Prelude.Eq, ReadPrec [ModelPackagingOutputDetails]
ReadPrec ModelPackagingOutputDetails
Int -> ReadS ModelPackagingOutputDetails
ReadS [ModelPackagingOutputDetails]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ModelPackagingOutputDetails]
$creadListPrec :: ReadPrec [ModelPackagingOutputDetails]
readPrec :: ReadPrec ModelPackagingOutputDetails
$creadPrec :: ReadPrec ModelPackagingOutputDetails
readList :: ReadS [ModelPackagingOutputDetails]
$creadList :: ReadS [ModelPackagingOutputDetails]
readsPrec :: Int -> ReadS ModelPackagingOutputDetails
$creadsPrec :: Int -> ReadS ModelPackagingOutputDetails
Prelude.Read, Int -> ModelPackagingOutputDetails -> ShowS
[ModelPackagingOutputDetails] -> ShowS
ModelPackagingOutputDetails -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ModelPackagingOutputDetails] -> ShowS
$cshowList :: [ModelPackagingOutputDetails] -> ShowS
show :: ModelPackagingOutputDetails -> String
$cshow :: ModelPackagingOutputDetails -> String
showsPrec :: Int -> ModelPackagingOutputDetails -> ShowS
$cshowsPrec :: Int -> ModelPackagingOutputDetails -> ShowS
Prelude.Show, forall x.
Rep ModelPackagingOutputDetails x -> ModelPackagingOutputDetails
forall x.
ModelPackagingOutputDetails -> Rep ModelPackagingOutputDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ModelPackagingOutputDetails x -> ModelPackagingOutputDetails
$cfrom :: forall x.
ModelPackagingOutputDetails -> Rep ModelPackagingOutputDetails x
Prelude.Generic)
newModelPackagingOutputDetails ::
ModelPackagingOutputDetails
newModelPackagingOutputDetails :: ModelPackagingOutputDetails
newModelPackagingOutputDetails =
ModelPackagingOutputDetails'
{ $sel:greengrass:ModelPackagingOutputDetails' :: Maybe GreengrassOutputDetails
greengrass =
forall a. Maybe a
Prelude.Nothing
}
modelPackagingOutputDetails_greengrass :: Lens.Lens' ModelPackagingOutputDetails (Prelude.Maybe GreengrassOutputDetails)
modelPackagingOutputDetails_greengrass :: Lens' ModelPackagingOutputDetails (Maybe GreengrassOutputDetails)
modelPackagingOutputDetails_greengrass = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ModelPackagingOutputDetails' {Maybe GreengrassOutputDetails
greengrass :: Maybe GreengrassOutputDetails
$sel:greengrass:ModelPackagingOutputDetails' :: ModelPackagingOutputDetails -> Maybe GreengrassOutputDetails
greengrass} -> Maybe GreengrassOutputDetails
greengrass) (\s :: ModelPackagingOutputDetails
s@ModelPackagingOutputDetails' {} Maybe GreengrassOutputDetails
a -> ModelPackagingOutputDetails
s {$sel:greengrass:ModelPackagingOutputDetails' :: Maybe GreengrassOutputDetails
greengrass = Maybe GreengrassOutputDetails
a} :: ModelPackagingOutputDetails)
instance Data.FromJSON ModelPackagingOutputDetails where
parseJSON :: Value -> Parser ModelPackagingOutputDetails
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"ModelPackagingOutputDetails"
( \Object
x ->
Maybe GreengrassOutputDetails -> ModelPackagingOutputDetails
ModelPackagingOutputDetails'
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
"Greengrass")
)
instance Prelude.Hashable ModelPackagingOutputDetails where
hashWithSalt :: Int -> ModelPackagingOutputDetails -> Int
hashWithSalt Int
_salt ModelPackagingOutputDetails' {Maybe GreengrassOutputDetails
greengrass :: Maybe GreengrassOutputDetails
$sel:greengrass:ModelPackagingOutputDetails' :: ModelPackagingOutputDetails -> Maybe GreengrassOutputDetails
..} =
Int
_salt forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe GreengrassOutputDetails
greengrass
instance Prelude.NFData ModelPackagingOutputDetails where
rnf :: ModelPackagingOutputDetails -> ()
rnf ModelPackagingOutputDetails' {Maybe GreengrassOutputDetails
greengrass :: Maybe GreengrassOutputDetails
$sel:greengrass:ModelPackagingOutputDetails' :: ModelPackagingOutputDetails -> Maybe GreengrassOutputDetails
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe GreengrassOutputDetails
greengrass