{-# 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.ImageBuilder.Types.ContainerRecipeSummary
-- 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.ImageBuilder.Types.ContainerRecipeSummary where

import qualified Amazonka.Core as Core
import Amazonka.ImageBuilder.Types.ContainerType
import Amazonka.ImageBuilder.Types.Platform
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude

-- | A summary of a container recipe
--
-- /See:/ 'newContainerRecipeSummary' smart constructor.
data ContainerRecipeSummary = ContainerRecipeSummary'
  { -- | Specifies the type of container, such as \"Docker\".
    ContainerRecipeSummary -> Maybe ContainerType
containerType :: Prelude.Maybe ContainerType,
    -- | The system platform for the container, such as Windows or Linux.
    ContainerRecipeSummary -> Maybe Platform
platform :: Prelude.Maybe Platform,
    -- | The Amazon Resource Name (ARN) of the container recipe.
    ContainerRecipeSummary -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
    -- | The base image for the container recipe.
    ContainerRecipeSummary -> Maybe Text
parentImage :: Prelude.Maybe Prelude.Text,
    -- | The owner of the container recipe.
    ContainerRecipeSummary -> Maybe Text
owner :: Prelude.Maybe Prelude.Text,
    -- | The date when this container recipe was created.
    ContainerRecipeSummary -> Maybe Text
dateCreated :: Prelude.Maybe Prelude.Text,
    -- | The name of the container recipe.
    ContainerRecipeSummary -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | Tags that are attached to the container recipe.
    ContainerRecipeSummary -> Maybe (HashMap Text Text)
tags :: Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text)
  }
  deriving (ContainerRecipeSummary -> ContainerRecipeSummary -> Bool
(ContainerRecipeSummary -> ContainerRecipeSummary -> Bool)
-> (ContainerRecipeSummary -> ContainerRecipeSummary -> Bool)
-> Eq ContainerRecipeSummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ContainerRecipeSummary -> ContainerRecipeSummary -> Bool
$c/= :: ContainerRecipeSummary -> ContainerRecipeSummary -> Bool
== :: ContainerRecipeSummary -> ContainerRecipeSummary -> Bool
$c== :: ContainerRecipeSummary -> ContainerRecipeSummary -> Bool
Prelude.Eq, ReadPrec [ContainerRecipeSummary]
ReadPrec ContainerRecipeSummary
Int -> ReadS ContainerRecipeSummary
ReadS [ContainerRecipeSummary]
(Int -> ReadS ContainerRecipeSummary)
-> ReadS [ContainerRecipeSummary]
-> ReadPrec ContainerRecipeSummary
-> ReadPrec [ContainerRecipeSummary]
-> Read ContainerRecipeSummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ContainerRecipeSummary]
$creadListPrec :: ReadPrec [ContainerRecipeSummary]
readPrec :: ReadPrec ContainerRecipeSummary
$creadPrec :: ReadPrec ContainerRecipeSummary
readList :: ReadS [ContainerRecipeSummary]
$creadList :: ReadS [ContainerRecipeSummary]
readsPrec :: Int -> ReadS ContainerRecipeSummary
$creadsPrec :: Int -> ReadS ContainerRecipeSummary
Prelude.Read, Int -> ContainerRecipeSummary -> ShowS
[ContainerRecipeSummary] -> ShowS
ContainerRecipeSummary -> String
(Int -> ContainerRecipeSummary -> ShowS)
-> (ContainerRecipeSummary -> String)
-> ([ContainerRecipeSummary] -> ShowS)
-> Show ContainerRecipeSummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ContainerRecipeSummary] -> ShowS
$cshowList :: [ContainerRecipeSummary] -> ShowS
show :: ContainerRecipeSummary -> String
$cshow :: ContainerRecipeSummary -> String
showsPrec :: Int -> ContainerRecipeSummary -> ShowS
$cshowsPrec :: Int -> ContainerRecipeSummary -> ShowS
Prelude.Show, (forall x. ContainerRecipeSummary -> Rep ContainerRecipeSummary x)
-> (forall x.
    Rep ContainerRecipeSummary x -> ContainerRecipeSummary)
-> Generic ContainerRecipeSummary
forall x. Rep ContainerRecipeSummary x -> ContainerRecipeSummary
forall x. ContainerRecipeSummary -> Rep ContainerRecipeSummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ContainerRecipeSummary x -> ContainerRecipeSummary
$cfrom :: forall x. ContainerRecipeSummary -> Rep ContainerRecipeSummary x
Prelude.Generic)

-- |
-- Create a value of 'ContainerRecipeSummary' 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:
--
-- 'containerType', 'containerRecipeSummary_containerType' - Specifies the type of container, such as \"Docker\".
--
-- 'platform', 'containerRecipeSummary_platform' - The system platform for the container, such as Windows or Linux.
--
-- 'arn', 'containerRecipeSummary_arn' - The Amazon Resource Name (ARN) of the container recipe.
--
-- 'parentImage', 'containerRecipeSummary_parentImage' - The base image for the container recipe.
--
-- 'owner', 'containerRecipeSummary_owner' - The owner of the container recipe.
--
-- 'dateCreated', 'containerRecipeSummary_dateCreated' - The date when this container recipe was created.
--
-- 'name', 'containerRecipeSummary_name' - The name of the container recipe.
--
-- 'tags', 'containerRecipeSummary_tags' - Tags that are attached to the container recipe.
newContainerRecipeSummary ::
  ContainerRecipeSummary
newContainerRecipeSummary :: ContainerRecipeSummary
newContainerRecipeSummary =
  ContainerRecipeSummary' :: Maybe ContainerType
-> Maybe Platform
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> ContainerRecipeSummary
ContainerRecipeSummary'
    { $sel:containerType:ContainerRecipeSummary' :: Maybe ContainerType
containerType =
        Maybe ContainerType
forall a. Maybe a
Prelude.Nothing,
      $sel:platform:ContainerRecipeSummary' :: Maybe Platform
platform = Maybe Platform
forall a. Maybe a
Prelude.Nothing,
      $sel:arn:ContainerRecipeSummary' :: Maybe Text
arn = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:parentImage:ContainerRecipeSummary' :: Maybe Text
parentImage = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:owner:ContainerRecipeSummary' :: Maybe Text
owner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:dateCreated:ContainerRecipeSummary' :: Maybe Text
dateCreated = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:name:ContainerRecipeSummary' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:tags:ContainerRecipeSummary' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
forall a. Maybe a
Prelude.Nothing
    }

-- | Specifies the type of container, such as \"Docker\".
containerRecipeSummary_containerType :: Lens.Lens' ContainerRecipeSummary (Prelude.Maybe ContainerType)
containerRecipeSummary_containerType :: (Maybe ContainerType -> f (Maybe ContainerType))
-> ContainerRecipeSummary -> f ContainerRecipeSummary
containerRecipeSummary_containerType = (ContainerRecipeSummary -> Maybe ContainerType)
-> (ContainerRecipeSummary
    -> Maybe ContainerType -> ContainerRecipeSummary)
-> Lens
     ContainerRecipeSummary
     ContainerRecipeSummary
     (Maybe ContainerType)
     (Maybe ContainerType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerRecipeSummary' {Maybe ContainerType
containerType :: Maybe ContainerType
$sel:containerType:ContainerRecipeSummary' :: ContainerRecipeSummary -> Maybe ContainerType
containerType} -> Maybe ContainerType
containerType) (\s :: ContainerRecipeSummary
s@ContainerRecipeSummary' {} Maybe ContainerType
a -> ContainerRecipeSummary
s {$sel:containerType:ContainerRecipeSummary' :: Maybe ContainerType
containerType = Maybe ContainerType
a} :: ContainerRecipeSummary)

-- | The system platform for the container, such as Windows or Linux.
containerRecipeSummary_platform :: Lens.Lens' ContainerRecipeSummary (Prelude.Maybe Platform)
containerRecipeSummary_platform :: (Maybe Platform -> f (Maybe Platform))
-> ContainerRecipeSummary -> f ContainerRecipeSummary
containerRecipeSummary_platform = (ContainerRecipeSummary -> Maybe Platform)
-> (ContainerRecipeSummary
    -> Maybe Platform -> ContainerRecipeSummary)
-> Lens
     ContainerRecipeSummary
     ContainerRecipeSummary
     (Maybe Platform)
     (Maybe Platform)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerRecipeSummary' {Maybe Platform
platform :: Maybe Platform
$sel:platform:ContainerRecipeSummary' :: ContainerRecipeSummary -> Maybe Platform
platform} -> Maybe Platform
platform) (\s :: ContainerRecipeSummary
s@ContainerRecipeSummary' {} Maybe Platform
a -> ContainerRecipeSummary
s {$sel:platform:ContainerRecipeSummary' :: Maybe Platform
platform = Maybe Platform
a} :: ContainerRecipeSummary)

-- | The Amazon Resource Name (ARN) of the container recipe.
containerRecipeSummary_arn :: Lens.Lens' ContainerRecipeSummary (Prelude.Maybe Prelude.Text)
containerRecipeSummary_arn :: (Maybe Text -> f (Maybe Text))
-> ContainerRecipeSummary -> f ContainerRecipeSummary
containerRecipeSummary_arn = (ContainerRecipeSummary -> Maybe Text)
-> (ContainerRecipeSummary -> Maybe Text -> ContainerRecipeSummary)
-> Lens
     ContainerRecipeSummary
     ContainerRecipeSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerRecipeSummary' {Maybe Text
arn :: Maybe Text
$sel:arn:ContainerRecipeSummary' :: ContainerRecipeSummary -> Maybe Text
arn} -> Maybe Text
arn) (\s :: ContainerRecipeSummary
s@ContainerRecipeSummary' {} Maybe Text
a -> ContainerRecipeSummary
s {$sel:arn:ContainerRecipeSummary' :: Maybe Text
arn = Maybe Text
a} :: ContainerRecipeSummary)

-- | The base image for the container recipe.
containerRecipeSummary_parentImage :: Lens.Lens' ContainerRecipeSummary (Prelude.Maybe Prelude.Text)
containerRecipeSummary_parentImage :: (Maybe Text -> f (Maybe Text))
-> ContainerRecipeSummary -> f ContainerRecipeSummary
containerRecipeSummary_parentImage = (ContainerRecipeSummary -> Maybe Text)
-> (ContainerRecipeSummary -> Maybe Text -> ContainerRecipeSummary)
-> Lens
     ContainerRecipeSummary
     ContainerRecipeSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerRecipeSummary' {Maybe Text
parentImage :: Maybe Text
$sel:parentImage:ContainerRecipeSummary' :: ContainerRecipeSummary -> Maybe Text
parentImage} -> Maybe Text
parentImage) (\s :: ContainerRecipeSummary
s@ContainerRecipeSummary' {} Maybe Text
a -> ContainerRecipeSummary
s {$sel:parentImage:ContainerRecipeSummary' :: Maybe Text
parentImage = Maybe Text
a} :: ContainerRecipeSummary)

-- | The owner of the container recipe.
containerRecipeSummary_owner :: Lens.Lens' ContainerRecipeSummary (Prelude.Maybe Prelude.Text)
containerRecipeSummary_owner :: (Maybe Text -> f (Maybe Text))
-> ContainerRecipeSummary -> f ContainerRecipeSummary
containerRecipeSummary_owner = (ContainerRecipeSummary -> Maybe Text)
-> (ContainerRecipeSummary -> Maybe Text -> ContainerRecipeSummary)
-> Lens
     ContainerRecipeSummary
     ContainerRecipeSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerRecipeSummary' {Maybe Text
owner :: Maybe Text
$sel:owner:ContainerRecipeSummary' :: ContainerRecipeSummary -> Maybe Text
owner} -> Maybe Text
owner) (\s :: ContainerRecipeSummary
s@ContainerRecipeSummary' {} Maybe Text
a -> ContainerRecipeSummary
s {$sel:owner:ContainerRecipeSummary' :: Maybe Text
owner = Maybe Text
a} :: ContainerRecipeSummary)

-- | The date when this container recipe was created.
containerRecipeSummary_dateCreated :: Lens.Lens' ContainerRecipeSummary (Prelude.Maybe Prelude.Text)
containerRecipeSummary_dateCreated :: (Maybe Text -> f (Maybe Text))
-> ContainerRecipeSummary -> f ContainerRecipeSummary
containerRecipeSummary_dateCreated = (ContainerRecipeSummary -> Maybe Text)
-> (ContainerRecipeSummary -> Maybe Text -> ContainerRecipeSummary)
-> Lens
     ContainerRecipeSummary
     ContainerRecipeSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerRecipeSummary' {Maybe Text
dateCreated :: Maybe Text
$sel:dateCreated:ContainerRecipeSummary' :: ContainerRecipeSummary -> Maybe Text
dateCreated} -> Maybe Text
dateCreated) (\s :: ContainerRecipeSummary
s@ContainerRecipeSummary' {} Maybe Text
a -> ContainerRecipeSummary
s {$sel:dateCreated:ContainerRecipeSummary' :: Maybe Text
dateCreated = Maybe Text
a} :: ContainerRecipeSummary)

-- | The name of the container recipe.
containerRecipeSummary_name :: Lens.Lens' ContainerRecipeSummary (Prelude.Maybe Prelude.Text)
containerRecipeSummary_name :: (Maybe Text -> f (Maybe Text))
-> ContainerRecipeSummary -> f ContainerRecipeSummary
containerRecipeSummary_name = (ContainerRecipeSummary -> Maybe Text)
-> (ContainerRecipeSummary -> Maybe Text -> ContainerRecipeSummary)
-> Lens
     ContainerRecipeSummary
     ContainerRecipeSummary
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerRecipeSummary' {Maybe Text
name :: Maybe Text
$sel:name:ContainerRecipeSummary' :: ContainerRecipeSummary -> Maybe Text
name} -> Maybe Text
name) (\s :: ContainerRecipeSummary
s@ContainerRecipeSummary' {} Maybe Text
a -> ContainerRecipeSummary
s {$sel:name:ContainerRecipeSummary' :: Maybe Text
name = Maybe Text
a} :: ContainerRecipeSummary)

-- | Tags that are attached to the container recipe.
containerRecipeSummary_tags :: Lens.Lens' ContainerRecipeSummary (Prelude.Maybe (Prelude.HashMap Prelude.Text Prelude.Text))
containerRecipeSummary_tags :: (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ContainerRecipeSummary -> f ContainerRecipeSummary
containerRecipeSummary_tags = (ContainerRecipeSummary -> Maybe (HashMap Text Text))
-> (ContainerRecipeSummary
    -> Maybe (HashMap Text Text) -> ContainerRecipeSummary)
-> Lens
     ContainerRecipeSummary
     ContainerRecipeSummary
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ContainerRecipeSummary' {Maybe (HashMap Text Text)
tags :: Maybe (HashMap Text Text)
$sel:tags:ContainerRecipeSummary' :: ContainerRecipeSummary -> Maybe (HashMap Text Text)
tags} -> Maybe (HashMap Text Text)
tags) (\s :: ContainerRecipeSummary
s@ContainerRecipeSummary' {} Maybe (HashMap Text Text)
a -> ContainerRecipeSummary
s {$sel:tags:ContainerRecipeSummary' :: Maybe (HashMap Text Text)
tags = Maybe (HashMap Text Text)
a} :: ContainerRecipeSummary) ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
 -> ContainerRecipeSummary -> f ContainerRecipeSummary)
-> ((Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
    -> Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> (Maybe (HashMap Text Text) -> f (Maybe (HashMap Text Text)))
-> ContainerRecipeSummary
-> f ContainerRecipeSummary
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
-> Iso
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
     (Maybe (HashMap Text Text))
forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping AnIso
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
  (HashMap Text Text)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Core.FromJSON ContainerRecipeSummary where
  parseJSON :: Value -> Parser ContainerRecipeSummary
parseJSON =
    String
-> (Object -> Parser ContainerRecipeSummary)
-> Value
-> Parser ContainerRecipeSummary
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"ContainerRecipeSummary"
      ( \Object
x ->
          Maybe ContainerType
-> Maybe Platform
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe (HashMap Text Text)
-> ContainerRecipeSummary
ContainerRecipeSummary'
            (Maybe ContainerType
 -> Maybe Platform
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe Text
 -> Maybe (HashMap Text Text)
 -> ContainerRecipeSummary)
-> Parser (Maybe ContainerType)
-> Parser
     (Maybe Platform
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> ContainerRecipeSummary)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe ContainerType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"containerType")
            Parser
  (Maybe Platform
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> ContainerRecipeSummary)
-> Parser (Maybe Platform)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> ContainerRecipeSummary)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe Platform)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"platform")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> ContainerRecipeSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> ContainerRecipeSummary)
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
"arn")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> ContainerRecipeSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> ContainerRecipeSummary)
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
"parentImage")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> ContainerRecipeSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe (HashMap Text Text)
      -> ContainerRecipeSummary)
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
"owner")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe (HashMap Text Text)
   -> ContainerRecipeSummary)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text -> Maybe (HashMap Text Text) -> ContainerRecipeSummary)
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
"dateCreated")
            Parser
  (Maybe Text -> Maybe (HashMap Text Text) -> ContainerRecipeSummary)
-> Parser (Maybe Text)
-> Parser (Maybe (HashMap Text Text) -> ContainerRecipeSummary)
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 (HashMap Text Text) -> ContainerRecipeSummary)
-> Parser (Maybe (HashMap Text Text))
-> Parser ContainerRecipeSummary
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe (Maybe (HashMap Text Text)))
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"tags" Parser (Maybe (Maybe (HashMap Text Text)))
-> Maybe (HashMap Text Text) -> Parser (Maybe (HashMap Text Text))
forall a. Parser (Maybe a) -> a -> Parser a
Core..!= Maybe (HashMap Text Text)
forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable ContainerRecipeSummary

instance Prelude.NFData ContainerRecipeSummary