{-# 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.CodeCommit.GetFile
(
GetFile (..),
newGetFile,
getFile_commitSpecifier,
getFile_repositoryName,
getFile_filePath,
GetFileResponse (..),
newGetFileResponse,
getFileResponse_httpStatus,
getFileResponse_commitId,
getFileResponse_blobId,
getFileResponse_filePath,
getFileResponse_fileMode,
getFileResponse_fileSize,
getFileResponse_fileContent,
)
where
import Amazonka.CodeCommit.Types
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
data GetFile = GetFile'
{
GetFile -> Maybe Text
commitSpecifier :: Prelude.Maybe Prelude.Text,
GetFile -> Text
repositoryName :: Prelude.Text,
GetFile -> Text
filePath :: Prelude.Text
}
deriving (GetFile -> GetFile -> Bool
(GetFile -> GetFile -> Bool)
-> (GetFile -> GetFile -> Bool) -> Eq GetFile
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFile -> GetFile -> Bool
$c/= :: GetFile -> GetFile -> Bool
== :: GetFile -> GetFile -> Bool
$c== :: GetFile -> GetFile -> Bool
Prelude.Eq, ReadPrec [GetFile]
ReadPrec GetFile
Int -> ReadS GetFile
ReadS [GetFile]
(Int -> ReadS GetFile)
-> ReadS [GetFile]
-> ReadPrec GetFile
-> ReadPrec [GetFile]
-> Read GetFile
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFile]
$creadListPrec :: ReadPrec [GetFile]
readPrec :: ReadPrec GetFile
$creadPrec :: ReadPrec GetFile
readList :: ReadS [GetFile]
$creadList :: ReadS [GetFile]
readsPrec :: Int -> ReadS GetFile
$creadsPrec :: Int -> ReadS GetFile
Prelude.Read, Int -> GetFile -> ShowS
[GetFile] -> ShowS
GetFile -> String
(Int -> GetFile -> ShowS)
-> (GetFile -> String) -> ([GetFile] -> ShowS) -> Show GetFile
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFile] -> ShowS
$cshowList :: [GetFile] -> ShowS
show :: GetFile -> String
$cshow :: GetFile -> String
showsPrec :: Int -> GetFile -> ShowS
$cshowsPrec :: Int -> GetFile -> ShowS
Prelude.Show, (forall x. GetFile -> Rep GetFile x)
-> (forall x. Rep GetFile x -> GetFile) -> Generic GetFile
forall x. Rep GetFile x -> GetFile
forall x. GetFile -> Rep GetFile x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetFile x -> GetFile
$cfrom :: forall x. GetFile -> Rep GetFile x
Prelude.Generic)
newGetFile ::
Prelude.Text ->
Prelude.Text ->
GetFile
newGetFile :: Text -> Text -> GetFile
newGetFile Text
pRepositoryName_ Text
pFilePath_ =
GetFile' :: Maybe Text -> Text -> Text -> GetFile
GetFile'
{ $sel:commitSpecifier:GetFile' :: Maybe Text
commitSpecifier = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:GetFile' :: Text
repositoryName = Text
pRepositoryName_,
$sel:filePath:GetFile' :: Text
filePath = Text
pFilePath_
}
getFile_commitSpecifier :: Lens.Lens' GetFile (Prelude.Maybe Prelude.Text)
getFile_commitSpecifier :: (Maybe Text -> f (Maybe Text)) -> GetFile -> f GetFile
getFile_commitSpecifier = (GetFile -> Maybe Text)
-> (GetFile -> Maybe Text -> GetFile)
-> Lens GetFile GetFile (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFile' {Maybe Text
commitSpecifier :: Maybe Text
$sel:commitSpecifier:GetFile' :: GetFile -> Maybe Text
commitSpecifier} -> Maybe Text
commitSpecifier) (\s :: GetFile
s@GetFile' {} Maybe Text
a -> GetFile
s {$sel:commitSpecifier:GetFile' :: Maybe Text
commitSpecifier = Maybe Text
a} :: GetFile)
getFile_repositoryName :: Lens.Lens' GetFile Prelude.Text
getFile_repositoryName :: (Text -> f Text) -> GetFile -> f GetFile
getFile_repositoryName = (GetFile -> Text)
-> (GetFile -> Text -> GetFile) -> Lens GetFile GetFile Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFile' {Text
repositoryName :: Text
$sel:repositoryName:GetFile' :: GetFile -> Text
repositoryName} -> Text
repositoryName) (\s :: GetFile
s@GetFile' {} Text
a -> GetFile
s {$sel:repositoryName:GetFile' :: Text
repositoryName = Text
a} :: GetFile)
getFile_filePath :: Lens.Lens' GetFile Prelude.Text
getFile_filePath :: (Text -> f Text) -> GetFile -> f GetFile
getFile_filePath = (GetFile -> Text)
-> (GetFile -> Text -> GetFile) -> Lens GetFile GetFile Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFile' {Text
filePath :: Text
$sel:filePath:GetFile' :: GetFile -> Text
filePath} -> Text
filePath) (\s :: GetFile
s@GetFile' {} Text
a -> GetFile
s {$sel:filePath:GetFile' :: Text
filePath = Text
a} :: GetFile)
instance Core.AWSRequest GetFile where
type AWSResponse GetFile = GetFileResponse
request :: GetFile -> Request GetFile
request = Service -> GetFile -> Request GetFile
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetFile
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetFile)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetFile))
-> Logger
-> Service
-> Proxy GetFile
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetFile)))
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 ->
Int
-> Text
-> Text
-> Text
-> FileModeTypeEnum
-> Integer
-> Base64
-> GetFileResponse
GetFileResponse'
(Int
-> Text
-> Text
-> Text
-> FileModeTypeEnum
-> Integer
-> Base64
-> GetFileResponse)
-> Either String Int
-> Either
String
(Text
-> Text
-> Text
-> FileModeTypeEnum
-> Integer
-> Base64
-> GetFileResponse)
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))
Either
String
(Text
-> Text
-> Text
-> FileModeTypeEnum
-> Integer
-> Base64
-> GetFileResponse)
-> Either String Text
-> Either
String
(Text
-> Text
-> FileModeTypeEnum
-> Integer
-> Base64
-> GetFileResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"commitId")
Either
String
(Text
-> Text
-> FileModeTypeEnum
-> Integer
-> Base64
-> GetFileResponse)
-> Either String Text
-> Either
String
(Text -> FileModeTypeEnum -> Integer -> Base64 -> GetFileResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"blobId")
Either
String
(Text -> FileModeTypeEnum -> Integer -> Base64 -> GetFileResponse)
-> Either String Text
-> Either
String (FileModeTypeEnum -> Integer -> Base64 -> GetFileResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Text
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"filePath")
Either
String (FileModeTypeEnum -> Integer -> Base64 -> GetFileResponse)
-> Either String FileModeTypeEnum
-> Either String (Integer -> Base64 -> GetFileResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String FileModeTypeEnum
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"fileMode")
Either String (Integer -> Base64 -> GetFileResponse)
-> Either String Integer
-> Either String (Base64 -> GetFileResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Integer
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"fileSize")
Either String (Base64 -> GetFileResponse)
-> Either String Base64 -> Either String GetFileResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String Base64
forall a. FromJSON a => Object -> Text -> Either String a
Core..:> Text
"fileContent")
)
instance Prelude.Hashable GetFile
instance Prelude.NFData GetFile
instance Core.ToHeaders GetFile where
toHeaders :: GetFile -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetFile -> 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
"CodeCommit_20150413.GetFile" ::
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 GetFile where
toJSON :: GetFile -> Value
toJSON GetFile' {Maybe Text
Text
filePath :: Text
repositoryName :: Text
commitSpecifier :: Maybe Text
$sel:filePath:GetFile' :: GetFile -> Text
$sel:repositoryName:GetFile' :: GetFile -> Text
$sel:commitSpecifier:GetFile' :: GetFile -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"commitSpecifier" 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
commitSpecifier,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"repositoryName" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
repositoryName),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"filePath" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
filePath)
]
)
instance Core.ToPath GetFile where
toPath :: GetFile -> ByteString
toPath = ByteString -> GetFile -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetFile where
toQuery :: GetFile -> QueryString
toQuery = QueryString -> GetFile -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetFileResponse = GetFileResponse'
{
GetFileResponse -> Int
httpStatus :: Prelude.Int,
GetFileResponse -> Text
commitId :: Prelude.Text,
GetFileResponse -> Text
blobId :: Prelude.Text,
GetFileResponse -> Text
filePath :: Prelude.Text,
GetFileResponse -> FileModeTypeEnum
fileMode :: FileModeTypeEnum,
GetFileResponse -> Integer
fileSize :: Prelude.Integer,
GetFileResponse -> Base64
fileContent :: Core.Base64
}
deriving (GetFileResponse -> GetFileResponse -> Bool
(GetFileResponse -> GetFileResponse -> Bool)
-> (GetFileResponse -> GetFileResponse -> Bool)
-> Eq GetFileResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetFileResponse -> GetFileResponse -> Bool
$c/= :: GetFileResponse -> GetFileResponse -> Bool
== :: GetFileResponse -> GetFileResponse -> Bool
$c== :: GetFileResponse -> GetFileResponse -> Bool
Prelude.Eq, ReadPrec [GetFileResponse]
ReadPrec GetFileResponse
Int -> ReadS GetFileResponse
ReadS [GetFileResponse]
(Int -> ReadS GetFileResponse)
-> ReadS [GetFileResponse]
-> ReadPrec GetFileResponse
-> ReadPrec [GetFileResponse]
-> Read GetFileResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetFileResponse]
$creadListPrec :: ReadPrec [GetFileResponse]
readPrec :: ReadPrec GetFileResponse
$creadPrec :: ReadPrec GetFileResponse
readList :: ReadS [GetFileResponse]
$creadList :: ReadS [GetFileResponse]
readsPrec :: Int -> ReadS GetFileResponse
$creadsPrec :: Int -> ReadS GetFileResponse
Prelude.Read, Int -> GetFileResponse -> ShowS
[GetFileResponse] -> ShowS
GetFileResponse -> String
(Int -> GetFileResponse -> ShowS)
-> (GetFileResponse -> String)
-> ([GetFileResponse] -> ShowS)
-> Show GetFileResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetFileResponse] -> ShowS
$cshowList :: [GetFileResponse] -> ShowS
show :: GetFileResponse -> String
$cshow :: GetFileResponse -> String
showsPrec :: Int -> GetFileResponse -> ShowS
$cshowsPrec :: Int -> GetFileResponse -> ShowS
Prelude.Show, (forall x. GetFileResponse -> Rep GetFileResponse x)
-> (forall x. Rep GetFileResponse x -> GetFileResponse)
-> Generic GetFileResponse
forall x. Rep GetFileResponse x -> GetFileResponse
forall x. GetFileResponse -> Rep GetFileResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetFileResponse x -> GetFileResponse
$cfrom :: forall x. GetFileResponse -> Rep GetFileResponse x
Prelude.Generic)
newGetFileResponse ::
Prelude.Int ->
Prelude.Text ->
Prelude.Text ->
Prelude.Text ->
FileModeTypeEnum ->
Prelude.Integer ->
Prelude.ByteString ->
GetFileResponse
newGetFileResponse :: Int
-> Text
-> Text
-> Text
-> FileModeTypeEnum
-> Integer
-> ByteString
-> GetFileResponse
newGetFileResponse
Int
pHttpStatus_
Text
pCommitId_
Text
pBlobId_
Text
pFilePath_
FileModeTypeEnum
pFileMode_
Integer
pFileSize_
ByteString
pFileContent_ =
GetFileResponse' :: Int
-> Text
-> Text
-> Text
-> FileModeTypeEnum
-> Integer
-> Base64
-> GetFileResponse
GetFileResponse'
{ $sel:httpStatus:GetFileResponse' :: Int
httpStatus = Int
pHttpStatus_,
$sel:commitId:GetFileResponse' :: Text
commitId = Text
pCommitId_,
$sel:blobId:GetFileResponse' :: Text
blobId = Text
pBlobId_,
$sel:filePath:GetFileResponse' :: Text
filePath = Text
pFilePath_,
$sel:fileMode:GetFileResponse' :: FileModeTypeEnum
fileMode = FileModeTypeEnum
pFileMode_,
$sel:fileSize:GetFileResponse' :: Integer
fileSize = Integer
pFileSize_,
$sel:fileContent:GetFileResponse' :: Base64
fileContent = Tagged ByteString (Identity ByteString)
-> Tagged Base64 (Identity Base64)
Iso' Base64 ByteString
Core._Base64 (Tagged ByteString (Identity ByteString)
-> Tagged Base64 (Identity Base64))
-> ByteString -> Base64
forall t b. AReview t b -> b -> t
Lens.# ByteString
pFileContent_
}
getFileResponse_httpStatus :: Lens.Lens' GetFileResponse Prelude.Int
getFileResponse_httpStatus :: (Int -> f Int) -> GetFileResponse -> f GetFileResponse
getFileResponse_httpStatus = (GetFileResponse -> Int)
-> (GetFileResponse -> Int -> GetFileResponse)
-> Lens GetFileResponse GetFileResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFileResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetFileResponse' :: GetFileResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetFileResponse
s@GetFileResponse' {} Int
a -> GetFileResponse
s {$sel:httpStatus:GetFileResponse' :: Int
httpStatus = Int
a} :: GetFileResponse)
getFileResponse_commitId :: Lens.Lens' GetFileResponse Prelude.Text
getFileResponse_commitId :: (Text -> f Text) -> GetFileResponse -> f GetFileResponse
getFileResponse_commitId = (GetFileResponse -> Text)
-> (GetFileResponse -> Text -> GetFileResponse)
-> Lens GetFileResponse GetFileResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFileResponse' {Text
commitId :: Text
$sel:commitId:GetFileResponse' :: GetFileResponse -> Text
commitId} -> Text
commitId) (\s :: GetFileResponse
s@GetFileResponse' {} Text
a -> GetFileResponse
s {$sel:commitId:GetFileResponse' :: Text
commitId = Text
a} :: GetFileResponse)
getFileResponse_blobId :: Lens.Lens' GetFileResponse Prelude.Text
getFileResponse_blobId :: (Text -> f Text) -> GetFileResponse -> f GetFileResponse
getFileResponse_blobId = (GetFileResponse -> Text)
-> (GetFileResponse -> Text -> GetFileResponse)
-> Lens GetFileResponse GetFileResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFileResponse' {Text
blobId :: Text
$sel:blobId:GetFileResponse' :: GetFileResponse -> Text
blobId} -> Text
blobId) (\s :: GetFileResponse
s@GetFileResponse' {} Text
a -> GetFileResponse
s {$sel:blobId:GetFileResponse' :: Text
blobId = Text
a} :: GetFileResponse)
getFileResponse_filePath :: Lens.Lens' GetFileResponse Prelude.Text
getFileResponse_filePath :: (Text -> f Text) -> GetFileResponse -> f GetFileResponse
getFileResponse_filePath = (GetFileResponse -> Text)
-> (GetFileResponse -> Text -> GetFileResponse)
-> Lens GetFileResponse GetFileResponse Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFileResponse' {Text
filePath :: Text
$sel:filePath:GetFileResponse' :: GetFileResponse -> Text
filePath} -> Text
filePath) (\s :: GetFileResponse
s@GetFileResponse' {} Text
a -> GetFileResponse
s {$sel:filePath:GetFileResponse' :: Text
filePath = Text
a} :: GetFileResponse)
getFileResponse_fileMode :: Lens.Lens' GetFileResponse FileModeTypeEnum
getFileResponse_fileMode :: (FileModeTypeEnum -> f FileModeTypeEnum)
-> GetFileResponse -> f GetFileResponse
getFileResponse_fileMode = (GetFileResponse -> FileModeTypeEnum)
-> (GetFileResponse -> FileModeTypeEnum -> GetFileResponse)
-> Lens
GetFileResponse GetFileResponse FileModeTypeEnum FileModeTypeEnum
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFileResponse' {FileModeTypeEnum
fileMode :: FileModeTypeEnum
$sel:fileMode:GetFileResponse' :: GetFileResponse -> FileModeTypeEnum
fileMode} -> FileModeTypeEnum
fileMode) (\s :: GetFileResponse
s@GetFileResponse' {} FileModeTypeEnum
a -> GetFileResponse
s {$sel:fileMode:GetFileResponse' :: FileModeTypeEnum
fileMode = FileModeTypeEnum
a} :: GetFileResponse)
getFileResponse_fileSize :: Lens.Lens' GetFileResponse Prelude.Integer
getFileResponse_fileSize :: (Integer -> f Integer) -> GetFileResponse -> f GetFileResponse
getFileResponse_fileSize = (GetFileResponse -> Integer)
-> (GetFileResponse -> Integer -> GetFileResponse)
-> Lens GetFileResponse GetFileResponse Integer Integer
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFileResponse' {Integer
fileSize :: Integer
$sel:fileSize:GetFileResponse' :: GetFileResponse -> Integer
fileSize} -> Integer
fileSize) (\s :: GetFileResponse
s@GetFileResponse' {} Integer
a -> GetFileResponse
s {$sel:fileSize:GetFileResponse' :: Integer
fileSize = Integer
a} :: GetFileResponse)
getFileResponse_fileContent :: Lens.Lens' GetFileResponse Prelude.ByteString
getFileResponse_fileContent :: (ByteString -> f ByteString)
-> GetFileResponse -> f GetFileResponse
getFileResponse_fileContent = (GetFileResponse -> Base64)
-> (GetFileResponse -> Base64 -> GetFileResponse)
-> Lens GetFileResponse GetFileResponse Base64 Base64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetFileResponse' {Base64
fileContent :: Base64
$sel:fileContent:GetFileResponse' :: GetFileResponse -> Base64
fileContent} -> Base64
fileContent) (\s :: GetFileResponse
s@GetFileResponse' {} Base64
a -> GetFileResponse
s {$sel:fileContent:GetFileResponse' :: Base64
fileContent = Base64
a} :: GetFileResponse) ((Base64 -> f Base64) -> GetFileResponse -> f GetFileResponse)
-> ((ByteString -> f ByteString) -> Base64 -> f Base64)
-> (ByteString -> f ByteString)
-> GetFileResponse
-> f GetFileResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (ByteString -> f ByteString) -> Base64 -> f Base64
Iso' Base64 ByteString
Core._Base64
instance Prelude.NFData GetFileResponse