{-# 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.HubContentDependency 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
data HubContentDependency = HubContentDependency'
{
HubContentDependency -> Maybe Text
dependencyCopyPath :: Prelude.Maybe Prelude.Text,
HubContentDependency -> Maybe Text
dependencyOriginPath :: Prelude.Maybe Prelude.Text
}
deriving (HubContentDependency -> HubContentDependency -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: HubContentDependency -> HubContentDependency -> Bool
$c/= :: HubContentDependency -> HubContentDependency -> Bool
== :: HubContentDependency -> HubContentDependency -> Bool
$c== :: HubContentDependency -> HubContentDependency -> Bool
Prelude.Eq, ReadPrec [HubContentDependency]
ReadPrec HubContentDependency
Int -> ReadS HubContentDependency
ReadS [HubContentDependency]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [HubContentDependency]
$creadListPrec :: ReadPrec [HubContentDependency]
readPrec :: ReadPrec HubContentDependency
$creadPrec :: ReadPrec HubContentDependency
readList :: ReadS [HubContentDependency]
$creadList :: ReadS [HubContentDependency]
readsPrec :: Int -> ReadS HubContentDependency
$creadsPrec :: Int -> ReadS HubContentDependency
Prelude.Read, Int -> HubContentDependency -> ShowS
[HubContentDependency] -> ShowS
HubContentDependency -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [HubContentDependency] -> ShowS
$cshowList :: [HubContentDependency] -> ShowS
show :: HubContentDependency -> String
$cshow :: HubContentDependency -> String
showsPrec :: Int -> HubContentDependency -> ShowS
$cshowsPrec :: Int -> HubContentDependency -> ShowS
Prelude.Show, forall x. Rep HubContentDependency x -> HubContentDependency
forall x. HubContentDependency -> Rep HubContentDependency x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep HubContentDependency x -> HubContentDependency
$cfrom :: forall x. HubContentDependency -> Rep HubContentDependency x
Prelude.Generic)
newHubContentDependency ::
HubContentDependency
newHubContentDependency :: HubContentDependency
newHubContentDependency =
HubContentDependency'
{ $sel:dependencyCopyPath:HubContentDependency' :: Maybe Text
dependencyCopyPath =
forall a. Maybe a
Prelude.Nothing,
$sel:dependencyOriginPath:HubContentDependency' :: Maybe Text
dependencyOriginPath = forall a. Maybe a
Prelude.Nothing
}
hubContentDependency_dependencyCopyPath :: Lens.Lens' HubContentDependency (Prelude.Maybe Prelude.Text)
hubContentDependency_dependencyCopyPath :: Lens' HubContentDependency (Maybe Text)
hubContentDependency_dependencyCopyPath = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HubContentDependency' {Maybe Text
dependencyCopyPath :: Maybe Text
$sel:dependencyCopyPath:HubContentDependency' :: HubContentDependency -> Maybe Text
dependencyCopyPath} -> Maybe Text
dependencyCopyPath) (\s :: HubContentDependency
s@HubContentDependency' {} Maybe Text
a -> HubContentDependency
s {$sel:dependencyCopyPath:HubContentDependency' :: Maybe Text
dependencyCopyPath = Maybe Text
a} :: HubContentDependency)
hubContentDependency_dependencyOriginPath :: Lens.Lens' HubContentDependency (Prelude.Maybe Prelude.Text)
hubContentDependency_dependencyOriginPath :: Lens' HubContentDependency (Maybe Text)
hubContentDependency_dependencyOriginPath = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\HubContentDependency' {Maybe Text
dependencyOriginPath :: Maybe Text
$sel:dependencyOriginPath:HubContentDependency' :: HubContentDependency -> Maybe Text
dependencyOriginPath} -> Maybe Text
dependencyOriginPath) (\s :: HubContentDependency
s@HubContentDependency' {} Maybe Text
a -> HubContentDependency
s {$sel:dependencyOriginPath:HubContentDependency' :: Maybe Text
dependencyOriginPath = Maybe Text
a} :: HubContentDependency)
instance Data.FromJSON HubContentDependency where
parseJSON :: Value -> Parser HubContentDependency
parseJSON =
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
String
"HubContentDependency"
( \Object
x ->
Maybe Text -> Maybe Text -> HubContentDependency
HubContentDependency'
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
"DependencyCopyPath")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"DependencyOriginPath")
)
instance Prelude.Hashable HubContentDependency where
hashWithSalt :: Int -> HubContentDependency -> Int
hashWithSalt Int
_salt HubContentDependency' {Maybe Text
dependencyOriginPath :: Maybe Text
dependencyCopyPath :: Maybe Text
$sel:dependencyOriginPath:HubContentDependency' :: HubContentDependency -> Maybe Text
$sel:dependencyCopyPath:HubContentDependency' :: HubContentDependency -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dependencyCopyPath
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
dependencyOriginPath
instance Prelude.NFData HubContentDependency where
rnf :: HubContentDependency -> ()
rnf HubContentDependency' {Maybe Text
dependencyOriginPath :: Maybe Text
dependencyCopyPath :: Maybe Text
$sel:dependencyOriginPath:HubContentDependency' :: HubContentDependency -> Maybe Text
$sel:dependencyCopyPath:HubContentDependency' :: HubContentDependency -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dependencyCopyPath
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
dependencyOriginPath