{-# 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.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
data WorkspaceBundle = WorkspaceBundle'
{
WorkspaceBundle -> Maybe POSIX
creationTime :: Prelude.Maybe Core.POSIX,
WorkspaceBundle -> Maybe POSIX
lastUpdatedTime :: Prelude.Maybe Core.POSIX,
WorkspaceBundle -> Maybe Text
bundleId :: Prelude.Maybe Prelude.Text,
WorkspaceBundle -> Maybe Text
owner :: Prelude.Maybe Prelude.Text,
WorkspaceBundle -> Maybe RootStorage
rootStorage :: Prelude.Maybe RootStorage,
WorkspaceBundle -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
WorkspaceBundle -> Maybe Text
imageId :: Prelude.Maybe Prelude.Text,
WorkspaceBundle -> Maybe ComputeType
computeType :: Prelude.Maybe ComputeType,
WorkspaceBundle -> Maybe UserStorage
userStorage :: Prelude.Maybe UserStorage,
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)
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
}
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
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
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)
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)
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)
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)
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)
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)
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)
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