{-# 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.ImportWorkspaceImage
(
ImportWorkspaceImage (..),
newImportWorkspaceImage,
importWorkspaceImage_applications,
importWorkspaceImage_tags,
importWorkspaceImage_ec2ImageId,
importWorkspaceImage_ingestionProcess,
importWorkspaceImage_imageName,
importWorkspaceImage_imageDescription,
ImportWorkspaceImageResponse (..),
newImportWorkspaceImageResponse,
importWorkspaceImageResponse_imageId,
importWorkspaceImageResponse_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 ImportWorkspaceImage = ImportWorkspaceImage'
{
ImportWorkspaceImage -> Maybe (NonEmpty Application)
applications :: Prelude.Maybe (Prelude.NonEmpty Application),
ImportWorkspaceImage -> Maybe [Tag]
tags :: Prelude.Maybe [Tag],
ImportWorkspaceImage -> Text
ec2ImageId :: Prelude.Text,
ImportWorkspaceImage -> WorkspaceImageIngestionProcess
ingestionProcess :: WorkspaceImageIngestionProcess,
ImportWorkspaceImage -> Text
imageName :: Prelude.Text,
ImportWorkspaceImage -> Text
imageDescription :: Prelude.Text
}
deriving (ImportWorkspaceImage -> ImportWorkspaceImage -> Bool
(ImportWorkspaceImage -> ImportWorkspaceImage -> Bool)
-> (ImportWorkspaceImage -> ImportWorkspaceImage -> Bool)
-> Eq ImportWorkspaceImage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportWorkspaceImage -> ImportWorkspaceImage -> Bool
$c/= :: ImportWorkspaceImage -> ImportWorkspaceImage -> Bool
== :: ImportWorkspaceImage -> ImportWorkspaceImage -> Bool
$c== :: ImportWorkspaceImage -> ImportWorkspaceImage -> Bool
Prelude.Eq, ReadPrec [ImportWorkspaceImage]
ReadPrec ImportWorkspaceImage
Int -> ReadS ImportWorkspaceImage
ReadS [ImportWorkspaceImage]
(Int -> ReadS ImportWorkspaceImage)
-> ReadS [ImportWorkspaceImage]
-> ReadPrec ImportWorkspaceImage
-> ReadPrec [ImportWorkspaceImage]
-> Read ImportWorkspaceImage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportWorkspaceImage]
$creadListPrec :: ReadPrec [ImportWorkspaceImage]
readPrec :: ReadPrec ImportWorkspaceImage
$creadPrec :: ReadPrec ImportWorkspaceImage
readList :: ReadS [ImportWorkspaceImage]
$creadList :: ReadS [ImportWorkspaceImage]
readsPrec :: Int -> ReadS ImportWorkspaceImage
$creadsPrec :: Int -> ReadS ImportWorkspaceImage
Prelude.Read, Int -> ImportWorkspaceImage -> ShowS
[ImportWorkspaceImage] -> ShowS
ImportWorkspaceImage -> String
(Int -> ImportWorkspaceImage -> ShowS)
-> (ImportWorkspaceImage -> String)
-> ([ImportWorkspaceImage] -> ShowS)
-> Show ImportWorkspaceImage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportWorkspaceImage] -> ShowS
$cshowList :: [ImportWorkspaceImage] -> ShowS
show :: ImportWorkspaceImage -> String
$cshow :: ImportWorkspaceImage -> String
showsPrec :: Int -> ImportWorkspaceImage -> ShowS
$cshowsPrec :: Int -> ImportWorkspaceImage -> ShowS
Prelude.Show, (forall x. ImportWorkspaceImage -> Rep ImportWorkspaceImage x)
-> (forall x. Rep ImportWorkspaceImage x -> ImportWorkspaceImage)
-> Generic ImportWorkspaceImage
forall x. Rep ImportWorkspaceImage x -> ImportWorkspaceImage
forall x. ImportWorkspaceImage -> Rep ImportWorkspaceImage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ImportWorkspaceImage x -> ImportWorkspaceImage
$cfrom :: forall x. ImportWorkspaceImage -> Rep ImportWorkspaceImage x
Prelude.Generic)
newImportWorkspaceImage ::
Prelude.Text ->
WorkspaceImageIngestionProcess ->
Prelude.Text ->
Prelude.Text ->
ImportWorkspaceImage
newImportWorkspaceImage :: Text
-> WorkspaceImageIngestionProcess
-> Text
-> Text
-> ImportWorkspaceImage
newImportWorkspaceImage
Text
pEc2ImageId_
WorkspaceImageIngestionProcess
pIngestionProcess_
Text
pImageName_
Text
pImageDescription_ =
ImportWorkspaceImage' :: Maybe (NonEmpty Application)
-> Maybe [Tag]
-> Text
-> WorkspaceImageIngestionProcess
-> Text
-> Text
-> ImportWorkspaceImage
ImportWorkspaceImage'
{ $sel:applications:ImportWorkspaceImage' :: Maybe (NonEmpty Application)
applications =
Maybe (NonEmpty Application)
forall a. Maybe a
Prelude.Nothing,
$sel:tags:ImportWorkspaceImage' :: Maybe [Tag]
tags = Maybe [Tag]
forall a. Maybe a
Prelude.Nothing,
$sel:ec2ImageId:ImportWorkspaceImage' :: Text
ec2ImageId = Text
pEc2ImageId_,
$sel:ingestionProcess:ImportWorkspaceImage' :: WorkspaceImageIngestionProcess
ingestionProcess = WorkspaceImageIngestionProcess
pIngestionProcess_,
$sel:imageName:ImportWorkspaceImage' :: Text
imageName = Text
pImageName_,
$sel:imageDescription:ImportWorkspaceImage' :: Text
imageDescription = Text
pImageDescription_
}
importWorkspaceImage_applications :: Lens.Lens' ImportWorkspaceImage (Prelude.Maybe (Prelude.NonEmpty Application))
importWorkspaceImage_applications :: (Maybe (NonEmpty Application) -> f (Maybe (NonEmpty Application)))
-> ImportWorkspaceImage -> f ImportWorkspaceImage
importWorkspaceImage_applications = (ImportWorkspaceImage -> Maybe (NonEmpty Application))
-> (ImportWorkspaceImage
-> Maybe (NonEmpty Application) -> ImportWorkspaceImage)
-> Lens
ImportWorkspaceImage
ImportWorkspaceImage
(Maybe (NonEmpty Application))
(Maybe (NonEmpty Application))
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportWorkspaceImage' {Maybe (NonEmpty Application)
applications :: Maybe (NonEmpty Application)
$sel:applications:ImportWorkspaceImage' :: ImportWorkspaceImage -> Maybe (NonEmpty Application)
applications} -> Maybe (NonEmpty Application)
applications) (\s :: ImportWorkspaceImage
s@ImportWorkspaceImage' {} Maybe (NonEmpty Application)
a -> ImportWorkspaceImage
s {$sel:applications:ImportWorkspaceImage' :: Maybe (NonEmpty Application)
applications = Maybe (NonEmpty Application)
a} :: ImportWorkspaceImage) ((Maybe (NonEmpty Application) -> f (Maybe (NonEmpty Application)))
-> ImportWorkspaceImage -> f ImportWorkspaceImage)
-> ((Maybe (NonEmpty Application)
-> f (Maybe (NonEmpty Application)))
-> Maybe (NonEmpty Application)
-> f (Maybe (NonEmpty Application)))
-> (Maybe (NonEmpty Application)
-> f (Maybe (NonEmpty Application)))
-> ImportWorkspaceImage
-> f ImportWorkspaceImage
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
(NonEmpty Application)
(NonEmpty Application)
(NonEmpty Application)
(NonEmpty Application)
-> Iso
(Maybe (NonEmpty Application))
(Maybe (NonEmpty Application))
(Maybe (NonEmpty Application))
(Maybe (NonEmpty Application))
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
(NonEmpty Application)
(NonEmpty Application)
(NonEmpty Application)
(NonEmpty Application)
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
importWorkspaceImage_tags :: Lens.Lens' ImportWorkspaceImage (Prelude.Maybe [Tag])
importWorkspaceImage_tags :: (Maybe [Tag] -> f (Maybe [Tag]))
-> ImportWorkspaceImage -> f ImportWorkspaceImage
importWorkspaceImage_tags = (ImportWorkspaceImage -> Maybe [Tag])
-> (ImportWorkspaceImage -> Maybe [Tag] -> ImportWorkspaceImage)
-> Lens
ImportWorkspaceImage
ImportWorkspaceImage
(Maybe [Tag])
(Maybe [Tag])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportWorkspaceImage' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:ImportWorkspaceImage' :: ImportWorkspaceImage -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: ImportWorkspaceImage
s@ImportWorkspaceImage' {} Maybe [Tag]
a -> ImportWorkspaceImage
s {$sel:tags:ImportWorkspaceImage' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: ImportWorkspaceImage) ((Maybe [Tag] -> f (Maybe [Tag]))
-> ImportWorkspaceImage -> f ImportWorkspaceImage)
-> ((Maybe [Tag] -> f (Maybe [Tag]))
-> Maybe [Tag] -> f (Maybe [Tag]))
-> (Maybe [Tag] -> f (Maybe [Tag]))
-> ImportWorkspaceImage
-> f ImportWorkspaceImage
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
importWorkspaceImage_ec2ImageId :: Lens.Lens' ImportWorkspaceImage Prelude.Text
importWorkspaceImage_ec2ImageId :: (Text -> f Text) -> ImportWorkspaceImage -> f ImportWorkspaceImage
importWorkspaceImage_ec2ImageId = (ImportWorkspaceImage -> Text)
-> (ImportWorkspaceImage -> Text -> ImportWorkspaceImage)
-> Lens ImportWorkspaceImage ImportWorkspaceImage Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportWorkspaceImage' {Text
ec2ImageId :: Text
$sel:ec2ImageId:ImportWorkspaceImage' :: ImportWorkspaceImage -> Text
ec2ImageId} -> Text
ec2ImageId) (\s :: ImportWorkspaceImage
s@ImportWorkspaceImage' {} Text
a -> ImportWorkspaceImage
s {$sel:ec2ImageId:ImportWorkspaceImage' :: Text
ec2ImageId = Text
a} :: ImportWorkspaceImage)
importWorkspaceImage_ingestionProcess :: Lens.Lens' ImportWorkspaceImage WorkspaceImageIngestionProcess
importWorkspaceImage_ingestionProcess :: (WorkspaceImageIngestionProcess
-> f WorkspaceImageIngestionProcess)
-> ImportWorkspaceImage -> f ImportWorkspaceImage
importWorkspaceImage_ingestionProcess = (ImportWorkspaceImage -> WorkspaceImageIngestionProcess)
-> (ImportWorkspaceImage
-> WorkspaceImageIngestionProcess -> ImportWorkspaceImage)
-> Lens
ImportWorkspaceImage
ImportWorkspaceImage
WorkspaceImageIngestionProcess
WorkspaceImageIngestionProcess
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportWorkspaceImage' {WorkspaceImageIngestionProcess
ingestionProcess :: WorkspaceImageIngestionProcess
$sel:ingestionProcess:ImportWorkspaceImage' :: ImportWorkspaceImage -> WorkspaceImageIngestionProcess
ingestionProcess} -> WorkspaceImageIngestionProcess
ingestionProcess) (\s :: ImportWorkspaceImage
s@ImportWorkspaceImage' {} WorkspaceImageIngestionProcess
a -> ImportWorkspaceImage
s {$sel:ingestionProcess:ImportWorkspaceImage' :: WorkspaceImageIngestionProcess
ingestionProcess = WorkspaceImageIngestionProcess
a} :: ImportWorkspaceImage)
importWorkspaceImage_imageName :: Lens.Lens' ImportWorkspaceImage Prelude.Text
importWorkspaceImage_imageName :: (Text -> f Text) -> ImportWorkspaceImage -> f ImportWorkspaceImage
importWorkspaceImage_imageName = (ImportWorkspaceImage -> Text)
-> (ImportWorkspaceImage -> Text -> ImportWorkspaceImage)
-> Lens ImportWorkspaceImage ImportWorkspaceImage Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportWorkspaceImage' {Text
imageName :: Text
$sel:imageName:ImportWorkspaceImage' :: ImportWorkspaceImage -> Text
imageName} -> Text
imageName) (\s :: ImportWorkspaceImage
s@ImportWorkspaceImage' {} Text
a -> ImportWorkspaceImage
s {$sel:imageName:ImportWorkspaceImage' :: Text
imageName = Text
a} :: ImportWorkspaceImage)
importWorkspaceImage_imageDescription :: Lens.Lens' ImportWorkspaceImage Prelude.Text
importWorkspaceImage_imageDescription :: (Text -> f Text) -> ImportWorkspaceImage -> f ImportWorkspaceImage
importWorkspaceImage_imageDescription = (ImportWorkspaceImage -> Text)
-> (ImportWorkspaceImage -> Text -> ImportWorkspaceImage)
-> Lens ImportWorkspaceImage ImportWorkspaceImage Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportWorkspaceImage' {Text
imageDescription :: Text
$sel:imageDescription:ImportWorkspaceImage' :: ImportWorkspaceImage -> Text
imageDescription} -> Text
imageDescription) (\s :: ImportWorkspaceImage
s@ImportWorkspaceImage' {} Text
a -> ImportWorkspaceImage
s {$sel:imageDescription:ImportWorkspaceImage' :: Text
imageDescription = Text
a} :: ImportWorkspaceImage)
instance Core.AWSRequest ImportWorkspaceImage where
type
AWSResponse ImportWorkspaceImage =
ImportWorkspaceImageResponse
request :: ImportWorkspaceImage -> Request ImportWorkspaceImage
request = Service -> ImportWorkspaceImage -> Request ImportWorkspaceImage
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ImportWorkspaceImage
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ImportWorkspaceImage)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ImportWorkspaceImage))
-> Logger
-> Service
-> Proxy ImportWorkspaceImage
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ImportWorkspaceImage)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text -> Int -> ImportWorkspaceImageResponse
ImportWorkspaceImageResponse'
(Maybe Text -> Int -> ImportWorkspaceImageResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ImportWorkspaceImageResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ImageId")
Either String (Int -> ImportWorkspaceImageResponse)
-> Either String Int -> Either String ImportWorkspaceImageResponse
forall (f :: * -> *) a b. Applicative f => 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 ImportWorkspaceImage
instance Prelude.NFData ImportWorkspaceImage
instance Core.ToHeaders ImportWorkspaceImage where
toHeaders :: ImportWorkspaceImage -> ResponseHeaders
toHeaders =
ResponseHeaders -> ImportWorkspaceImage -> 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.ImportWorkspaceImage" ::
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 ImportWorkspaceImage where
toJSON :: ImportWorkspaceImage -> Value
toJSON ImportWorkspaceImage' {Maybe [Tag]
Maybe (NonEmpty Application)
Text
WorkspaceImageIngestionProcess
imageDescription :: Text
imageName :: Text
ingestionProcess :: WorkspaceImageIngestionProcess
ec2ImageId :: Text
tags :: Maybe [Tag]
applications :: Maybe (NonEmpty Application)
$sel:imageDescription:ImportWorkspaceImage' :: ImportWorkspaceImage -> Text
$sel:imageName:ImportWorkspaceImage' :: ImportWorkspaceImage -> Text
$sel:ingestionProcess:ImportWorkspaceImage' :: ImportWorkspaceImage -> WorkspaceImageIngestionProcess
$sel:ec2ImageId:ImportWorkspaceImage' :: ImportWorkspaceImage -> Text
$sel:tags:ImportWorkspaceImage' :: ImportWorkspaceImage -> Maybe [Tag]
$sel:applications:ImportWorkspaceImage' :: ImportWorkspaceImage -> Maybe (NonEmpty Application)
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Applications" Text -> NonEmpty Application -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (NonEmpty Application -> Pair)
-> Maybe (NonEmpty Application) -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe (NonEmpty Application)
applications,
(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
"Ec2ImageId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
ec2ImageId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"IngestionProcess" Text -> WorkspaceImageIngestionProcess -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= WorkspaceImageIngestionProcess
ingestionProcess),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ImageName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
imageName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"ImageDescription" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
imageDescription)
]
)
instance Core.ToPath ImportWorkspaceImage where
toPath :: ImportWorkspaceImage -> ByteString
toPath = ByteString -> ImportWorkspaceImage -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ImportWorkspaceImage where
toQuery :: ImportWorkspaceImage -> QueryString
toQuery = QueryString -> ImportWorkspaceImage -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ImportWorkspaceImageResponse = ImportWorkspaceImageResponse'
{
ImportWorkspaceImageResponse -> Maybe Text
imageId :: Prelude.Maybe Prelude.Text,
ImportWorkspaceImageResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ImportWorkspaceImageResponse
-> ImportWorkspaceImageResponse -> Bool
(ImportWorkspaceImageResponse
-> ImportWorkspaceImageResponse -> Bool)
-> (ImportWorkspaceImageResponse
-> ImportWorkspaceImageResponse -> Bool)
-> Eq ImportWorkspaceImageResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ImportWorkspaceImageResponse
-> ImportWorkspaceImageResponse -> Bool
$c/= :: ImportWorkspaceImageResponse
-> ImportWorkspaceImageResponse -> Bool
== :: ImportWorkspaceImageResponse
-> ImportWorkspaceImageResponse -> Bool
$c== :: ImportWorkspaceImageResponse
-> ImportWorkspaceImageResponse -> Bool
Prelude.Eq, ReadPrec [ImportWorkspaceImageResponse]
ReadPrec ImportWorkspaceImageResponse
Int -> ReadS ImportWorkspaceImageResponse
ReadS [ImportWorkspaceImageResponse]
(Int -> ReadS ImportWorkspaceImageResponse)
-> ReadS [ImportWorkspaceImageResponse]
-> ReadPrec ImportWorkspaceImageResponse
-> ReadPrec [ImportWorkspaceImageResponse]
-> Read ImportWorkspaceImageResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ImportWorkspaceImageResponse]
$creadListPrec :: ReadPrec [ImportWorkspaceImageResponse]
readPrec :: ReadPrec ImportWorkspaceImageResponse
$creadPrec :: ReadPrec ImportWorkspaceImageResponse
readList :: ReadS [ImportWorkspaceImageResponse]
$creadList :: ReadS [ImportWorkspaceImageResponse]
readsPrec :: Int -> ReadS ImportWorkspaceImageResponse
$creadsPrec :: Int -> ReadS ImportWorkspaceImageResponse
Prelude.Read, Int -> ImportWorkspaceImageResponse -> ShowS
[ImportWorkspaceImageResponse] -> ShowS
ImportWorkspaceImageResponse -> String
(Int -> ImportWorkspaceImageResponse -> ShowS)
-> (ImportWorkspaceImageResponse -> String)
-> ([ImportWorkspaceImageResponse] -> ShowS)
-> Show ImportWorkspaceImageResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ImportWorkspaceImageResponse] -> ShowS
$cshowList :: [ImportWorkspaceImageResponse] -> ShowS
show :: ImportWorkspaceImageResponse -> String
$cshow :: ImportWorkspaceImageResponse -> String
showsPrec :: Int -> ImportWorkspaceImageResponse -> ShowS
$cshowsPrec :: Int -> ImportWorkspaceImageResponse -> ShowS
Prelude.Show, (forall x.
ImportWorkspaceImageResponse -> Rep ImportWorkspaceImageResponse x)
-> (forall x.
Rep ImportWorkspaceImageResponse x -> ImportWorkspaceImageResponse)
-> Generic ImportWorkspaceImageResponse
forall x.
Rep ImportWorkspaceImageResponse x -> ImportWorkspaceImageResponse
forall x.
ImportWorkspaceImageResponse -> Rep ImportWorkspaceImageResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ImportWorkspaceImageResponse x -> ImportWorkspaceImageResponse
$cfrom :: forall x.
ImportWorkspaceImageResponse -> Rep ImportWorkspaceImageResponse x
Prelude.Generic)
newImportWorkspaceImageResponse ::
Prelude.Int ->
ImportWorkspaceImageResponse
newImportWorkspaceImageResponse :: Int -> ImportWorkspaceImageResponse
newImportWorkspaceImageResponse Int
pHttpStatus_ =
ImportWorkspaceImageResponse' :: Maybe Text -> Int -> ImportWorkspaceImageResponse
ImportWorkspaceImageResponse'
{ $sel:imageId:ImportWorkspaceImageResponse' :: Maybe Text
imageId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ImportWorkspaceImageResponse' :: Int
httpStatus = Int
pHttpStatus_
}
importWorkspaceImageResponse_imageId :: Lens.Lens' ImportWorkspaceImageResponse (Prelude.Maybe Prelude.Text)
importWorkspaceImageResponse_imageId :: (Maybe Text -> f (Maybe Text))
-> ImportWorkspaceImageResponse -> f ImportWorkspaceImageResponse
importWorkspaceImageResponse_imageId = (ImportWorkspaceImageResponse -> Maybe Text)
-> (ImportWorkspaceImageResponse
-> Maybe Text -> ImportWorkspaceImageResponse)
-> Lens
ImportWorkspaceImageResponse
ImportWorkspaceImageResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportWorkspaceImageResponse' {Maybe Text
imageId :: Maybe Text
$sel:imageId:ImportWorkspaceImageResponse' :: ImportWorkspaceImageResponse -> Maybe Text
imageId} -> Maybe Text
imageId) (\s :: ImportWorkspaceImageResponse
s@ImportWorkspaceImageResponse' {} Maybe Text
a -> ImportWorkspaceImageResponse
s {$sel:imageId:ImportWorkspaceImageResponse' :: Maybe Text
imageId = Maybe Text
a} :: ImportWorkspaceImageResponse)
importWorkspaceImageResponse_httpStatus :: Lens.Lens' ImportWorkspaceImageResponse Prelude.Int
importWorkspaceImageResponse_httpStatus :: (Int -> f Int)
-> ImportWorkspaceImageResponse -> f ImportWorkspaceImageResponse
importWorkspaceImageResponse_httpStatus = (ImportWorkspaceImageResponse -> Int)
-> (ImportWorkspaceImageResponse
-> Int -> ImportWorkspaceImageResponse)
-> Lens
ImportWorkspaceImageResponse ImportWorkspaceImageResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ImportWorkspaceImageResponse' {Int
httpStatus :: Int
$sel:httpStatus:ImportWorkspaceImageResponse' :: ImportWorkspaceImageResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ImportWorkspaceImageResponse
s@ImportWorkspaceImageResponse' {} Int
a -> ImportWorkspaceImageResponse
s {$sel:httpStatus:ImportWorkspaceImageResponse' :: Int
httpStatus = Int
a} :: ImportWorkspaceImageResponse)
instance Prelude.NFData ImportWorkspaceImageResponse