{-# 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.LexModels.GetExport
(
GetExport (..),
newGetExport,
getExport_name,
getExport_version,
getExport_resourceType,
getExport_exportType,
GetExportResponse (..),
newGetExportResponse,
getExportResponse_failureReason,
getExportResponse_resourceType,
getExportResponse_exportStatus,
getExportResponse_url,
getExportResponse_exportType,
getExportResponse_name,
getExportResponse_version,
getExportResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.LexModels.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetExport = GetExport'
{
GetExport -> Text
name :: Prelude.Text,
GetExport -> Text
version :: Prelude.Text,
GetExport -> ResourceType
resourceType :: ResourceType,
GetExport -> ExportType
exportType :: ExportType
}
deriving (GetExport -> GetExport -> Bool
(GetExport -> GetExport -> Bool)
-> (GetExport -> GetExport -> Bool) -> Eq GetExport
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetExport -> GetExport -> Bool
$c/= :: GetExport -> GetExport -> Bool
== :: GetExport -> GetExport -> Bool
$c== :: GetExport -> GetExport -> Bool
Prelude.Eq, ReadPrec [GetExport]
ReadPrec GetExport
Int -> ReadS GetExport
ReadS [GetExport]
(Int -> ReadS GetExport)
-> ReadS [GetExport]
-> ReadPrec GetExport
-> ReadPrec [GetExport]
-> Read GetExport
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetExport]
$creadListPrec :: ReadPrec [GetExport]
readPrec :: ReadPrec GetExport
$creadPrec :: ReadPrec GetExport
readList :: ReadS [GetExport]
$creadList :: ReadS [GetExport]
readsPrec :: Int -> ReadS GetExport
$creadsPrec :: Int -> ReadS GetExport
Prelude.Read, Int -> GetExport -> ShowS
[GetExport] -> ShowS
GetExport -> String
(Int -> GetExport -> ShowS)
-> (GetExport -> String)
-> ([GetExport] -> ShowS)
-> Show GetExport
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetExport] -> ShowS
$cshowList :: [GetExport] -> ShowS
show :: GetExport -> String
$cshow :: GetExport -> String
showsPrec :: Int -> GetExport -> ShowS
$cshowsPrec :: Int -> GetExport -> ShowS
Prelude.Show, (forall x. GetExport -> Rep GetExport x)
-> (forall x. Rep GetExport x -> GetExport) -> Generic GetExport
forall x. Rep GetExport x -> GetExport
forall x. GetExport -> Rep GetExport x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetExport x -> GetExport
$cfrom :: forall x. GetExport -> Rep GetExport x
Prelude.Generic)
newGetExport ::
Prelude.Text ->
Prelude.Text ->
ResourceType ->
ExportType ->
GetExport
newGetExport :: Text -> Text -> ResourceType -> ExportType -> GetExport
newGetExport
Text
pName_
Text
pVersion_
ResourceType
pResourceType_
ExportType
pExportType_ =
GetExport' :: Text -> Text -> ResourceType -> ExportType -> GetExport
GetExport'
{ $sel:name:GetExport' :: Text
name = Text
pName_,
$sel:version:GetExport' :: Text
version = Text
pVersion_,
$sel:resourceType:GetExport' :: ResourceType
resourceType = ResourceType
pResourceType_,
$sel:exportType:GetExport' :: ExportType
exportType = ExportType
pExportType_
}
getExport_name :: Lens.Lens' GetExport Prelude.Text
getExport_name :: (Text -> f Text) -> GetExport -> f GetExport
getExport_name = (GetExport -> Text)
-> (GetExport -> Text -> GetExport)
-> Lens GetExport GetExport Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExport' {Text
name :: Text
$sel:name:GetExport' :: GetExport -> Text
name} -> Text
name) (\s :: GetExport
s@GetExport' {} Text
a -> GetExport
s {$sel:name:GetExport' :: Text
name = Text
a} :: GetExport)
getExport_version :: Lens.Lens' GetExport Prelude.Text
getExport_version :: (Text -> f Text) -> GetExport -> f GetExport
getExport_version = (GetExport -> Text)
-> (GetExport -> Text -> GetExport)
-> Lens GetExport GetExport Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExport' {Text
version :: Text
$sel:version:GetExport' :: GetExport -> Text
version} -> Text
version) (\s :: GetExport
s@GetExport' {} Text
a -> GetExport
s {$sel:version:GetExport' :: Text
version = Text
a} :: GetExport)
getExport_resourceType :: Lens.Lens' GetExport ResourceType
getExport_resourceType :: (ResourceType -> f ResourceType) -> GetExport -> f GetExport
getExport_resourceType = (GetExport -> ResourceType)
-> (GetExport -> ResourceType -> GetExport)
-> Lens GetExport GetExport ResourceType ResourceType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExport' {ResourceType
resourceType :: ResourceType
$sel:resourceType:GetExport' :: GetExport -> ResourceType
resourceType} -> ResourceType
resourceType) (\s :: GetExport
s@GetExport' {} ResourceType
a -> GetExport
s {$sel:resourceType:GetExport' :: ResourceType
resourceType = ResourceType
a} :: GetExport)
getExport_exportType :: Lens.Lens' GetExport ExportType
getExport_exportType :: (ExportType -> f ExportType) -> GetExport -> f GetExport
getExport_exportType = (GetExport -> ExportType)
-> (GetExport -> ExportType -> GetExport)
-> Lens GetExport GetExport ExportType ExportType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExport' {ExportType
exportType :: ExportType
$sel:exportType:GetExport' :: GetExport -> ExportType
exportType} -> ExportType
exportType) (\s :: GetExport
s@GetExport' {} ExportType
a -> GetExport
s {$sel:exportType:GetExport' :: ExportType
exportType = ExportType
a} :: GetExport)
instance Core.AWSRequest GetExport where
type AWSResponse GetExport = GetExportResponse
request :: GetExport -> Request GetExport
request = Service -> GetExport -> Request GetExport
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetExport
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetExport)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetExport))
-> Logger
-> Service
-> Proxy GetExport
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetExport)))
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
-> Maybe ResourceType
-> Maybe ExportStatus
-> Maybe Text
-> Maybe ExportType
-> Maybe Text
-> Maybe Text
-> Int
-> GetExportResponse
GetExportResponse'
(Maybe Text
-> Maybe ResourceType
-> Maybe ExportStatus
-> Maybe Text
-> Maybe ExportType
-> Maybe Text
-> Maybe Text
-> Int
-> GetExportResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ResourceType
-> Maybe ExportStatus
-> Maybe Text
-> Maybe ExportType
-> Maybe Text
-> Maybe Text
-> Int
-> GetExportResponse)
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
"failureReason")
Either
String
(Maybe ResourceType
-> Maybe ExportStatus
-> Maybe Text
-> Maybe ExportType
-> Maybe Text
-> Maybe Text
-> Int
-> GetExportResponse)
-> Either String (Maybe ResourceType)
-> Either
String
(Maybe ExportStatus
-> Maybe Text
-> Maybe ExportType
-> Maybe Text
-> Maybe Text
-> Int
-> GetExportResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ResourceType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"resourceType")
Either
String
(Maybe ExportStatus
-> Maybe Text
-> Maybe ExportType
-> Maybe Text
-> Maybe Text
-> Int
-> GetExportResponse)
-> Either String (Maybe ExportStatus)
-> Either
String
(Maybe Text
-> Maybe ExportType
-> Maybe Text
-> Maybe Text
-> Int
-> GetExportResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ExportStatus)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"exportStatus")
Either
String
(Maybe Text
-> Maybe ExportType
-> Maybe Text
-> Maybe Text
-> Int
-> GetExportResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe ExportType
-> Maybe Text -> Maybe Text -> Int -> GetExportResponse)
forall (f :: * -> *) a b. Applicative f => 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
"url")
Either
String
(Maybe ExportType
-> Maybe Text -> Maybe Text -> Int -> GetExportResponse)
-> Either String (Maybe ExportType)
-> Either
String (Maybe Text -> Maybe Text -> Int -> GetExportResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe ExportType)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"exportType")
Either
String (Maybe Text -> Maybe Text -> Int -> GetExportResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> GetExportResponse)
forall (f :: * -> *) a b. Applicative f => 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
"name")
Either String (Maybe Text -> Int -> GetExportResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetExportResponse)
forall (f :: * -> *) a b. Applicative f => 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
"version")
Either String (Int -> GetExportResponse)
-> Either String Int -> Either String GetExportResponse
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 GetExport
instance Prelude.NFData GetExport
instance Core.ToHeaders GetExport where
toHeaders :: GetExport -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetExport -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ 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.ToPath GetExport where
toPath :: GetExport -> ByteString
toPath = ByteString -> GetExport -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/exports/"
instance Core.ToQuery GetExport where
toQuery :: GetExport -> QueryString
toQuery GetExport' {Text
ExportType
ResourceType
exportType :: ExportType
resourceType :: ResourceType
version :: Text
name :: Text
$sel:exportType:GetExport' :: GetExport -> ExportType
$sel:resourceType:GetExport' :: GetExport -> ResourceType
$sel:version:GetExport' :: GetExport -> Text
$sel:name:GetExport' :: GetExport -> Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"name" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
name,
ByteString
"version" ByteString -> Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Text
version,
ByteString
"resourceType" ByteString -> ResourceType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ResourceType
resourceType,
ByteString
"exportType" ByteString -> ExportType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: ExportType
exportType
]
data GetExportResponse = GetExportResponse'
{
GetExportResponse -> Maybe Text
failureReason :: Prelude.Maybe Prelude.Text,
GetExportResponse -> Maybe ResourceType
resourceType :: Prelude.Maybe ResourceType,
GetExportResponse -> Maybe ExportStatus
exportStatus :: Prelude.Maybe ExportStatus,
GetExportResponse -> Maybe Text
url :: Prelude.Maybe Prelude.Text,
GetExportResponse -> Maybe ExportType
exportType :: Prelude.Maybe ExportType,
GetExportResponse -> Maybe Text
name :: Prelude.Maybe Prelude.Text,
GetExportResponse -> Maybe Text
version :: Prelude.Maybe Prelude.Text,
GetExportResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetExportResponse -> GetExportResponse -> Bool
(GetExportResponse -> GetExportResponse -> Bool)
-> (GetExportResponse -> GetExportResponse -> Bool)
-> Eq GetExportResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetExportResponse -> GetExportResponse -> Bool
$c/= :: GetExportResponse -> GetExportResponse -> Bool
== :: GetExportResponse -> GetExportResponse -> Bool
$c== :: GetExportResponse -> GetExportResponse -> Bool
Prelude.Eq, ReadPrec [GetExportResponse]
ReadPrec GetExportResponse
Int -> ReadS GetExportResponse
ReadS [GetExportResponse]
(Int -> ReadS GetExportResponse)
-> ReadS [GetExportResponse]
-> ReadPrec GetExportResponse
-> ReadPrec [GetExportResponse]
-> Read GetExportResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetExportResponse]
$creadListPrec :: ReadPrec [GetExportResponse]
readPrec :: ReadPrec GetExportResponse
$creadPrec :: ReadPrec GetExportResponse
readList :: ReadS [GetExportResponse]
$creadList :: ReadS [GetExportResponse]
readsPrec :: Int -> ReadS GetExportResponse
$creadsPrec :: Int -> ReadS GetExportResponse
Prelude.Read, Int -> GetExportResponse -> ShowS
[GetExportResponse] -> ShowS
GetExportResponse -> String
(Int -> GetExportResponse -> ShowS)
-> (GetExportResponse -> String)
-> ([GetExportResponse] -> ShowS)
-> Show GetExportResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetExportResponse] -> ShowS
$cshowList :: [GetExportResponse] -> ShowS
show :: GetExportResponse -> String
$cshow :: GetExportResponse -> String
showsPrec :: Int -> GetExportResponse -> ShowS
$cshowsPrec :: Int -> GetExportResponse -> ShowS
Prelude.Show, (forall x. GetExportResponse -> Rep GetExportResponse x)
-> (forall x. Rep GetExportResponse x -> GetExportResponse)
-> Generic GetExportResponse
forall x. Rep GetExportResponse x -> GetExportResponse
forall x. GetExportResponse -> Rep GetExportResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetExportResponse x -> GetExportResponse
$cfrom :: forall x. GetExportResponse -> Rep GetExportResponse x
Prelude.Generic)
newGetExportResponse ::
Prelude.Int ->
GetExportResponse
newGetExportResponse :: Int -> GetExportResponse
newGetExportResponse Int
pHttpStatus_ =
GetExportResponse' :: Maybe Text
-> Maybe ResourceType
-> Maybe ExportStatus
-> Maybe Text
-> Maybe ExportType
-> Maybe Text
-> Maybe Text
-> Int
-> GetExportResponse
GetExportResponse'
{ $sel:failureReason:GetExportResponse' :: Maybe Text
failureReason = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:resourceType:GetExportResponse' :: Maybe ResourceType
resourceType = Maybe ResourceType
forall a. Maybe a
Prelude.Nothing,
$sel:exportStatus:GetExportResponse' :: Maybe ExportStatus
exportStatus = Maybe ExportStatus
forall a. Maybe a
Prelude.Nothing,
$sel:url:GetExportResponse' :: Maybe Text
url = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:exportType:GetExportResponse' :: Maybe ExportType
exportType = Maybe ExportType
forall a. Maybe a
Prelude.Nothing,
$sel:name:GetExportResponse' :: Maybe Text
name = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:GetExportResponse' :: Maybe Text
version = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetExportResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getExportResponse_failureReason :: Lens.Lens' GetExportResponse (Prelude.Maybe Prelude.Text)
getExportResponse_failureReason :: (Maybe Text -> f (Maybe Text))
-> GetExportResponse -> f GetExportResponse
getExportResponse_failureReason = (GetExportResponse -> Maybe Text)
-> (GetExportResponse -> Maybe Text -> GetExportResponse)
-> Lens
GetExportResponse GetExportResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExportResponse' {Maybe Text
failureReason :: Maybe Text
$sel:failureReason:GetExportResponse' :: GetExportResponse -> Maybe Text
failureReason} -> Maybe Text
failureReason) (\s :: GetExportResponse
s@GetExportResponse' {} Maybe Text
a -> GetExportResponse
s {$sel:failureReason:GetExportResponse' :: Maybe Text
failureReason = Maybe Text
a} :: GetExportResponse)
getExportResponse_resourceType :: Lens.Lens' GetExportResponse (Prelude.Maybe ResourceType)
getExportResponse_resourceType :: (Maybe ResourceType -> f (Maybe ResourceType))
-> GetExportResponse -> f GetExportResponse
getExportResponse_resourceType = (GetExportResponse -> Maybe ResourceType)
-> (GetExportResponse -> Maybe ResourceType -> GetExportResponse)
-> Lens
GetExportResponse
GetExportResponse
(Maybe ResourceType)
(Maybe ResourceType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExportResponse' {Maybe ResourceType
resourceType :: Maybe ResourceType
$sel:resourceType:GetExportResponse' :: GetExportResponse -> Maybe ResourceType
resourceType} -> Maybe ResourceType
resourceType) (\s :: GetExportResponse
s@GetExportResponse' {} Maybe ResourceType
a -> GetExportResponse
s {$sel:resourceType:GetExportResponse' :: Maybe ResourceType
resourceType = Maybe ResourceType
a} :: GetExportResponse)
getExportResponse_exportStatus :: Lens.Lens' GetExportResponse (Prelude.Maybe ExportStatus)
getExportResponse_exportStatus :: (Maybe ExportStatus -> f (Maybe ExportStatus))
-> GetExportResponse -> f GetExportResponse
getExportResponse_exportStatus = (GetExportResponse -> Maybe ExportStatus)
-> (GetExportResponse -> Maybe ExportStatus -> GetExportResponse)
-> Lens
GetExportResponse
GetExportResponse
(Maybe ExportStatus)
(Maybe ExportStatus)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExportResponse' {Maybe ExportStatus
exportStatus :: Maybe ExportStatus
$sel:exportStatus:GetExportResponse' :: GetExportResponse -> Maybe ExportStatus
exportStatus} -> Maybe ExportStatus
exportStatus) (\s :: GetExportResponse
s@GetExportResponse' {} Maybe ExportStatus
a -> GetExportResponse
s {$sel:exportStatus:GetExportResponse' :: Maybe ExportStatus
exportStatus = Maybe ExportStatus
a} :: GetExportResponse)
getExportResponse_url :: Lens.Lens' GetExportResponse (Prelude.Maybe Prelude.Text)
getExportResponse_url :: (Maybe Text -> f (Maybe Text))
-> GetExportResponse -> f GetExportResponse
getExportResponse_url = (GetExportResponse -> Maybe Text)
-> (GetExportResponse -> Maybe Text -> GetExportResponse)
-> Lens
GetExportResponse GetExportResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExportResponse' {Maybe Text
url :: Maybe Text
$sel:url:GetExportResponse' :: GetExportResponse -> Maybe Text
url} -> Maybe Text
url) (\s :: GetExportResponse
s@GetExportResponse' {} Maybe Text
a -> GetExportResponse
s {$sel:url:GetExportResponse' :: Maybe Text
url = Maybe Text
a} :: GetExportResponse)
getExportResponse_exportType :: Lens.Lens' GetExportResponse (Prelude.Maybe ExportType)
getExportResponse_exportType :: (Maybe ExportType -> f (Maybe ExportType))
-> GetExportResponse -> f GetExportResponse
getExportResponse_exportType = (GetExportResponse -> Maybe ExportType)
-> (GetExportResponse -> Maybe ExportType -> GetExportResponse)
-> Lens
GetExportResponse
GetExportResponse
(Maybe ExportType)
(Maybe ExportType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExportResponse' {Maybe ExportType
exportType :: Maybe ExportType
$sel:exportType:GetExportResponse' :: GetExportResponse -> Maybe ExportType
exportType} -> Maybe ExportType
exportType) (\s :: GetExportResponse
s@GetExportResponse' {} Maybe ExportType
a -> GetExportResponse
s {$sel:exportType:GetExportResponse' :: Maybe ExportType
exportType = Maybe ExportType
a} :: GetExportResponse)
getExportResponse_name :: Lens.Lens' GetExportResponse (Prelude.Maybe Prelude.Text)
getExportResponse_name :: (Maybe Text -> f (Maybe Text))
-> GetExportResponse -> f GetExportResponse
getExportResponse_name = (GetExportResponse -> Maybe Text)
-> (GetExportResponse -> Maybe Text -> GetExportResponse)
-> Lens
GetExportResponse GetExportResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExportResponse' {Maybe Text
name :: Maybe Text
$sel:name:GetExportResponse' :: GetExportResponse -> Maybe Text
name} -> Maybe Text
name) (\s :: GetExportResponse
s@GetExportResponse' {} Maybe Text
a -> GetExportResponse
s {$sel:name:GetExportResponse' :: Maybe Text
name = Maybe Text
a} :: GetExportResponse)
getExportResponse_version :: Lens.Lens' GetExportResponse (Prelude.Maybe Prelude.Text)
getExportResponse_version :: (Maybe Text -> f (Maybe Text))
-> GetExportResponse -> f GetExportResponse
getExportResponse_version = (GetExportResponse -> Maybe Text)
-> (GetExportResponse -> Maybe Text -> GetExportResponse)
-> Lens
GetExportResponse GetExportResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExportResponse' {Maybe Text
version :: Maybe Text
$sel:version:GetExportResponse' :: GetExportResponse -> Maybe Text
version} -> Maybe Text
version) (\s :: GetExportResponse
s@GetExportResponse' {} Maybe Text
a -> GetExportResponse
s {$sel:version:GetExportResponse' :: Maybe Text
version = Maybe Text
a} :: GetExportResponse)
getExportResponse_httpStatus :: Lens.Lens' GetExportResponse Prelude.Int
getExportResponse_httpStatus :: (Int -> f Int) -> GetExportResponse -> f GetExportResponse
getExportResponse_httpStatus = (GetExportResponse -> Int)
-> (GetExportResponse -> Int -> GetExportResponse)
-> Lens GetExportResponse GetExportResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetExportResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetExportResponse' :: GetExportResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetExportResponse
s@GetExportResponse' {} Int
a -> GetExportResponse
s {$sel:httpStatus:GetExportResponse' :: Int
httpStatus = Int
a} :: GetExportResponse)
instance Prelude.NFData GetExportResponse