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