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