{-# 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.WorkMail.StartMailboxExportJob
(
StartMailboxExportJob (..),
newStartMailboxExportJob,
startMailboxExportJob_description,
startMailboxExportJob_clientToken,
startMailboxExportJob_organizationId,
startMailboxExportJob_entityId,
startMailboxExportJob_roleArn,
startMailboxExportJob_kmsKeyArn,
startMailboxExportJob_s3BucketName,
startMailboxExportJob_s3Prefix,
StartMailboxExportJobResponse (..),
newStartMailboxExportJobResponse,
startMailboxExportJobResponse_jobId,
startMailboxExportJobResponse_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.WorkMail.Types
data StartMailboxExportJob = StartMailboxExportJob'
{
StartMailboxExportJob -> Maybe Text
description :: Prelude.Maybe Prelude.Text,
StartMailboxExportJob -> Text
clientToken :: Prelude.Text,
StartMailboxExportJob -> Text
organizationId :: Prelude.Text,
StartMailboxExportJob -> Text
entityId :: Prelude.Text,
StartMailboxExportJob -> Text
roleArn :: Prelude.Text,
StartMailboxExportJob -> Text
kmsKeyArn :: Prelude.Text,
StartMailboxExportJob -> Text
s3BucketName :: Prelude.Text,
StartMailboxExportJob -> Text
s3Prefix :: Prelude.Text
}
deriving (StartMailboxExportJob -> StartMailboxExportJob -> Bool
(StartMailboxExportJob -> StartMailboxExportJob -> Bool)
-> (StartMailboxExportJob -> StartMailboxExportJob -> Bool)
-> Eq StartMailboxExportJob
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartMailboxExportJob -> StartMailboxExportJob -> Bool
$c/= :: StartMailboxExportJob -> StartMailboxExportJob -> Bool
== :: StartMailboxExportJob -> StartMailboxExportJob -> Bool
$c== :: StartMailboxExportJob -> StartMailboxExportJob -> Bool
Prelude.Eq, ReadPrec [StartMailboxExportJob]
ReadPrec StartMailboxExportJob
Int -> ReadS StartMailboxExportJob
ReadS [StartMailboxExportJob]
(Int -> ReadS StartMailboxExportJob)
-> ReadS [StartMailboxExportJob]
-> ReadPrec StartMailboxExportJob
-> ReadPrec [StartMailboxExportJob]
-> Read StartMailboxExportJob
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartMailboxExportJob]
$creadListPrec :: ReadPrec [StartMailboxExportJob]
readPrec :: ReadPrec StartMailboxExportJob
$creadPrec :: ReadPrec StartMailboxExportJob
readList :: ReadS [StartMailboxExportJob]
$creadList :: ReadS [StartMailboxExportJob]
readsPrec :: Int -> ReadS StartMailboxExportJob
$creadsPrec :: Int -> ReadS StartMailboxExportJob
Prelude.Read, Int -> StartMailboxExportJob -> ShowS
[StartMailboxExportJob] -> ShowS
StartMailboxExportJob -> String
(Int -> StartMailboxExportJob -> ShowS)
-> (StartMailboxExportJob -> String)
-> ([StartMailboxExportJob] -> ShowS)
-> Show StartMailboxExportJob
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartMailboxExportJob] -> ShowS
$cshowList :: [StartMailboxExportJob] -> ShowS
show :: StartMailboxExportJob -> String
$cshow :: StartMailboxExportJob -> String
showsPrec :: Int -> StartMailboxExportJob -> ShowS
$cshowsPrec :: Int -> StartMailboxExportJob -> ShowS
Prelude.Show, (forall x. StartMailboxExportJob -> Rep StartMailboxExportJob x)
-> (forall x. Rep StartMailboxExportJob x -> StartMailboxExportJob)
-> Generic StartMailboxExportJob
forall x. Rep StartMailboxExportJob x -> StartMailboxExportJob
forall x. StartMailboxExportJob -> Rep StartMailboxExportJob x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep StartMailboxExportJob x -> StartMailboxExportJob
$cfrom :: forall x. StartMailboxExportJob -> Rep StartMailboxExportJob x
Prelude.Generic)
newStartMailboxExportJob ::
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
StartMailboxExportJob
newStartMailboxExportJob :: Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> StartMailboxExportJob
newStartMailboxExportJob
Text
pClientToken_
Text
pOrganizationId_
Text
pEntityId_
Text
pRoleArn_
Text
pKmsKeyArn_
Text
pS3BucketName_
Text
pS3Prefix_ =
StartMailboxExportJob' :: Maybe Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> Text
-> StartMailboxExportJob
StartMailboxExportJob'
{ $sel:description:StartMailboxExportJob' :: Maybe Text
description =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:clientToken:StartMailboxExportJob' :: Text
clientToken = Text
pClientToken_,
$sel:organizationId:StartMailboxExportJob' :: Text
organizationId = Text
pOrganizationId_,
$sel:entityId:StartMailboxExportJob' :: Text
entityId = Text
pEntityId_,
$sel:roleArn:StartMailboxExportJob' :: Text
roleArn = Text
pRoleArn_,
$sel:kmsKeyArn:StartMailboxExportJob' :: Text
kmsKeyArn = Text
pKmsKeyArn_,
$sel:s3BucketName:StartMailboxExportJob' :: Text
s3BucketName = Text
pS3BucketName_,
$sel:s3Prefix:StartMailboxExportJob' :: Text
s3Prefix = Text
pS3Prefix_
}
startMailboxExportJob_description :: Lens.Lens' StartMailboxExportJob (Prelude.Maybe Prelude.Text)
startMailboxExportJob_description :: (Maybe Text -> f (Maybe Text))
-> StartMailboxExportJob -> f StartMailboxExportJob
startMailboxExportJob_description = (StartMailboxExportJob -> Maybe Text)
-> (StartMailboxExportJob -> Maybe Text -> StartMailboxExportJob)
-> Lens
StartMailboxExportJob
StartMailboxExportJob
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMailboxExportJob' {Maybe Text
description :: Maybe Text
$sel:description:StartMailboxExportJob' :: StartMailboxExportJob -> Maybe Text
description} -> Maybe Text
description) (\s :: StartMailboxExportJob
s@StartMailboxExportJob' {} Maybe Text
a -> StartMailboxExportJob
s {$sel:description:StartMailboxExportJob' :: Maybe Text
description = Maybe Text
a} :: StartMailboxExportJob)
startMailboxExportJob_clientToken :: Lens.Lens' StartMailboxExportJob Prelude.Text
startMailboxExportJob_clientToken :: (Text -> f Text)
-> StartMailboxExportJob -> f StartMailboxExportJob
startMailboxExportJob_clientToken = (StartMailboxExportJob -> Text)
-> (StartMailboxExportJob -> Text -> StartMailboxExportJob)
-> Lens StartMailboxExportJob StartMailboxExportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMailboxExportJob' {Text
clientToken :: Text
$sel:clientToken:StartMailboxExportJob' :: StartMailboxExportJob -> Text
clientToken} -> Text
clientToken) (\s :: StartMailboxExportJob
s@StartMailboxExportJob' {} Text
a -> StartMailboxExportJob
s {$sel:clientToken:StartMailboxExportJob' :: Text
clientToken = Text
a} :: StartMailboxExportJob)
startMailboxExportJob_organizationId :: Lens.Lens' StartMailboxExportJob Prelude.Text
startMailboxExportJob_organizationId :: (Text -> f Text)
-> StartMailboxExportJob -> f StartMailboxExportJob
startMailboxExportJob_organizationId = (StartMailboxExportJob -> Text)
-> (StartMailboxExportJob -> Text -> StartMailboxExportJob)
-> Lens StartMailboxExportJob StartMailboxExportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMailboxExportJob' {Text
organizationId :: Text
$sel:organizationId:StartMailboxExportJob' :: StartMailboxExportJob -> Text
organizationId} -> Text
organizationId) (\s :: StartMailboxExportJob
s@StartMailboxExportJob' {} Text
a -> StartMailboxExportJob
s {$sel:organizationId:StartMailboxExportJob' :: Text
organizationId = Text
a} :: StartMailboxExportJob)
startMailboxExportJob_entityId :: Lens.Lens' StartMailboxExportJob Prelude.Text
startMailboxExportJob_entityId :: (Text -> f Text)
-> StartMailboxExportJob -> f StartMailboxExportJob
startMailboxExportJob_entityId = (StartMailboxExportJob -> Text)
-> (StartMailboxExportJob -> Text -> StartMailboxExportJob)
-> Lens StartMailboxExportJob StartMailboxExportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMailboxExportJob' {Text
entityId :: Text
$sel:entityId:StartMailboxExportJob' :: StartMailboxExportJob -> Text
entityId} -> Text
entityId) (\s :: StartMailboxExportJob
s@StartMailboxExportJob' {} Text
a -> StartMailboxExportJob
s {$sel:entityId:StartMailboxExportJob' :: Text
entityId = Text
a} :: StartMailboxExportJob)
startMailboxExportJob_roleArn :: Lens.Lens' StartMailboxExportJob Prelude.Text
startMailboxExportJob_roleArn :: (Text -> f Text)
-> StartMailboxExportJob -> f StartMailboxExportJob
startMailboxExportJob_roleArn = (StartMailboxExportJob -> Text)
-> (StartMailboxExportJob -> Text -> StartMailboxExportJob)
-> Lens StartMailboxExportJob StartMailboxExportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMailboxExportJob' {Text
roleArn :: Text
$sel:roleArn:StartMailboxExportJob' :: StartMailboxExportJob -> Text
roleArn} -> Text
roleArn) (\s :: StartMailboxExportJob
s@StartMailboxExportJob' {} Text
a -> StartMailboxExportJob
s {$sel:roleArn:StartMailboxExportJob' :: Text
roleArn = Text
a} :: StartMailboxExportJob)
startMailboxExportJob_kmsKeyArn :: Lens.Lens' StartMailboxExportJob Prelude.Text
startMailboxExportJob_kmsKeyArn :: (Text -> f Text)
-> StartMailboxExportJob -> f StartMailboxExportJob
startMailboxExportJob_kmsKeyArn = (StartMailboxExportJob -> Text)
-> (StartMailboxExportJob -> Text -> StartMailboxExportJob)
-> Lens StartMailboxExportJob StartMailboxExportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMailboxExportJob' {Text
kmsKeyArn :: Text
$sel:kmsKeyArn:StartMailboxExportJob' :: StartMailboxExportJob -> Text
kmsKeyArn} -> Text
kmsKeyArn) (\s :: StartMailboxExportJob
s@StartMailboxExportJob' {} Text
a -> StartMailboxExportJob
s {$sel:kmsKeyArn:StartMailboxExportJob' :: Text
kmsKeyArn = Text
a} :: StartMailboxExportJob)
startMailboxExportJob_s3BucketName :: Lens.Lens' StartMailboxExportJob Prelude.Text
startMailboxExportJob_s3BucketName :: (Text -> f Text)
-> StartMailboxExportJob -> f StartMailboxExportJob
startMailboxExportJob_s3BucketName = (StartMailboxExportJob -> Text)
-> (StartMailboxExportJob -> Text -> StartMailboxExportJob)
-> Lens StartMailboxExportJob StartMailboxExportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMailboxExportJob' {Text
s3BucketName :: Text
$sel:s3BucketName:StartMailboxExportJob' :: StartMailboxExportJob -> Text
s3BucketName} -> Text
s3BucketName) (\s :: StartMailboxExportJob
s@StartMailboxExportJob' {} Text
a -> StartMailboxExportJob
s {$sel:s3BucketName:StartMailboxExportJob' :: Text
s3BucketName = Text
a} :: StartMailboxExportJob)
startMailboxExportJob_s3Prefix :: Lens.Lens' StartMailboxExportJob Prelude.Text
startMailboxExportJob_s3Prefix :: (Text -> f Text)
-> StartMailboxExportJob -> f StartMailboxExportJob
startMailboxExportJob_s3Prefix = (StartMailboxExportJob -> Text)
-> (StartMailboxExportJob -> Text -> StartMailboxExportJob)
-> Lens StartMailboxExportJob StartMailboxExportJob Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMailboxExportJob' {Text
s3Prefix :: Text
$sel:s3Prefix:StartMailboxExportJob' :: StartMailboxExportJob -> Text
s3Prefix} -> Text
s3Prefix) (\s :: StartMailboxExportJob
s@StartMailboxExportJob' {} Text
a -> StartMailboxExportJob
s {$sel:s3Prefix:StartMailboxExportJob' :: Text
s3Prefix = Text
a} :: StartMailboxExportJob)
instance Core.AWSRequest StartMailboxExportJob where
type
AWSResponse StartMailboxExportJob =
StartMailboxExportJobResponse
request :: StartMailboxExportJob -> Request StartMailboxExportJob
request = Service -> StartMailboxExportJob -> Request StartMailboxExportJob
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy StartMailboxExportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartMailboxExportJob)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse StartMailboxExportJob))
-> Logger
-> Service
-> Proxy StartMailboxExportJob
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse StartMailboxExportJob)))
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 -> StartMailboxExportJobResponse
StartMailboxExportJobResponse'
(Maybe Text -> Int -> StartMailboxExportJobResponse)
-> Either String (Maybe Text)
-> Either String (Int -> StartMailboxExportJobResponse)
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
"JobId")
Either String (Int -> StartMailboxExportJobResponse)
-> Either String Int -> Either String StartMailboxExportJobResponse
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 StartMailboxExportJob
instance Prelude.NFData StartMailboxExportJob
instance Core.ToHeaders StartMailboxExportJob where
toHeaders :: StartMailboxExportJob -> ResponseHeaders
toHeaders =
ResponseHeaders -> StartMailboxExportJob -> 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
"WorkMailService.StartMailboxExportJob" ::
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 StartMailboxExportJob where
toJSON :: StartMailboxExportJob -> Value
toJSON StartMailboxExportJob' {Maybe Text
Text
s3Prefix :: Text
s3BucketName :: Text
kmsKeyArn :: Text
roleArn :: Text
entityId :: Text
organizationId :: Text
clientToken :: Text
description :: Maybe Text
$sel:s3Prefix:StartMailboxExportJob' :: StartMailboxExportJob -> Text
$sel:s3BucketName:StartMailboxExportJob' :: StartMailboxExportJob -> Text
$sel:kmsKeyArn:StartMailboxExportJob' :: StartMailboxExportJob -> Text
$sel:roleArn:StartMailboxExportJob' :: StartMailboxExportJob -> Text
$sel:entityId:StartMailboxExportJob' :: StartMailboxExportJob -> Text
$sel:organizationId:StartMailboxExportJob' :: StartMailboxExportJob -> Text
$sel:clientToken:StartMailboxExportJob' :: StartMailboxExportJob -> Text
$sel:description:StartMailboxExportJob' :: StartMailboxExportJob -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"Description" 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
description,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"ClientToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
clientToken),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"OrganizationId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
organizationId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"EntityId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
entityId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"RoleArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
roleArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"KmsKeyArn" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
kmsKeyArn),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"S3BucketName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
s3BucketName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"S3Prefix" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
s3Prefix)
]
)
instance Core.ToPath StartMailboxExportJob where
toPath :: StartMailboxExportJob -> ByteString
toPath = ByteString -> StartMailboxExportJob -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery StartMailboxExportJob where
toQuery :: StartMailboxExportJob -> QueryString
toQuery = QueryString -> StartMailboxExportJob -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data StartMailboxExportJobResponse = StartMailboxExportJobResponse'
{
StartMailboxExportJobResponse -> Maybe Text
jobId :: Prelude.Maybe Prelude.Text,
StartMailboxExportJobResponse -> Int
httpStatus :: Prelude.Int
}
deriving (StartMailboxExportJobResponse
-> StartMailboxExportJobResponse -> Bool
(StartMailboxExportJobResponse
-> StartMailboxExportJobResponse -> Bool)
-> (StartMailboxExportJobResponse
-> StartMailboxExportJobResponse -> Bool)
-> Eq StartMailboxExportJobResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: StartMailboxExportJobResponse
-> StartMailboxExportJobResponse -> Bool
$c/= :: StartMailboxExportJobResponse
-> StartMailboxExportJobResponse -> Bool
== :: StartMailboxExportJobResponse
-> StartMailboxExportJobResponse -> Bool
$c== :: StartMailboxExportJobResponse
-> StartMailboxExportJobResponse -> Bool
Prelude.Eq, ReadPrec [StartMailboxExportJobResponse]
ReadPrec StartMailboxExportJobResponse
Int -> ReadS StartMailboxExportJobResponse
ReadS [StartMailboxExportJobResponse]
(Int -> ReadS StartMailboxExportJobResponse)
-> ReadS [StartMailboxExportJobResponse]
-> ReadPrec StartMailboxExportJobResponse
-> ReadPrec [StartMailboxExportJobResponse]
-> Read StartMailboxExportJobResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [StartMailboxExportJobResponse]
$creadListPrec :: ReadPrec [StartMailboxExportJobResponse]
readPrec :: ReadPrec StartMailboxExportJobResponse
$creadPrec :: ReadPrec StartMailboxExportJobResponse
readList :: ReadS [StartMailboxExportJobResponse]
$creadList :: ReadS [StartMailboxExportJobResponse]
readsPrec :: Int -> ReadS StartMailboxExportJobResponse
$creadsPrec :: Int -> ReadS StartMailboxExportJobResponse
Prelude.Read, Int -> StartMailboxExportJobResponse -> ShowS
[StartMailboxExportJobResponse] -> ShowS
StartMailboxExportJobResponse -> String
(Int -> StartMailboxExportJobResponse -> ShowS)
-> (StartMailboxExportJobResponse -> String)
-> ([StartMailboxExportJobResponse] -> ShowS)
-> Show StartMailboxExportJobResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [StartMailboxExportJobResponse] -> ShowS
$cshowList :: [StartMailboxExportJobResponse] -> ShowS
show :: StartMailboxExportJobResponse -> String
$cshow :: StartMailboxExportJobResponse -> String
showsPrec :: Int -> StartMailboxExportJobResponse -> ShowS
$cshowsPrec :: Int -> StartMailboxExportJobResponse -> ShowS
Prelude.Show, (forall x.
StartMailboxExportJobResponse
-> Rep StartMailboxExportJobResponse x)
-> (forall x.
Rep StartMailboxExportJobResponse x
-> StartMailboxExportJobResponse)
-> Generic StartMailboxExportJobResponse
forall x.
Rep StartMailboxExportJobResponse x
-> StartMailboxExportJobResponse
forall x.
StartMailboxExportJobResponse
-> Rep StartMailboxExportJobResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep StartMailboxExportJobResponse x
-> StartMailboxExportJobResponse
$cfrom :: forall x.
StartMailboxExportJobResponse
-> Rep StartMailboxExportJobResponse x
Prelude.Generic)
newStartMailboxExportJobResponse ::
Prelude.Int ->
StartMailboxExportJobResponse
newStartMailboxExportJobResponse :: Int -> StartMailboxExportJobResponse
newStartMailboxExportJobResponse Int
pHttpStatus_ =
StartMailboxExportJobResponse' :: Maybe Text -> Int -> StartMailboxExportJobResponse
StartMailboxExportJobResponse'
{ $sel:jobId:StartMailboxExportJobResponse' :: Maybe Text
jobId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:StartMailboxExportJobResponse' :: Int
httpStatus = Int
pHttpStatus_
}
startMailboxExportJobResponse_jobId :: Lens.Lens' StartMailboxExportJobResponse (Prelude.Maybe Prelude.Text)
startMailboxExportJobResponse_jobId :: (Maybe Text -> f (Maybe Text))
-> StartMailboxExportJobResponse -> f StartMailboxExportJobResponse
startMailboxExportJobResponse_jobId = (StartMailboxExportJobResponse -> Maybe Text)
-> (StartMailboxExportJobResponse
-> Maybe Text -> StartMailboxExportJobResponse)
-> Lens
StartMailboxExportJobResponse
StartMailboxExportJobResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMailboxExportJobResponse' {Maybe Text
jobId :: Maybe Text
$sel:jobId:StartMailboxExportJobResponse' :: StartMailboxExportJobResponse -> Maybe Text
jobId} -> Maybe Text
jobId) (\s :: StartMailboxExportJobResponse
s@StartMailboxExportJobResponse' {} Maybe Text
a -> StartMailboxExportJobResponse
s {$sel:jobId:StartMailboxExportJobResponse' :: Maybe Text
jobId = Maybe Text
a} :: StartMailboxExportJobResponse)
startMailboxExportJobResponse_httpStatus :: Lens.Lens' StartMailboxExportJobResponse Prelude.Int
startMailboxExportJobResponse_httpStatus :: (Int -> f Int)
-> StartMailboxExportJobResponse -> f StartMailboxExportJobResponse
startMailboxExportJobResponse_httpStatus = (StartMailboxExportJobResponse -> Int)
-> (StartMailboxExportJobResponse
-> Int -> StartMailboxExportJobResponse)
-> Lens
StartMailboxExportJobResponse StartMailboxExportJobResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\StartMailboxExportJobResponse' {Int
httpStatus :: Int
$sel:httpStatus:StartMailboxExportJobResponse' :: StartMailboxExportJobResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: StartMailboxExportJobResponse
s@StartMailboxExportJobResponse' {} Int
a -> StartMailboxExportJobResponse
s {$sel:httpStatus:StartMailboxExportJobResponse' :: Int
httpStatus = Int
a} :: StartMailboxExportJobResponse)
instance Prelude.NFData StartMailboxExportJobResponse