{-# 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.WorkSpaces.Types.WorkspaceBundle
-- 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.WorkSpaces.Types.WorkspaceBundle where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.WorkSpaces.Types.ComputeType
import Amazonka.WorkSpaces.Types.RootStorage
import Amazonka.WorkSpaces.Types.UserStorage

-- | Describes a WorkSpace bundle.
--
-- /See:/ 'newWorkspaceBundle' smart constructor.
data WorkspaceBundle = WorkspaceBundle'
  { -- | The time when the bundle was created.
    WorkspaceBundle -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
    -- | The last time that the bundle was updated.
    WorkspaceBundle -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Core.POSIX,
    -- | The identifier of the bundle.
    WorkspaceBundle -> Maybe Text
bundleId :: Prelude.Maybe Prelude.Text,
    -- | The owner of the bundle. This is the account identifier of the owner, or
    -- @AMAZON@ if the bundle is provided by Amazon Web Services.
    WorkspaceBundle -> Maybe Text
owner :: Prelude.Maybe Prelude.Text,
    -- | The size of the root volume.
    WorkspaceBundle -> Maybe RootStorage
rootStorage :: Prelude.Maybe RootStorage,
    -- | The name of the bundle.
    WorkspaceBundle -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the image that was used to create the bundle.
    WorkspaceBundle -> Maybe Text
imageId :: Prelude.Maybe Prelude.Text,
    -- | The compute type of the bundle. For more information, see
    -- <http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles Amazon WorkSpaces Bundles>.
    WorkspaceBundle -> Maybe ComputeType
computeType :: Prelude.Maybe ComputeType,
    -- | The size of the user volume.
    WorkspaceBundle -> Maybe UserStorage
userStorage :: Prelude.Maybe UserStorage,
    -- | The description of the bundle.
    WorkspaceBundle -> Maybe Text
description :: Prelude.Maybe Prelude.Text
  }
  deriving (WorkspaceBundle -> WorkspaceBundle -> Bool
(WorkspaceBundle -> WorkspaceBundle -> Bool)
-> (WorkspaceBundle -> WorkspaceBundle -> Bool)
-> Eq WorkspaceBundle
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WorkspaceBundle -> WorkspaceBundle -> Bool
$c/= :: WorkspaceBundle -> WorkspaceBundle -> Bool
== :: WorkspaceBundle -> WorkspaceBundle -> Bool
$c== :: WorkspaceBundle -> WorkspaceBundle -> Bool
Prelude.Eq, ReadPrec [WorkspaceBundle]
ReadPrec WorkspaceBundle
Int -> ReadS WorkspaceBundle
ReadS [WorkspaceBundle]
(Int -> ReadS WorkspaceBundle)
-> ReadS [WorkspaceBundle]
-> ReadPrec WorkspaceBundle
-> ReadPrec [WorkspaceBundle]
-> Read WorkspaceBundle
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [WorkspaceBundle]
$creadListPrec :: ReadPrec [WorkspaceBundle]
readPrec :: ReadPrec WorkspaceBundle
$creadPrec :: ReadPrec WorkspaceBundle
readList :: ReadS [WorkspaceBundle]
$creadList :: ReadS [WorkspaceBundle]
readsPrec :: Int -> ReadS WorkspaceBundle
$creadsPrec :: Int -> ReadS WorkspaceBundle
Prelude.Read, Int -> WorkspaceBundle -> ShowS
[WorkspaceBundle] -> ShowS
WorkspaceBundle -> String
(Int -> WorkspaceBundle -> ShowS)
-> (WorkspaceBundle -> String)
-> ([WorkspaceBundle] -> ShowS)
-> Show WorkspaceBundle
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [WorkspaceBundle] -> ShowS
$cshowList :: [WorkspaceBundle] -> ShowS
show :: WorkspaceBundle -> String
$cshow :: WorkspaceBundle -> String
showsPrec :: Int -> WorkspaceBundle -> ShowS
$cshowsPrec :: Int -> WorkspaceBundle -> ShowS
Prelude.Show, (forall x. WorkspaceBundle -> Rep WorkspaceBundle x)
-> (forall x. Rep WorkspaceBundle x -> WorkspaceBundle)
-> Generic WorkspaceBundle
forall x. Rep WorkspaceBundle x -> WorkspaceBundle
forall x. WorkspaceBundle -> Rep WorkspaceBundle x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep WorkspaceBundle x -> WorkspaceBundle
$cfrom :: forall x. WorkspaceBundle -> Rep WorkspaceBundle x
Prelude.Generic)

-- |
-- Create a value of 'WorkspaceBundle' 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:
--
-- 'creationTime', 'workspaceBundle_creationTime' - The time when the bundle was created.
--
-- 'lastUpdatedTime', 'workspaceBundle_lastUpdatedTime' - The last time that the bundle was updated.
--
-- 'bundleId', 'workspaceBundle_bundleId' - The identifier of the bundle.
--
-- 'owner', 'workspaceBundle_owner' - The owner of the bundle. This is the account identifier of the owner, or
-- @AMAZON@ if the bundle is provided by Amazon Web Services.
--
-- 'rootStorage', 'workspaceBundle_rootStorage' - The size of the root volume.
--
-- 'name', 'workspaceBundle_name' - The name of the bundle.
--
-- 'imageId', 'workspaceBundle_imageId' - The identifier of the image that was used to create the bundle.
--
-- 'computeType', 'workspaceBundle_computeType' - The compute type of the bundle. For more information, see
-- <http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles Amazon WorkSpaces Bundles>.
--
-- 'userStorage', 'workspaceBundle_userStorage' - The size of the user volume.
--
-- 'description', 'workspaceBundle_description' - The description of the bundle.
newWorkspaceBundle ::
  WorkspaceBundle
newWorkspaceBundle :: WorkspaceBundle
newWorkspaceBundle =
  WorkspaceBundle' :: Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe RootStorage
-> Maybe Text
-> Maybe Text
-> Maybe ComputeType
-> Maybe UserStorage
-> Maybe Text
-> WorkspaceBundle
WorkspaceBundle'
    { $sel:creationTime:WorkspaceBundle' :: Maybe POSIX
creationTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:lastUpdatedTime:WorkspaceBundle' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
      $sel:bundleId:WorkspaceBundle' :: Maybe Text
bundleId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:owner:WorkspaceBundle' :: Maybe Text
owner = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:rootStorage:WorkspaceBundle' :: Maybe RootStorage
rootStorage = Maybe RootStorage
forall a. Maybe a
Prelude.Nothing,
      $sel:name:WorkspaceBundle' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:imageId:WorkspaceBundle' :: Maybe Text
imageId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:computeType:WorkspaceBundle' :: Maybe ComputeType
computeType = Maybe ComputeType
forall a. Maybe a
Prelude.Nothing,
      $sel:userStorage:WorkspaceBundle' :: Maybe UserStorage
userStorage = Maybe UserStorage
forall a. Maybe a
Prelude.Nothing,
      $sel:description:WorkspaceBundle' :: Maybe Text
description = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The time when the bundle was created.
workspaceBundle_creationTime :: Lens.Lens' WorkspaceBundle (Prelude.Maybe Prelude.UTCTime)
workspaceBundle_creationTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> WorkspaceBundle -> f WorkspaceBundle
workspaceBundle_creationTime = (WorkspaceBundle -> Maybe POSIX)
-> (WorkspaceBundle -> Maybe POSIX -> WorkspaceBundle)
-> Lens WorkspaceBundle WorkspaceBundle (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceBundle' {Maybe POSIX
creationTime :: Maybe POSIX
$sel:creationTime:WorkspaceBundle' :: WorkspaceBundle -> Maybe POSIX
creationTime} -> Maybe POSIX
creationTime) (\s :: WorkspaceBundle
s@WorkspaceBundle' {} Maybe POSIX
a -> WorkspaceBundle
s {$sel:creationTime:WorkspaceBundle' :: Maybe POSIX
creationTime = Maybe POSIX
a} :: WorkspaceBundle) ((Maybe POSIX -> f (Maybe POSIX))
 -> WorkspaceBundle -> f WorkspaceBundle)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> WorkspaceBundle
-> f WorkspaceBundle
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The last time that the bundle was updated.
workspaceBundle_lastUpdatedTime :: Lens.Lens' WorkspaceBundle (Prelude.Maybe Prelude.UTCTime)
workspaceBundle_lastUpdatedTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> WorkspaceBundle -> f WorkspaceBundle
workspaceBundle_lastUpdatedTime = (WorkspaceBundle -> Maybe POSIX)
-> (WorkspaceBundle -> Maybe POSIX -> WorkspaceBundle)
-> Lens WorkspaceBundle WorkspaceBundle (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceBundle' {Maybe POSIX
lastUpdatedTime :: Maybe POSIX
$sel:lastUpdatedTime:WorkspaceBundle' :: WorkspaceBundle -> Maybe POSIX
lastUpdatedTime} -> Maybe POSIX
lastUpdatedTime) (\s :: WorkspaceBundle
s@WorkspaceBundle' {} Maybe POSIX
a -> WorkspaceBundle
s {$sel:lastUpdatedTime:WorkspaceBundle' :: Maybe POSIX
lastUpdatedTime = Maybe POSIX
a} :: WorkspaceBundle) ((Maybe POSIX -> f (Maybe POSIX))
 -> WorkspaceBundle -> f WorkspaceBundle)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
    -> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> WorkspaceBundle
-> f WorkspaceBundle
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time

-- | The identifier of the bundle.
workspaceBundle_bundleId :: Lens.Lens' WorkspaceBundle (Prelude.Maybe Prelude.Text)
workspaceBundle_bundleId :: (Maybe Text -> f (Maybe Text))
-> WorkspaceBundle -> f WorkspaceBundle
workspaceBundle_bundleId = (WorkspaceBundle -> Maybe Text)
-> (WorkspaceBundle -> Maybe Text -> WorkspaceBundle)
-> Lens WorkspaceBundle WorkspaceBundle (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceBundle' {Maybe Text
bundleId :: Maybe Text
$sel:bundleId:WorkspaceBundle' :: WorkspaceBundle -> Maybe Text
bundleId} -> Maybe Text
bundleId) (\s :: WorkspaceBundle
s@WorkspaceBundle' {} Maybe Text
a -> WorkspaceBundle
s {$sel:bundleId:WorkspaceBundle' :: Maybe Text
bundleId = Maybe Text
a} :: WorkspaceBundle)

-- | The owner of the bundle. This is the account identifier of the owner, or
-- @AMAZON@ if the bundle is provided by Amazon Web Services.
workspaceBundle_owner :: Lens.Lens' WorkspaceBundle (Prelude.Maybe Prelude.Text)
workspaceBundle_owner :: (Maybe Text -> f (Maybe Text))
-> WorkspaceBundle -> f WorkspaceBundle
workspaceBundle_owner = (WorkspaceBundle -> Maybe Text)
-> (WorkspaceBundle -> Maybe Text -> WorkspaceBundle)
-> Lens WorkspaceBundle WorkspaceBundle (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceBundle' {Maybe Text
owner :: Maybe Text
$sel:owner:WorkspaceBundle' :: WorkspaceBundle -> Maybe Text
owner} -> Maybe Text
owner) (\s :: WorkspaceBundle
s@WorkspaceBundle' {} Maybe Text
a -> WorkspaceBundle
s {$sel:owner:WorkspaceBundle' :: Maybe Text
owner = Maybe Text
a} :: WorkspaceBundle)

-- | The size of the root volume.
workspaceBundle_rootStorage :: Lens.Lens' WorkspaceBundle (Prelude.Maybe RootStorage)
workspaceBundle_rootStorage :: (Maybe RootStorage -> f (Maybe RootStorage))
-> WorkspaceBundle -> f WorkspaceBundle
workspaceBundle_rootStorage = (WorkspaceBundle -> Maybe RootStorage)
-> (WorkspaceBundle -> Maybe RootStorage -> WorkspaceBundle)
-> Lens
     WorkspaceBundle
     WorkspaceBundle
     (Maybe RootStorage)
     (Maybe RootStorage)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceBundle' {Maybe RootStorage
rootStorage :: Maybe RootStorage
$sel:rootStorage:WorkspaceBundle' :: WorkspaceBundle -> Maybe RootStorage
rootStorage} -> Maybe RootStorage
rootStorage) (\s :: WorkspaceBundle
s@WorkspaceBundle' {} Maybe RootStorage
a -> WorkspaceBundle
s {$sel:rootStorage:WorkspaceBundle' :: Maybe RootStorage
rootStorage = Maybe RootStorage
a} :: WorkspaceBundle)

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

-- | The identifier of the image that was used to create the bundle.
workspaceBundle_imageId :: Lens.Lens' WorkspaceBundle (Prelude.Maybe Prelude.Text)
workspaceBundle_imageId :: (Maybe Text -> f (Maybe Text))
-> WorkspaceBundle -> f WorkspaceBundle
workspaceBundle_imageId = (WorkspaceBundle -> Maybe Text)
-> (WorkspaceBundle -> Maybe Text -> WorkspaceBundle)
-> Lens WorkspaceBundle WorkspaceBundle (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceBundle' {Maybe Text
imageId :: Maybe Text
$sel:imageId:WorkspaceBundle' :: WorkspaceBundle -> Maybe Text
imageId} -> Maybe Text
imageId) (\s :: WorkspaceBundle
s@WorkspaceBundle' {} Maybe Text
a -> WorkspaceBundle
s {$sel:imageId:WorkspaceBundle' :: Maybe Text
imageId = Maybe Text
a} :: WorkspaceBundle)

-- | The compute type of the bundle. For more information, see
-- <http://aws.amazon.com/workspaces/details/#Amazon_WorkSpaces_Bundles Amazon WorkSpaces Bundles>.
workspaceBundle_computeType :: Lens.Lens' WorkspaceBundle (Prelude.Maybe ComputeType)
workspaceBundle_computeType :: (Maybe ComputeType -> f (Maybe ComputeType))
-> WorkspaceBundle -> f WorkspaceBundle
workspaceBundle_computeType = (WorkspaceBundle -> Maybe ComputeType)
-> (WorkspaceBundle -> Maybe ComputeType -> WorkspaceBundle)
-> Lens
     WorkspaceBundle
     WorkspaceBundle
     (Maybe ComputeType)
     (Maybe ComputeType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceBundle' {Maybe ComputeType
computeType :: Maybe ComputeType
$sel:computeType:WorkspaceBundle' :: WorkspaceBundle -> Maybe ComputeType
computeType} -> Maybe ComputeType
computeType) (\s :: WorkspaceBundle
s@WorkspaceBundle' {} Maybe ComputeType
a -> WorkspaceBundle
s {$sel:computeType:WorkspaceBundle' :: Maybe ComputeType
computeType = Maybe ComputeType
a} :: WorkspaceBundle)

-- | The size of the user volume.
workspaceBundle_userStorage :: Lens.Lens' WorkspaceBundle (Prelude.Maybe UserStorage)
workspaceBundle_userStorage :: (Maybe UserStorage -> f (Maybe UserStorage))
-> WorkspaceBundle -> f WorkspaceBundle
workspaceBundle_userStorage = (WorkspaceBundle -> Maybe UserStorage)
-> (WorkspaceBundle -> Maybe UserStorage -> WorkspaceBundle)
-> Lens
     WorkspaceBundle
     WorkspaceBundle
     (Maybe UserStorage)
     (Maybe UserStorage)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceBundle' {Maybe UserStorage
userStorage :: Maybe UserStorage
$sel:userStorage:WorkspaceBundle' :: WorkspaceBundle -> Maybe UserStorage
userStorage} -> Maybe UserStorage
userStorage) (\s :: WorkspaceBundle
s@WorkspaceBundle' {} Maybe UserStorage
a -> WorkspaceBundle
s {$sel:userStorage:WorkspaceBundle' :: Maybe UserStorage
userStorage = Maybe UserStorage
a} :: WorkspaceBundle)

-- | The description of the bundle.
workspaceBundle_description :: Lens.Lens' WorkspaceBundle (Prelude.Maybe Prelude.Text)
workspaceBundle_description :: (Maybe Text -> f (Maybe Text))
-> WorkspaceBundle -> f WorkspaceBundle
workspaceBundle_description = (WorkspaceBundle -> Maybe Text)
-> (WorkspaceBundle -> Maybe Text -> WorkspaceBundle)
-> Lens WorkspaceBundle WorkspaceBundle (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\WorkspaceBundle' {Maybe Text
description :: Maybe Text
$sel:description:WorkspaceBundle' :: WorkspaceBundle -> Maybe Text
description} -> Maybe Text
description) (\s :: WorkspaceBundle
s@WorkspaceBundle' {} Maybe Text
a -> WorkspaceBundle
s {$sel:description:WorkspaceBundle' :: Maybe Text
description = Maybe Text
a} :: WorkspaceBundle)

instance Core.FromJSON WorkspaceBundle where
  parseJSON :: Value -> Parser WorkspaceBundle
parseJSON =
    String
-> (Object -> Parser WorkspaceBundle)
-> Value
-> Parser WorkspaceBundle
forall a. String -> (Object -> Parser a) -> Value -> Parser a
Core.withObject
      String
"WorkspaceBundle"
      ( \Object
x ->
          Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe RootStorage
-> Maybe Text
-> Maybe Text
-> Maybe ComputeType
-> Maybe UserStorage
-> Maybe Text
-> WorkspaceBundle
WorkspaceBundle'
            (Maybe POSIX
 -> Maybe POSIX
 -> Maybe Text
 -> Maybe Text
 -> Maybe RootStorage
 -> Maybe Text
 -> Maybe Text
 -> Maybe ComputeType
 -> Maybe UserStorage
 -> Maybe Text
 -> WorkspaceBundle)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe POSIX
      -> Maybe Text
      -> Maybe Text
      -> Maybe RootStorage
      -> Maybe Text
      -> Maybe Text
      -> Maybe ComputeType
      -> Maybe UserStorage
      -> Maybe Text
      -> WorkspaceBundle)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"CreationTime")
            Parser
  (Maybe POSIX
   -> Maybe Text
   -> Maybe Text
   -> Maybe RootStorage
   -> Maybe Text
   -> Maybe Text
   -> Maybe ComputeType
   -> Maybe UserStorage
   -> Maybe Text
   -> WorkspaceBundle)
-> Parser (Maybe POSIX)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe RootStorage
      -> Maybe Text
      -> Maybe Text
      -> Maybe ComputeType
      -> Maybe UserStorage
      -> Maybe Text
      -> WorkspaceBundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"LastUpdatedTime")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe RootStorage
   -> Maybe Text
   -> Maybe Text
   -> Maybe ComputeType
   -> Maybe UserStorage
   -> Maybe Text
   -> WorkspaceBundle)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe RootStorage
      -> Maybe Text
      -> Maybe Text
      -> Maybe ComputeType
      -> Maybe UserStorage
      -> Maybe Text
      -> WorkspaceBundle)
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
"BundleId")
            Parser
  (Maybe Text
   -> Maybe RootStorage
   -> Maybe Text
   -> Maybe Text
   -> Maybe ComputeType
   -> Maybe UserStorage
   -> Maybe Text
   -> WorkspaceBundle)
-> Parser (Maybe Text)
-> Parser
     (Maybe RootStorage
      -> Maybe Text
      -> Maybe Text
      -> Maybe ComputeType
      -> Maybe UserStorage
      -> Maybe Text
      -> WorkspaceBundle)
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 RootStorage
   -> Maybe Text
   -> Maybe Text
   -> Maybe ComputeType
   -> Maybe UserStorage
   -> Maybe Text
   -> WorkspaceBundle)
-> Parser (Maybe RootStorage)
-> Parser
     (Maybe Text
      -> Maybe Text
      -> Maybe ComputeType
      -> Maybe UserStorage
      -> Maybe Text
      -> WorkspaceBundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe RootStorage)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"RootStorage")
            Parser
  (Maybe Text
   -> Maybe Text
   -> Maybe ComputeType
   -> Maybe UserStorage
   -> Maybe Text
   -> WorkspaceBundle)
-> Parser (Maybe Text)
-> Parser
     (Maybe Text
      -> Maybe ComputeType
      -> Maybe UserStorage
      -> Maybe Text
      -> WorkspaceBundle)
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 ComputeType
   -> Maybe UserStorage
   -> Maybe Text
   -> WorkspaceBundle)
-> Parser (Maybe Text)
-> Parser
     (Maybe ComputeType
      -> Maybe UserStorage -> Maybe Text -> WorkspaceBundle)
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
"ImageId")
            Parser
  (Maybe ComputeType
   -> Maybe UserStorage -> Maybe Text -> WorkspaceBundle)
-> Parser (Maybe ComputeType)
-> Parser (Maybe UserStorage -> Maybe Text -> WorkspaceBundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe ComputeType)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"ComputeType")
            Parser (Maybe UserStorage -> Maybe Text -> WorkspaceBundle)
-> Parser (Maybe UserStorage)
-> Parser (Maybe Text -> WorkspaceBundle)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Parser (Maybe UserStorage)
forall a. FromJSON a => Object -> Text -> Parser (Maybe a)
Core..:? Text
"UserStorage")
            Parser (Maybe Text -> WorkspaceBundle)
-> Parser (Maybe Text) -> Parser WorkspaceBundle
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
"Description")
      )

instance Prelude.Hashable WorkspaceBundle

instance Prelude.NFData WorkspaceBundle