{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.WorkSpaces.RegisterWorkspaceDirectory
(
RegisterWorkspaceDirectory (..),
newRegisterWorkspaceDirectory,
registerWorkspaceDirectory_subnetIds,
registerWorkspaceDirectory_enableSelfService,
registerWorkspaceDirectory_tenancy,
registerWorkspaceDirectory_tags,
registerWorkspaceDirectory_directoryId,
registerWorkspaceDirectory_enableWorkDocs,
RegisterWorkspaceDirectoryResponse (..),
newRegisterWorkspaceDirectoryResponse,
registerWorkspaceDirectoryResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.WorkSpaces.Types
data RegisterWorkspaceDirectory = RegisterWorkspaceDirectory'
{
RegisterWorkspaceDirectory -> Maybe [Text]
subnetIds :: Prelude.Maybe [Prelude.Text],
RegisterWorkspaceDirectory -> Maybe Bool
enableSelfService :: Prelude.Maybe Prelude.Bool,
RegisterWorkspaceDirectory -> Maybe Tenancy
tenancy :: Prelude.Maybe Tenancy,
RegisterWorkspaceDirectory -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
RegisterWorkspaceDirectory -> Text
directoryId :: Prelude.Text,
RegisterWorkspaceDirectory -> Bool
enableWorkDocs :: Prelude.Bool
}
deriving (RegisterWorkspaceDirectory -> RegisterWorkspaceDirectory -> Bool
(RegisterWorkspaceDirectory -> RegisterWorkspaceDirectory -> Bool)
-> (RegisterWorkspaceDirectory
-> RegisterWorkspaceDirectory -> Bool)
-> Eq RegisterWorkspaceDirectory
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegisterWorkspaceDirectory -> RegisterWorkspaceDirectory -> Bool
$c/= :: RegisterWorkspaceDirectory -> RegisterWorkspaceDirectory -> Bool
== :: RegisterWorkspaceDirectory -> RegisterWorkspaceDirectory -> Bool
$c== :: RegisterWorkspaceDirectory -> RegisterWorkspaceDirectory -> Bool
Prelude.Eq, ReadPrec [RegisterWorkspaceDirectory]
ReadPrec RegisterWorkspaceDirectory
Int -> ReadS RegisterWorkspaceDirectory
ReadS [RegisterWorkspaceDirectory]
(Int -> ReadS RegisterWorkspaceDirectory)
-> ReadS [RegisterWorkspaceDirectory]
-> ReadPrec RegisterWorkspaceDirectory
-> ReadPrec [RegisterWorkspaceDirectory]
-> Read RegisterWorkspaceDirectory
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RegisterWorkspaceDirectory]
$creadListPrec :: ReadPrec [RegisterWorkspaceDirectory]
readPrec :: ReadPrec RegisterWorkspaceDirectory
$creadPrec :: ReadPrec RegisterWorkspaceDirectory
readList :: ReadS [RegisterWorkspaceDirectory]
$creadList :: ReadS [RegisterWorkspaceDirectory]
readsPrec :: Int -> ReadS RegisterWorkspaceDirectory
$creadsPrec :: Int -> ReadS RegisterWorkspaceDirectory
Prelude.Read, Int -> RegisterWorkspaceDirectory -> ShowS
[RegisterWorkspaceDirectory] -> ShowS
RegisterWorkspaceDirectory -> String
(Int -> RegisterWorkspaceDirectory -> ShowS)
-> (RegisterWorkspaceDirectory -> String)
-> ([RegisterWorkspaceDirectory] -> ShowS)
-> Show RegisterWorkspaceDirectory
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegisterWorkspaceDirectory] -> ShowS
$cshowList :: [RegisterWorkspaceDirectory] -> ShowS
show :: RegisterWorkspaceDirectory -> String
$cshow :: RegisterWorkspaceDirectory -> String
showsPrec :: Int -> RegisterWorkspaceDirectory -> ShowS
$cshowsPrec :: Int -> RegisterWorkspaceDirectory -> ShowS
Prelude.Show, (forall x.
RegisterWorkspaceDirectory -> Rep RegisterWorkspaceDirectory x)
-> (forall x.
Rep RegisterWorkspaceDirectory x -> RegisterWorkspaceDirectory)
-> Generic RegisterWorkspaceDirectory
forall x.
Rep RegisterWorkspaceDirectory x -> RegisterWorkspaceDirectory
forall x.
RegisterWorkspaceDirectory -> Rep RegisterWorkspaceDirectory x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RegisterWorkspaceDirectory x -> RegisterWorkspaceDirectory
$cfrom :: forall x.
RegisterWorkspaceDirectory -> Rep RegisterWorkspaceDirectory x
Prelude.Generic)
newRegisterWorkspaceDirectory ::
Prelude.Text ->
Prelude.Bool ->
RegisterWorkspaceDirectory
newRegisterWorkspaceDirectory :: Text -> Bool -> RegisterWorkspaceDirectory
newRegisterWorkspaceDirectory
Text
pDirectoryId_
Bool
pEnableWorkDocs_ =
RegisterWorkspaceDirectory' :: Maybe [Text]
-> Maybe Bool
-> Maybe Tenancy
-> Maybe [Tag]
-> Text
-> Bool
-> RegisterWorkspaceDirectory
RegisterWorkspaceDirectory'
{ $sel:subnetIds:RegisterWorkspaceDirectory' :: Maybe [Text]
subnetIds =
Maybe [Text]
forall a. Maybe a
Prelude.Nothing,
$sel:enableSelfService:RegisterWorkspaceDirectory' :: Maybe Bool
enableSelfService = Maybe Bool
forall a. Maybe a
Prelude.Nothing,
$sel:tenancy:RegisterWorkspaceDirectory' :: Maybe Tenancy
tenancy = Maybe Tenancy
forall a. Maybe a
Prelude.Nothing,
$sel:tags:RegisterWorkspaceDirectory' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:directoryId:RegisterWorkspaceDirectory' :: Text
directoryId = Text
pDirectoryId_,
$sel:enableWorkDocs:RegisterWorkspaceDirectory' :: Bool
enableWorkDocs = Bool
pEnableWorkDocs_
}
registerWorkspaceDirectory_subnetIds :: Lens.Lens' RegisterWorkspaceDirectory (Prelude.Maybe [Prelude.Text])
registerWorkspaceDirectory_subnetIds :: (Maybe [Text] -> f (Maybe [Text]))
-> RegisterWorkspaceDirectory -> f RegisterWorkspaceDirectory
registerWorkspaceDirectory_subnetIds = (RegisterWorkspaceDirectory -> Maybe [Text])
-> (RegisterWorkspaceDirectory
-> Maybe [Text] -> RegisterWorkspaceDirectory)
-> Lens
RegisterWorkspaceDirectory
RegisterWorkspaceDirectory
(Maybe [Text])
(Maybe [Text])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterWorkspaceDirectory' {Maybe [Text]
subnetIds :: Maybe [Text]
$sel:subnetIds:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Maybe [Text]
subnetIds} -> Maybe [Text]
subnetIds) (\s :: RegisterWorkspaceDirectory
s@RegisterWorkspaceDirectory' {} Maybe [Text]
a -> RegisterWorkspaceDirectory
s {$sel:subnetIds:RegisterWorkspaceDirectory' :: Maybe [Text]
subnetIds = Maybe [Text]
a} :: RegisterWorkspaceDirectory) ((Maybe [Text] -> f (Maybe [Text]))
-> RegisterWorkspaceDirectory -> f RegisterWorkspaceDirectory)
-> ((Maybe [Text] -> f (Maybe [Text]))
-> Maybe [Text] -> f (Maybe [Text]))
-> (Maybe [Text] -> f (Maybe [Text]))
-> RegisterWorkspaceDirectory
-> f RegisterWorkspaceDirectory
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Text] [Text] [Text] [Text]
-> Iso (Maybe [Text]) (Maybe [Text]) (Maybe [Text]) (Maybe [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 [Text] [Text] [Text] [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
registerWorkspaceDirectory_enableSelfService :: Lens.Lens' RegisterWorkspaceDirectory (Prelude.Maybe Prelude.Bool)
registerWorkspaceDirectory_enableSelfService :: (Maybe Bool -> f (Maybe Bool))
-> RegisterWorkspaceDirectory -> f RegisterWorkspaceDirectory
registerWorkspaceDirectory_enableSelfService = (RegisterWorkspaceDirectory -> Maybe Bool)
-> (RegisterWorkspaceDirectory
-> Maybe Bool -> RegisterWorkspaceDirectory)
-> Lens
RegisterWorkspaceDirectory
RegisterWorkspaceDirectory
(Maybe Bool)
(Maybe Bool)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterWorkspaceDirectory' {Maybe Bool
enableSelfService :: Maybe Bool
$sel:enableSelfService:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Maybe Bool
enableSelfService} -> Maybe Bool
enableSelfService) (\s :: RegisterWorkspaceDirectory
s@RegisterWorkspaceDirectory' {} Maybe Bool
a -> RegisterWorkspaceDirectory
s {$sel:enableSelfService:RegisterWorkspaceDirectory' :: Maybe Bool
enableSelfService = Maybe Bool
a} :: RegisterWorkspaceDirectory)
registerWorkspaceDirectory_tenancy :: Lens.Lens' RegisterWorkspaceDirectory (Prelude.Maybe Tenancy)
registerWorkspaceDirectory_tenancy :: (Maybe Tenancy -> f (Maybe Tenancy))
-> RegisterWorkspaceDirectory -> f RegisterWorkspaceDirectory
registerWorkspaceDirectory_tenancy = (RegisterWorkspaceDirectory -> Maybe Tenancy)
-> (RegisterWorkspaceDirectory
-> Maybe Tenancy -> RegisterWorkspaceDirectory)
-> Lens
RegisterWorkspaceDirectory
RegisterWorkspaceDirectory
(Maybe Tenancy)
(Maybe Tenancy)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterWorkspaceDirectory' {Maybe Tenancy
tenancy :: Maybe Tenancy
$sel:tenancy:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Maybe Tenancy
tenancy} -> Maybe Tenancy
tenancy) (\s :: RegisterWorkspaceDirectory
s@RegisterWorkspaceDirectory' {} Maybe Tenancy
a -> RegisterWorkspaceDirectory
s {$sel:tenancy:RegisterWorkspaceDirectory' :: Maybe Tenancy
tenancy = Maybe Tenancy
a} :: RegisterWorkspaceDirectory)
registerWorkspaceDirectory_tags :: Lens.Lens' RegisterWorkspaceDirectory (Prelude.Maybe [Tag])
registerWorkspaceDirectory_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> RegisterWorkspaceDirectory -> f RegisterWorkspaceDirectory
registerWorkspaceDirectory_tags = (RegisterWorkspaceDirectory -> Maybe [Tag])
-> (RegisterWorkspaceDirectory
-> Maybe [Tag] -> RegisterWorkspaceDirectory)
-> Lens
RegisterWorkspaceDirectory
RegisterWorkspaceDirectory
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterWorkspaceDirectory' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: RegisterWorkspaceDirectory
s@RegisterWorkspaceDirectory' {} Maybe [Tag]
a -> RegisterWorkspaceDirectory
s {$sel:tags:RegisterWorkspaceDirectory' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: RegisterWorkspaceDirectory) ((Maybe [Tag] -> f (Maybe [Tag]))
-> RegisterWorkspaceDirectory -> f RegisterWorkspaceDirectory)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> RegisterWorkspaceDirectory
-> f RegisterWorkspaceDirectory
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Tag] [Tag] [Tag] [Tag]
-> Iso (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag]) (Maybe [Tag])
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 [Tag] [Tag] [Tag] [Tag]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
registerWorkspaceDirectory_directoryId :: Lens.Lens' RegisterWorkspaceDirectory Prelude.Text
registerWorkspaceDirectory_directoryId :: (Text -> f Text)
-> RegisterWorkspaceDirectory -> f RegisterWorkspaceDirectory
registerWorkspaceDirectory_directoryId = (RegisterWorkspaceDirectory -> Text)
-> (RegisterWorkspaceDirectory
-> Text -> RegisterWorkspaceDirectory)
-> Lens
RegisterWorkspaceDirectory RegisterWorkspaceDirectory Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterWorkspaceDirectory' {Text
directoryId :: Text
$sel:directoryId:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Text
directoryId} -> Text
directoryId) (\s :: RegisterWorkspaceDirectory
s@RegisterWorkspaceDirectory' {} Text
a -> RegisterWorkspaceDirectory
s {$sel:directoryId:RegisterWorkspaceDirectory' :: Text
directoryId = Text
a} :: RegisterWorkspaceDirectory)
registerWorkspaceDirectory_enableWorkDocs :: Lens.Lens' RegisterWorkspaceDirectory Prelude.Bool
registerWorkspaceDirectory_enableWorkDocs :: (Bool -> f Bool)
-> RegisterWorkspaceDirectory -> f RegisterWorkspaceDirectory
registerWorkspaceDirectory_enableWorkDocs = (RegisterWorkspaceDirectory -> Bool)
-> (RegisterWorkspaceDirectory
-> Bool -> RegisterWorkspaceDirectory)
-> Lens
RegisterWorkspaceDirectory RegisterWorkspaceDirectory Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterWorkspaceDirectory' {Bool
enableWorkDocs :: Bool
$sel:enableWorkDocs:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Bool
enableWorkDocs} -> Bool
enableWorkDocs) (\s :: RegisterWorkspaceDirectory
s@RegisterWorkspaceDirectory' {} Bool
a -> RegisterWorkspaceDirectory
s {$sel:enableWorkDocs:RegisterWorkspaceDirectory' :: Bool
enableWorkDocs = Bool
a} :: RegisterWorkspaceDirectory)
instance Core.AWSRequest RegisterWorkspaceDirectory where
type
AWSResponse RegisterWorkspaceDirectory =
RegisterWorkspaceDirectoryResponse
request :: RegisterWorkspaceDirectory -> Request RegisterWorkspaceDirectory
request = Service
-> RegisterWorkspaceDirectory -> Request RegisterWorkspaceDirectory
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy RegisterWorkspaceDirectory
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse RegisterWorkspaceDirectory)))
response =
(Int
-> ResponseHeaders
-> ()
-> Either String (AWSResponse RegisterWorkspaceDirectory))
-> Logger
-> Service
-> Proxy RegisterWorkspaceDirectory
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse RegisterWorkspaceDirectory)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> () -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveEmpty
( \Int
s ResponseHeaders
h ()
x ->
Int -> RegisterWorkspaceDirectoryResponse
RegisterWorkspaceDirectoryResponse'
(Int -> RegisterWorkspaceDirectoryResponse)
-> Either String Int
-> Either String RegisterWorkspaceDirectoryResponse
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable RegisterWorkspaceDirectory
instance Prelude.NFData RegisterWorkspaceDirectory
instance Core.ToHeaders RegisterWorkspaceDirectory where
toHeaders :: RegisterWorkspaceDirectory -> ResponseHeaders
toHeaders =
ResponseHeaders -> RegisterWorkspaceDirectory -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"WorkspacesService.RegisterWorkspaceDirectory" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Core.ToJSON RegisterWorkspaceDirectory where
toJSON :: RegisterWorkspaceDirectory -> Value
toJSON RegisterWorkspaceDirectory' {Bool
Maybe Bool
Maybe [Text]
Maybe [Tag]
Maybe Tenancy
Text
enableWorkDocs :: Bool
directoryId :: Text
tags :: Maybe [Tag]
tenancy :: Maybe Tenancy
enableSelfService :: Maybe Bool
subnetIds :: Maybe [Text]
$sel:enableWorkDocs:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Bool
$sel:directoryId:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Text
$sel:tags:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Maybe [Tag]
$sel:tenancy:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Maybe Tenancy
$sel:enableSelfService:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Maybe Bool
$sel:subnetIds:RegisterWorkspaceDirectory' :: RegisterWorkspaceDirectory -> Maybe [Text]
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"SubnetIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Text] -> Pair) -> Maybe [Text] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Text]
subnetIds,
(Text
"EnableSelfService" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=)
(Bool -> Pair) -> Maybe Bool -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Bool
enableSelfService,
(Text
"Tenancy" Text -> Tenancy -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Tenancy -> Pair) -> Maybe Tenancy -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Tenancy
tenancy,
(Text
"Tags" Text -> [Tag] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Tag] -> Pair) -> Maybe [Tag] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Tag]
tags,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"DirectoryId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
directoryId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"EnableWorkDocs" Text -> Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Bool
enableWorkDocs)
]
)
instance Core.ToPath RegisterWorkspaceDirectory where
toPath :: RegisterWorkspaceDirectory -> ByteString
toPath = ByteString -> RegisterWorkspaceDirectory -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery RegisterWorkspaceDirectory where
toQuery :: RegisterWorkspaceDirectory -> QueryString
toQuery = QueryString -> RegisterWorkspaceDirectory -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data RegisterWorkspaceDirectoryResponse = RegisterWorkspaceDirectoryResponse'
{
RegisterWorkspaceDirectoryResponse -> Int
httpStatus :: Prelude.Int
}
deriving (RegisterWorkspaceDirectoryResponse
-> RegisterWorkspaceDirectoryResponse -> Bool
(RegisterWorkspaceDirectoryResponse
-> RegisterWorkspaceDirectoryResponse -> Bool)
-> (RegisterWorkspaceDirectoryResponse
-> RegisterWorkspaceDirectoryResponse -> Bool)
-> Eq RegisterWorkspaceDirectoryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RegisterWorkspaceDirectoryResponse
-> RegisterWorkspaceDirectoryResponse -> Bool
$c/= :: RegisterWorkspaceDirectoryResponse
-> RegisterWorkspaceDirectoryResponse -> Bool
== :: RegisterWorkspaceDirectoryResponse
-> RegisterWorkspaceDirectoryResponse -> Bool
$c== :: RegisterWorkspaceDirectoryResponse
-> RegisterWorkspaceDirectoryResponse -> Bool
Prelude.Eq, ReadPrec [RegisterWorkspaceDirectoryResponse]
ReadPrec RegisterWorkspaceDirectoryResponse
Int -> ReadS RegisterWorkspaceDirectoryResponse
ReadS [RegisterWorkspaceDirectoryResponse]
(Int -> ReadS RegisterWorkspaceDirectoryResponse)
-> ReadS [RegisterWorkspaceDirectoryResponse]
-> ReadPrec RegisterWorkspaceDirectoryResponse
-> ReadPrec [RegisterWorkspaceDirectoryResponse]
-> Read RegisterWorkspaceDirectoryResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [RegisterWorkspaceDirectoryResponse]
$creadListPrec :: ReadPrec [RegisterWorkspaceDirectoryResponse]
readPrec :: ReadPrec RegisterWorkspaceDirectoryResponse
$creadPrec :: ReadPrec RegisterWorkspaceDirectoryResponse
readList :: ReadS [RegisterWorkspaceDirectoryResponse]
$creadList :: ReadS [RegisterWorkspaceDirectoryResponse]
readsPrec :: Int -> ReadS RegisterWorkspaceDirectoryResponse
$creadsPrec :: Int -> ReadS RegisterWorkspaceDirectoryResponse
Prelude.Read, Int -> RegisterWorkspaceDirectoryResponse -> ShowS
[RegisterWorkspaceDirectoryResponse] -> ShowS
RegisterWorkspaceDirectoryResponse -> String
(Int -> RegisterWorkspaceDirectoryResponse -> ShowS)
-> (RegisterWorkspaceDirectoryResponse -> String)
-> ([RegisterWorkspaceDirectoryResponse] -> ShowS)
-> Show RegisterWorkspaceDirectoryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RegisterWorkspaceDirectoryResponse] -> ShowS
$cshowList :: [RegisterWorkspaceDirectoryResponse] -> ShowS
show :: RegisterWorkspaceDirectoryResponse -> String
$cshow :: RegisterWorkspaceDirectoryResponse -> String
showsPrec :: Int -> RegisterWorkspaceDirectoryResponse -> ShowS
$cshowsPrec :: Int -> RegisterWorkspaceDirectoryResponse -> ShowS
Prelude.Show, (forall x.
RegisterWorkspaceDirectoryResponse
-> Rep RegisterWorkspaceDirectoryResponse x)
-> (forall x.
Rep RegisterWorkspaceDirectoryResponse x
-> RegisterWorkspaceDirectoryResponse)
-> Generic RegisterWorkspaceDirectoryResponse
forall x.
Rep RegisterWorkspaceDirectoryResponse x
-> RegisterWorkspaceDirectoryResponse
forall x.
RegisterWorkspaceDirectoryResponse
-> Rep RegisterWorkspaceDirectoryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep RegisterWorkspaceDirectoryResponse x
-> RegisterWorkspaceDirectoryResponse
$cfrom :: forall x.
RegisterWorkspaceDirectoryResponse
-> Rep RegisterWorkspaceDirectoryResponse x
Prelude.Generic)
newRegisterWorkspaceDirectoryResponse ::
Prelude.Int ->
RegisterWorkspaceDirectoryResponse
newRegisterWorkspaceDirectoryResponse :: Int -> RegisterWorkspaceDirectoryResponse
newRegisterWorkspaceDirectoryResponse Int
pHttpStatus_ =
RegisterWorkspaceDirectoryResponse' :: Int -> RegisterWorkspaceDirectoryResponse
RegisterWorkspaceDirectoryResponse'
{ $sel:httpStatus:RegisterWorkspaceDirectoryResponse' :: Int
httpStatus =
Int
pHttpStatus_
}
registerWorkspaceDirectoryResponse_httpStatus :: Lens.Lens' RegisterWorkspaceDirectoryResponse Prelude.Int
registerWorkspaceDirectoryResponse_httpStatus :: (Int -> f Int)
-> RegisterWorkspaceDirectoryResponse
-> f RegisterWorkspaceDirectoryResponse
registerWorkspaceDirectoryResponse_httpStatus = (RegisterWorkspaceDirectoryResponse -> Int)
-> (RegisterWorkspaceDirectoryResponse
-> Int -> RegisterWorkspaceDirectoryResponse)
-> Lens
RegisterWorkspaceDirectoryResponse
RegisterWorkspaceDirectoryResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\RegisterWorkspaceDirectoryResponse' {Int
httpStatus :: Int
$sel:httpStatus:RegisterWorkspaceDirectoryResponse' :: RegisterWorkspaceDirectoryResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: RegisterWorkspaceDirectoryResponse
s@RegisterWorkspaceDirectoryResponse' {} Int
a -> RegisterWorkspaceDirectoryResponse
s {$sel:httpStatus:RegisterWorkspaceDirectoryResponse' :: Int
httpStatus = Int
a} :: RegisterWorkspaceDirectoryResponse)
instance
Prelude.NFData
RegisterWorkspaceDirectoryResponse