{-# 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.ServiceCatalog.Types.ProductViewSummary where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.ServiceCatalog.Types.ProductType
data ProductViewSummary = ProductViewSummary'
{
ProductViewSummary -> Maybe Text
owner :: Prelude.Maybe Prelude.Text,
ProductViewSummary -> Maybe Text
supportUrl :: Prelude.Maybe Prelude.Text,
ProductViewSummary -> Maybe Text
shortDescription :: Prelude.Maybe Prelude.Text,
ProductViewSummary -> Maybe Bool
hasDefaultPath :: Prelude.Maybe Prelude.Bool,
ProductViewSummary -> Maybe Text
distributor :: Prelude.Maybe Prelude.Text,
ProductViewSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
ProductViewSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
ProductViewSummary -> Maybe ProductType
type' :: Prelude.Maybe ProductType,
ProductViewSummary -> Maybe Text
supportEmail :: Prelude.Maybe Prelude.Text,
ProductViewSummary -> Maybe Text
productId :: Prelude.Maybe Prelude.Text,
ProductViewSummary -> Maybe Text
supportDescription :: Prelude.Maybe Prelude.Text
}
deriving (ProductViewSummary -> ProductViewSummary -> Bool
(ProductViewSummary -> ProductViewSummary -> Bool)
-> (ProductViewSummary -> ProductViewSummary -> Bool)
-> Eq ProductViewSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ProductViewSummary -> ProductViewSummary -> Bool
$c/= :: ProductViewSummary -> ProductViewSummary -> Bool
== :: ProductViewSummary -> ProductViewSummary -> Bool
$c== :: ProductViewSummary -> ProductViewSummary -> Bool
Prelude.Eq, ReadPrec [ProductViewSummary]
ReadPrec ProductViewSummary
Int -> ReadS ProductViewSummary
ReadS [ProductViewSummary]
(Int -> ReadS ProductViewSummary)
-> ReadS [ProductViewSummary]
-> ReadPrec ProductViewSummary
-> ReadPrec [ProductViewSummary]
-> Read ProductViewSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ProductViewSummary]
$creadListPrec :: ReadPrec [ProductViewSummary]
readPrec :: ReadPrec ProductViewSummary
$creadPrec :: ReadPrec ProductViewSummary
readList :: ReadS [ProductViewSummary]
$creadList :: ReadS [ProductViewSummary]
readsPrec :: Int -> ReadS ProductViewSummary
$creadsPrec :: Int -> ReadS ProductViewSummary
Prelude.Read, Int -> ProductViewSummary -> ShowS
[ProductViewSummary] -> ShowS
ProductViewSummary -> String
(Int -> ProductViewSummary -> ShowS)
-> (ProductViewSummary -> String)
-> ([ProductViewSummary] -> ShowS)
-> Show ProductViewSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ProductViewSummary] -> ShowS
$cshowList :: [ProductViewSummary] -> ShowS
show :: ProductViewSummary -> String
$cshow :: ProductViewSummary -> String
showsPrec :: Int -> ProductViewSummary -> ShowS
$cshowsPrec :: Int -> ProductViewSummary -> ShowS
Prelude.Show, (forall x. ProductViewSummary -> Rep ProductViewSummary x)
-> (forall x. Rep ProductViewSummary x -> ProductViewSummary)
-> Generic ProductViewSummary
forall x. Rep ProductViewSummary x -> ProductViewSummary
forall x. ProductViewSummary -> Rep ProductViewSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ProductViewSummary x -> ProductViewSummary
$cfrom :: forall x. ProductViewSummary -> Rep ProductViewSummary x
Prelude.Generic)
newProductViewSummary ::
ProductViewSummary
newProductViewSummary :: ProductViewSummary
newProductViewSummary =
ProductViewSummary' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary
ProductViewSummary'
{ $sel:owner:ProductViewSummary' :: Maybe Text
owner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:supportUrl:ProductViewSummary' :: Maybe Text
supportUrl = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:shortDescription:ProductViewSummary' :: Maybe Text
shortDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:hasDefaultPath:ProductViewSummary' :: Maybe Bool
hasDefaultPath = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:distributor:ProductViewSummary' :: Maybe Text
distributor = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:name:ProductViewSummary' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:id:ProductViewSummary' :: Maybe Text
id = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':ProductViewSummary' :: Maybe ProductType
type' = Maybe ProductType
forall a. Maybe a
Prelude.Nothing,
$sel:supportEmail:ProductViewSummary' :: Maybe Text
supportEmail = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:productId:ProductViewSummary' :: Maybe Text
productId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:supportDescription:ProductViewSummary' :: Maybe Text
supportDescription = Maybe Text
forall a. Maybe a
Prelude.Nothing
}
productViewSummary_owner :: Lens.Lens' ProductViewSummary (Prelude.Maybe Prelude.Text)
productViewSummary_owner :: (Maybe Text -> f (Maybe Text))
-> ProductViewSummary -> f ProductViewSummary
productViewSummary_owner = (ProductViewSummary -> Maybe Text)
-> (ProductViewSummary -> Maybe Text -> ProductViewSummary)
-> Lens
ProductViewSummary ProductViewSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProductViewSummary' {Maybe Text
owner :: Maybe Text
$sel:owner:ProductViewSummary' :: ProductViewSummary -> Maybe Text
owner} -> Maybe Text
owner) (\s :: ProductViewSummary
s@ProductViewSummary' {} Maybe Text
a -> ProductViewSummary
s {$sel:owner:ProductViewSummary' :: Maybe Text
owner = Maybe Text
a} :: ProductViewSummary)
productViewSummary_supportUrl :: Lens.Lens' ProductViewSummary (Prelude.Maybe Prelude.Text)
productViewSummary_supportUrl :: (Maybe Text -> f (Maybe Text))
-> ProductViewSummary -> f ProductViewSummary
productViewSummary_supportUrl = (ProductViewSummary -> Maybe Text)
-> (ProductViewSummary -> Maybe Text -> ProductViewSummary)
-> Lens
ProductViewSummary ProductViewSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProductViewSummary' {Maybe Text
supportUrl :: Maybe Text
$sel:supportUrl:ProductViewSummary' :: ProductViewSummary -> Maybe Text
supportUrl} -> Maybe Text
supportUrl) (\s :: ProductViewSummary
s@ProductViewSummary' {} Maybe Text
a -> ProductViewSummary
s {$sel:supportUrl:ProductViewSummary' :: Maybe Text
supportUrl = Maybe Text
a} :: ProductViewSummary)
productViewSummary_shortDescription :: Lens.Lens' ProductViewSummary (Prelude.Maybe Prelude.Text)
productViewSummary_shortDescription :: (Maybe Text -> f (Maybe Text))
-> ProductViewSummary -> f ProductViewSummary
productViewSummary_shortDescription = (ProductViewSummary -> Maybe Text)
-> (ProductViewSummary -> Maybe Text -> ProductViewSummary)
-> Lens
ProductViewSummary ProductViewSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProductViewSummary' {Maybe Text
shortDescription :: Maybe Text
$sel:shortDescription:ProductViewSummary' :: ProductViewSummary -> Maybe Text
shortDescription} -> Maybe Text
shortDescription) (\s :: ProductViewSummary
s@ProductViewSummary' {} Maybe Text
a -> ProductViewSummary
s {$sel:shortDescription:ProductViewSummary' :: Maybe Text
shortDescription = Maybe Text
a} :: ProductViewSummary)
productViewSummary_hasDefaultPath :: Lens.Lens' ProductViewSummary (Prelude.Maybe Prelude.Bool)
productViewSummary_hasDefaultPath :: (Maybe Bool -> f (Maybe Bool))
-> ProductViewSummary -> f ProductViewSummary
productViewSummary_hasDefaultPath = (ProductViewSummary -> Maybe Bool)
-> (ProductViewSummary -> Maybe Bool -> ProductViewSummary)
-> Lens
ProductViewSummary ProductViewSummary (Maybe Bool) (Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProductViewSummary' {Maybe Bool
hasDefaultPath :: Maybe Bool
$sel:hasDefaultPath:ProductViewSummary' :: ProductViewSummary -> Maybe Bool
hasDefaultPath} -> Maybe Bool
hasDefaultPath) (\s :: ProductViewSummary
s@ProductViewSummary' {} Maybe Bool
a -> ProductViewSummary
s {$sel:hasDefaultPath:ProductViewSummary' :: Maybe Bool
hasDefaultPath = Maybe Bool
a} :: ProductViewSummary)
productViewSummary_distributor :: Lens.Lens' ProductViewSummary (Prelude.Maybe Prelude.Text)
productViewSummary_distributor :: (Maybe Text -> f (Maybe Text))
-> ProductViewSummary -> f ProductViewSummary
productViewSummary_distributor = (ProductViewSummary -> Maybe Text)
-> (ProductViewSummary -> Maybe Text -> ProductViewSummary)
-> Lens
ProductViewSummary ProductViewSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProductViewSummary' {Maybe Text
distributor :: Maybe Text
$sel:distributor:ProductViewSummary' :: ProductViewSummary -> Maybe Text
distributor} -> Maybe Text
distributor) (\s :: ProductViewSummary
s@ProductViewSummary' {} Maybe Text
a -> ProductViewSummary
s {$sel:distributor:ProductViewSummary' :: Maybe Text
distributor = Maybe Text
a} :: ProductViewSummary)
productViewSummary_name :: Lens.Lens' ProductViewSummary (Prelude.Maybe Prelude.Text)
productViewSummary_name :: (Maybe Text -> f (Maybe Text))
-> ProductViewSummary -> f ProductViewSummary
productViewSummary_name = (ProductViewSummary -> Maybe Text)
-> (ProductViewSummary -> Maybe Text -> ProductViewSummary)
-> Lens
ProductViewSummary ProductViewSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProductViewSummary' {Maybe Text
name :: Maybe Text
$sel:name:ProductViewSummary' :: ProductViewSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: ProductViewSummary
s@ProductViewSummary' {} Maybe Text
a -> ProductViewSummary
s {$sel:name:ProductViewSummary' :: Maybe Text
name = Maybe Text
a} :: ProductViewSummary)
productViewSummary_id :: Lens.Lens' ProductViewSummary (Prelude.Maybe Prelude.Text)
productViewSummary_id :: (Maybe Text -> f (Maybe Text))
-> ProductViewSummary -> f ProductViewSummary
productViewSummary_id = (ProductViewSummary -> Maybe Text)
-> (ProductViewSummary -> Maybe Text -> ProductViewSummary)
-> Lens
ProductViewSummary ProductViewSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProductViewSummary' {Maybe Text
id :: Maybe Text
$sel:id:ProductViewSummary' :: ProductViewSummary -> Maybe Text
id} -> Maybe Text
id) (\s :: ProductViewSummary
s@ProductViewSummary' {} Maybe Text
a -> ProductViewSummary
s {$sel:id:ProductViewSummary' :: Maybe Text
id = Maybe Text
a} :: ProductViewSummary)
productViewSummary_type :: Lens.Lens' ProductViewSummary (Prelude.Maybe ProductType)
productViewSummary_type :: (Maybe ProductType -> f (Maybe ProductType))
-> ProductViewSummary -> f ProductViewSummary
productViewSummary_type = (ProductViewSummary -> Maybe ProductType)
-> (ProductViewSummary -> Maybe ProductType -> ProductViewSummary)
-> Lens
ProductViewSummary
ProductViewSummary
(Maybe ProductType)
(Maybe ProductType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProductViewSummary' {Maybe ProductType
type' :: Maybe ProductType
$sel:type':ProductViewSummary' :: ProductViewSummary -> Maybe ProductType
type'} -> Maybe ProductType
type') (\s :: ProductViewSummary
s@ProductViewSummary' {} Maybe ProductType
a -> ProductViewSummary
s {$sel:type':ProductViewSummary' :: Maybe ProductType
type' = Maybe ProductType
a} :: ProductViewSummary)
productViewSummary_supportEmail :: Lens.Lens' ProductViewSummary (Prelude.Maybe Prelude.Text)
productViewSummary_supportEmail :: (Maybe Text -> f (Maybe Text))
-> ProductViewSummary -> f ProductViewSummary
productViewSummary_supportEmail = (ProductViewSummary -> Maybe Text)
-> (ProductViewSummary -> Maybe Text -> ProductViewSummary)
-> Lens
ProductViewSummary ProductViewSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProductViewSummary' {Maybe Text
supportEmail :: Maybe Text
$sel:supportEmail:ProductViewSummary' :: ProductViewSummary -> Maybe Text
supportEmail} -> Maybe Text
supportEmail) (\s :: ProductViewSummary
s@ProductViewSummary' {} Maybe Text
a -> ProductViewSummary
s {$sel:supportEmail:ProductViewSummary' :: Maybe Text
supportEmail = Maybe Text
a} :: ProductViewSummary)
productViewSummary_productId :: Lens.Lens' ProductViewSummary (Prelude.Maybe Prelude.Text)
productViewSummary_productId :: (Maybe Text -> f (Maybe Text))
-> ProductViewSummary -> f ProductViewSummary
productViewSummary_productId = (ProductViewSummary -> Maybe Text)
-> (ProductViewSummary -> Maybe Text -> ProductViewSummary)
-> Lens
ProductViewSummary ProductViewSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProductViewSummary' {Maybe Text
productId :: Maybe Text
$sel:productId:ProductViewSummary' :: ProductViewSummary -> Maybe Text
productId} -> Maybe Text
productId) (\s :: ProductViewSummary
s@ProductViewSummary' {} Maybe Text
a -> ProductViewSummary
s {$sel:productId:ProductViewSummary' :: Maybe Text
productId = Maybe Text
a} :: ProductViewSummary)
productViewSummary_supportDescription :: Lens.Lens' ProductViewSummary (Prelude.Maybe Prelude.Text)
productViewSummary_supportDescription :: (Maybe Text -> f (Maybe Text))
-> ProductViewSummary -> f ProductViewSummary
productViewSummary_supportDescription = (ProductViewSummary -> Maybe Text)
-> (ProductViewSummary -> Maybe Text -> ProductViewSummary)
-> Lens
ProductViewSummary ProductViewSummary (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ProductViewSummary' {Maybe Text
supportDescription :: Maybe Text
$sel:supportDescription:ProductViewSummary' :: ProductViewSummary -> Maybe Text
supportDescription} -> Maybe Text
supportDescription) (\s :: ProductViewSummary
s@ProductViewSummary' {} Maybe Text
a -> ProductViewSummary
s {$sel:supportDescription:ProductViewSummary' :: Maybe Text
supportDescription = Maybe Text
a} :: ProductViewSummary)
instance Core.FromJSON ProductViewSummary where
parseJSON :: Value -> Parser ProductViewSummary
parseJSON =
String
-> (Object -> Parser ProductViewSummary)
-> Value
-> Parser ProductViewSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
String
"ProductViewSummary"
( \Object
x ->
Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary
ProductViewSummary'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
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
"Owner")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
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
"SupportUrl")
Parser
(Maybe Text
-> Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
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
"ShortDescription")
Parser
(Maybe Bool
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
-> Parser (Maybe Bool)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Bool)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"HasDefaultPath")
Parser
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
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
"Distributor")
Parser
(Maybe Text
-> Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
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
"Name")
Parser
(Maybe Text
-> Maybe ProductType
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> ProductViewSummary)
-> Parser (Maybe Text)
-> Parser
(Maybe ProductType
-> Maybe Text -> Maybe Text -> Maybe Text -> ProductViewSummary)
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
"Id")
Parser
(Maybe ProductType
-> Maybe Text -> Maybe Text -> Maybe Text -> ProductViewSummary)
-> Parser (Maybe ProductType)
-> Parser
(Maybe Text -> Maybe Text -> Maybe Text -> ProductViewSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ProductType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"Type")
Parser
(Maybe Text -> Maybe Text -> Maybe Text -> ProductViewSummary)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> Maybe Text -> ProductViewSummary)
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
"SupportEmail")
Parser (Maybe Text -> Maybe Text -> ProductViewSummary)
-> Parser (Maybe Text) -> Parser (Maybe Text -> ProductViewSummary)
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
"ProductId")
Parser (Maybe Text -> ProductViewSummary)
-> Parser (Maybe Text) -> Parser ProductViewSummary
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
"SupportDescription")
)
instance Prelude.Hashable ProductViewSummary
instance Prelude.NFData ProductViewSummary