{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.ServiceCatalog.Types.ProductViewSummary
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
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

-- | Summary information about a product view.
--
-- /See:/ 'newProductViewSummary' smart constructor.
data ProductViewSummary = ProductViewSummary'
  { -- | The owner of the product. Contact the product administrator for the
    -- significance of this value.
    ProductViewSummary -> Maybe Text
owner :: Prelude.Maybe Prelude.Text,
    -- | The URL information to obtain support for this Product.
    ProductViewSummary -> Maybe Text
supportUrl :: Prelude.Maybe Prelude.Text,
    -- | Short description of the product.
    ProductViewSummary -> Maybe Text
shortDescription :: Prelude.Maybe Prelude.Text,
    -- | Indicates whether the product has a default path. If the product does
    -- not have a default path, call ListLaunchPaths to disambiguate between
    -- paths. Otherwise, ListLaunchPaths is not required, and the output of
    -- ProductViewSummary can be used directly with
    -- DescribeProvisioningParameters.
    ProductViewSummary -> Maybe Bool
hasDefaultPath :: Prelude.Maybe Prelude.Bool,
    -- | The distributor of the product. Contact the product administrator for
    -- the significance of this value.
    ProductViewSummary -> Maybe Text
distributor :: Prelude.Maybe Prelude.Text,
    -- | The name of the product.
    ProductViewSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The product view identifier.
    ProductViewSummary -> Maybe Text
id :: Prelude.Maybe Prelude.Text,
    -- | The product type. Contact the product administrator for the significance
    -- of this value. If this value is @MARKETPLACE@, the product was created
    -- by AWS Marketplace.
    ProductViewSummary -> Maybe ProductType
type' :: Prelude.Maybe ProductType,
    -- | The email contact information to obtain support for this Product.
    ProductViewSummary -> Maybe Text
supportEmail :: Prelude.Maybe Prelude.Text,
    -- | The product identifier.
    ProductViewSummary -> Maybe Text
productId :: Prelude.Maybe Prelude.Text,
    -- | The description of the support for this Product.
    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)

-- |
-- Create a value of 'ProductViewSummary' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'owner', 'productViewSummary_owner' - The owner of the product. Contact the product administrator for the
-- significance of this value.
--
-- 'supportUrl', 'productViewSummary_supportUrl' - The URL information to obtain support for this Product.
--
-- 'shortDescription', 'productViewSummary_shortDescription' - Short description of the product.
--
-- 'hasDefaultPath', 'productViewSummary_hasDefaultPath' - Indicates whether the product has a default path. If the product does
-- not have a default path, call ListLaunchPaths to disambiguate between
-- paths. Otherwise, ListLaunchPaths is not required, and the output of
-- ProductViewSummary can be used directly with
-- DescribeProvisioningParameters.
--
-- 'distributor', 'productViewSummary_distributor' - The distributor of the product. Contact the product administrator for
-- the significance of this value.
--
-- 'name', 'productViewSummary_name' - The name of the product.
--
-- 'id', 'productViewSummary_id' - The product view identifier.
--
-- 'type'', 'productViewSummary_type' - The product type. Contact the product administrator for the significance
-- of this value. If this value is @MARKETPLACE@, the product was created
-- by AWS Marketplace.
--
-- 'supportEmail', 'productViewSummary_supportEmail' - The email contact information to obtain support for this Product.
--
-- 'productId', 'productViewSummary_productId' - The product identifier.
--
-- 'supportDescription', 'productViewSummary_supportDescription' - The description of the support for this Product.
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
    }

-- | The owner of the product. Contact the product administrator for the
-- significance of this value.
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)

-- | The URL information to obtain support for this Product.
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)

-- | Short description of the product.
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)

-- | Indicates whether the product has a default path. If the product does
-- not have a default path, call ListLaunchPaths to disambiguate between
-- paths. Otherwise, ListLaunchPaths is not required, and the output of
-- ProductViewSummary can be used directly with
-- DescribeProvisioningParameters.
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)

-- | The distributor of the product. Contact the product administrator for
-- the significance of this value.
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)

-- | The name of the product.
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)

-- | The product view identifier.
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)

-- | The product type. Contact the product administrator for the significance
-- of this value. If this value is @MARKETPLACE@, the product was created
-- by AWS Marketplace.
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)

-- | The email contact information to obtain support for this Product.
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)

-- | The product identifier.
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)

-- | The description of the support for this Product.
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