{-# 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.ServiceCatalogProvisionedProductDetails where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
data ServiceCatalogProvisionedProductDetails = ServiceCatalogProvisionedProductDetails'
{
ServiceCatalogProvisionedProductDetails -> Maybe Text
provisionedProductStatusMessage :: Prelude.Maybe Prelude.Text,
ServiceCatalogProvisionedProductDetails -> Maybe Text
provisionedProductId :: Prelude.Maybe Prelude.Text
}
deriving (ServiceCatalogProvisionedProductDetails
-> ServiceCatalogProvisionedProductDetails -> Bool
(ServiceCatalogProvisionedProductDetails
-> ServiceCatalogProvisionedProductDetails -> Bool)
-> (ServiceCatalogProvisionedProductDetails
-> ServiceCatalogProvisionedProductDetails -> Bool)
-> Eq ServiceCatalogProvisionedProductDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ServiceCatalogProvisionedProductDetails
-> ServiceCatalogProvisionedProductDetails -> Bool
$c/= :: ServiceCatalogProvisionedProductDetails
-> ServiceCatalogProvisionedProductDetails -> Bool
== :: ServiceCatalogProvisionedProductDetails
-> ServiceCatalogProvisionedProductDetails -> Bool
$c== :: ServiceCatalogProvisionedProductDetails
-> ServiceCatalogProvisionedProductDetails -> Bool
Prelude.Eq, ReadPrec [ServiceCatalogProvisionedProductDetails]
ReadPrec ServiceCatalogProvisionedProductDetails
Int -> ReadS ServiceCatalogProvisionedProductDetails
ReadS [ServiceCatalogProvisionedProductDetails]
(Int -> ReadS ServiceCatalogProvisionedProductDetails)
-> ReadS [ServiceCatalogProvisionedProductDetails]
-> ReadPrec ServiceCatalogProvisionedProductDetails
-> ReadPrec [ServiceCatalogProvisionedProductDetails]
-> Read ServiceCatalogProvisionedProductDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ServiceCatalogProvisionedProductDetails]
$creadListPrec :: ReadPrec [ServiceCatalogProvisionedProductDetails]
readPrec :: ReadPrec ServiceCatalogProvisionedProductDetails
$creadPrec :: ReadPrec ServiceCatalogProvisionedProductDetails
readList :: ReadS [ServiceCatalogProvisionedProductDetails]
$creadList :: ReadS [ServiceCatalogProvisionedProductDetails]
readsPrec :: Int -> ReadS ServiceCatalogProvisionedProductDetails
$creadsPrec :: Int -> ReadS ServiceCatalogProvisionedProductDetails
Prelude.Read, Int -> ServiceCatalogProvisionedProductDetails -> ShowS
[ServiceCatalogProvisionedProductDetails] -> ShowS
ServiceCatalogProvisionedProductDetails -> String
(Int -> ServiceCatalogProvisionedProductDetails -> ShowS)
-> (ServiceCatalogProvisionedProductDetails -> String)
-> ([ServiceCatalogProvisionedProductDetails] -> ShowS)
-> Show ServiceCatalogProvisionedProductDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ServiceCatalogProvisionedProductDetails] -> ShowS
$cshowList :: [ServiceCatalogProvisionedProductDetails] -> ShowS
show :: ServiceCatalogProvisionedProductDetails -> String
$cshow :: ServiceCatalogProvisionedProductDetails -> String
showsPrec :: Int -> ServiceCatalogProvisionedProductDetails -> ShowS
$cshowsPrec :: Int -> ServiceCatalogProvisionedProductDetails -> ShowS
Prelude.Show, (forall x.
ServiceCatalogProvisionedProductDetails
-> Rep ServiceCatalogProvisionedProductDetails x)
-> (forall x.
Rep ServiceCatalogProvisionedProductDetails x
-> ServiceCatalogProvisionedProductDetails)
-> Generic ServiceCatalogProvisionedProductDetails
forall x.
Rep ServiceCatalogProvisionedProductDetails x
-> ServiceCatalogProvisionedProductDetails
forall x.
ServiceCatalogProvisionedProductDetails
-> Rep ServiceCatalogProvisionedProductDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ServiceCatalogProvisionedProductDetails x
-> ServiceCatalogProvisionedProductDetails
$cfrom :: forall x.
ServiceCatalogProvisionedProductDetails
-> Rep ServiceCatalogProvisionedProductDetails x
Prelude.Generic)
newServiceCatalogProvisionedProductDetails ::
ServiceCatalogProvisionedProductDetails
newServiceCatalogProvisionedProductDetails :: ServiceCatalogProvisionedProductDetails
newServiceCatalogProvisionedProductDetails =
ServiceCatalogProvisionedProductDetails' :: Maybe Text -> Maybe Text -> ServiceCatalogProvisionedProductDetails
ServiceCatalogProvisionedProductDetails'
{ $sel:provisionedProductStatusMessage:ServiceCatalogProvisionedProductDetails' :: Maybe Text
provisionedProductStatusMessage =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:provisionedProductId:ServiceCatalogProvisionedProductDetails' :: Maybe Text
provisionedProductId =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
serviceCatalogProvisionedProductDetails_provisionedProductStatusMessage :: Lens.Lens' ServiceCatalogProvisionedProductDetails (Prelude.Maybe Prelude.Text)
serviceCatalogProvisionedProductDetails_provisionedProductStatusMessage :: (Maybe Text -> f (Maybe Text))
-> ServiceCatalogProvisionedProductDetails
-> f ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails_provisionedProductStatusMessage = (ServiceCatalogProvisionedProductDetails -> Maybe Text)
-> (ServiceCatalogProvisionedProductDetails
-> Maybe Text -> ServiceCatalogProvisionedProductDetails)
-> Lens
ServiceCatalogProvisionedProductDetails
ServiceCatalogProvisionedProductDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceCatalogProvisionedProductDetails' {Maybe Text
provisionedProductStatusMessage :: Maybe Text
$sel:provisionedProductStatusMessage:ServiceCatalogProvisionedProductDetails' :: ServiceCatalogProvisionedProductDetails -> Maybe Text
provisionedProductStatusMessage} -> Maybe Text
provisionedProductStatusMessage) (\s :: ServiceCatalogProvisionedProductDetails
s@ServiceCatalogProvisionedProductDetails' {} Maybe Text
a -> ServiceCatalogProvisionedProductDetails
s {$sel:provisionedProductStatusMessage:ServiceCatalogProvisionedProductDetails' :: Maybe Text
provisionedProductStatusMessage = Maybe Text
a} :: ServiceCatalogProvisionedProductDetails)
serviceCatalogProvisionedProductDetails_provisionedProductId :: Lens.Lens' ServiceCatalogProvisionedProductDetails (Prelude.Maybe Prelude.Text)
serviceCatalogProvisionedProductDetails_provisionedProductId :: (Maybe Text -> f (Maybe Text))
-> ServiceCatalogProvisionedProductDetails
-> f ServiceCatalogProvisionedProductDetails
serviceCatalogProvisionedProductDetails_provisionedProductId = (ServiceCatalogProvisionedProductDetails -> Maybe Text)
-> (ServiceCatalogProvisionedProductDetails
-> Maybe Text -> ServiceCatalogProvisionedProductDetails)
-> Lens
ServiceCatalogProvisionedProductDetails
ServiceCatalogProvisionedProductDetails
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ServiceCatalogProvisionedProductDetails' {Maybe Text
provisionedProductId :: Maybe Text
$sel:provisionedProductId:ServiceCatalogProvisionedProductDetails' :: ServiceCatalogProvisionedProductDetails -> Maybe Text
provisionedProductId} -> Maybe Text
provisionedProductId) (\s :: ServiceCatalogProvisionedProductDetails
s@ServiceCatalogProvisionedProductDetails' {} Maybe Text
a -> ServiceCatalogProvisionedProductDetails
s {$sel:provisionedProductId:ServiceCatalogProvisionedProductDetails' :: Maybe Text
provisionedProductId = Maybe Text
a} :: ServiceCatalogProvisionedProductDetails)
instance
Core.FromJSON
ServiceCatalogProvisionedProductDetails
where
parseJSON :: Value -> Parser ServiceCatalogProvisionedProductDetails
parseJSON =
String
-> (Object -> Parser ServiceCatalogProvisionedProductDetails)
-> Value
-> Parser ServiceCatalogProvisionedProductDetails
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ServiceCatalogProvisionedProductDetails"
( \Object
x ->
Maybe Text -> Maybe Text -> ServiceCatalogProvisionedProductDetails
ServiceCatalogProvisionedProductDetails'
(Maybe Text
-> Maybe Text -> ServiceCatalogProvisionedProductDetails)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> ServiceCatalogProvisionedProductDetails)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProvisionedProductStatusMessage")
Parser (Maybe Text -> ServiceCatalogProvisionedProductDetails)
-> Parser (Maybe Text)
-> Parser ServiceCatalogProvisionedProductDetails
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ProvisionedProductId")
)
instance
Prelude.Hashable
ServiceCatalogProvisionedProductDetails
instance
Prelude.NFData
ServiceCatalogProvisionedProductDetails