{-# 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.ECR.UploadLayerPart
(
UploadLayerPart (..),
newUploadLayerPart,
uploadLayerPart_registryId,
uploadLayerPart_repositoryName,
uploadLayerPart_uploadId,
uploadLayerPart_partFirstByte,
uploadLayerPart_partLastByte,
uploadLayerPart_layerPartBlob,
UploadLayerPartResponse (..),
newUploadLayerPartResponse,
uploadLayerPartResponse_registryId,
uploadLayerPartResponse_lastByteReceived,
uploadLayerPartResponse_repositoryName,
uploadLayerPartResponse_uploadId,
uploadLayerPartResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.ECR.Types
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 UploadLayerPart = UploadLayerPart'
{
UploadLayerPart -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
UploadLayerPart -> Text
repositoryName :: Prelude.Text,
UploadLayerPart -> Text
uploadId :: Prelude.Text,
UploadLayerPart -> Natural
partFirstByte :: Prelude.Natural,
UploadLayerPart -> Natural
partLastByte :: Prelude.Natural,
UploadLayerPart -> Base64
layerPartBlob :: Core.Base64
}
deriving (UploadLayerPart -> UploadLayerPart -> Bool
(UploadLayerPart -> UploadLayerPart -> Bool)
-> (UploadLayerPart -> UploadLayerPart -> Bool)
-> Eq UploadLayerPart
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UploadLayerPart -> UploadLayerPart -> Bool
$c/= :: UploadLayerPart -> UploadLayerPart -> Bool
== :: UploadLayerPart -> UploadLayerPart -> Bool
$c== :: UploadLayerPart -> UploadLayerPart -> Bool
Prelude.Eq, ReadPrec [UploadLayerPart]
ReadPrec UploadLayerPart
Int -> ReadS UploadLayerPart
ReadS [UploadLayerPart]
(Int -> ReadS UploadLayerPart)
-> ReadS [UploadLayerPart]
-> ReadPrec UploadLayerPart
-> ReadPrec [UploadLayerPart]
-> Read UploadLayerPart
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UploadLayerPart]
$creadListPrec :: ReadPrec [UploadLayerPart]
readPrec :: ReadPrec UploadLayerPart
$creadPrec :: ReadPrec UploadLayerPart
readList :: ReadS [UploadLayerPart]
$creadList :: ReadS [UploadLayerPart]
readsPrec :: Int -> ReadS UploadLayerPart
$creadsPrec :: Int -> ReadS UploadLayerPart
Prelude.Read, Int -> UploadLayerPart -> ShowS
[UploadLayerPart] -> ShowS
UploadLayerPart -> String
(Int -> UploadLayerPart -> ShowS)
-> (UploadLayerPart -> String)
-> ([UploadLayerPart] -> ShowS)
-> Show UploadLayerPart
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UploadLayerPart] -> ShowS
$cshowList :: [UploadLayerPart] -> ShowS
show :: UploadLayerPart -> String
$cshow :: UploadLayerPart -> String
showsPrec :: Int -> UploadLayerPart -> ShowS
$cshowsPrec :: Int -> UploadLayerPart -> ShowS
Prelude.Show, (forall x. UploadLayerPart -> Rep UploadLayerPart x)
-> (forall x. Rep UploadLayerPart x -> UploadLayerPart)
-> Generic UploadLayerPart
forall x. Rep UploadLayerPart x -> UploadLayerPart
forall x. UploadLayerPart -> Rep UploadLayerPart x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UploadLayerPart x -> UploadLayerPart
$cfrom :: forall x. UploadLayerPart -> Rep UploadLayerPart x
Prelude.Generic)
newUploadLayerPart ::
Prelude.Text ->
Prelude.Text ->
Prelude.Natural ->
Prelude.Natural ->
Prelude.ByteString ->
UploadLayerPart
newUploadLayerPart :: Text -> Text -> Natural -> Natural -> ByteString -> UploadLayerPart
newUploadLayerPart
Text
pRepositoryName_
Text
pUploadId_
Natural
pPartFirstByte_
Natural
pPartLastByte_
ByteString
pLayerPartBlob_ =
UploadLayerPart' :: Maybe Text
-> Text -> Text -> Natural -> Natural -> Base64 -> UploadLayerPart
UploadLayerPart'
{ $sel:registryId:UploadLayerPart' :: Maybe Text
registryId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:UploadLayerPart' :: Text
repositoryName = Text
pRepositoryName_,
$sel:uploadId:UploadLayerPart' :: Text
uploadId = Text
pUploadId_,
$sel:partFirstByte:UploadLayerPart' :: Natural
partFirstByte = Natural
pPartFirstByte_,
$sel:partLastByte:UploadLayerPart' :: Natural
partLastByte = Natural
pPartLastByte_,
$sel:layerPartBlob:UploadLayerPart' :: Base64
layerPartBlob = 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
pLayerPartBlob_
}
uploadLayerPart_registryId :: Lens.Lens' UploadLayerPart (Prelude.Maybe Prelude.Text)
uploadLayerPart_registryId :: (Maybe Text -> f (Maybe Text))
-> UploadLayerPart -> f UploadLayerPart
uploadLayerPart_registryId = (UploadLayerPart -> Maybe Text)
-> (UploadLayerPart -> Maybe Text -> UploadLayerPart)
-> Lens UploadLayerPart UploadLayerPart (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadLayerPart' {Maybe Text
registryId :: Maybe Text
$sel:registryId:UploadLayerPart' :: UploadLayerPart -> Maybe Text
registryId} -> Maybe Text
registryId) (\s :: UploadLayerPart
s@UploadLayerPart' {} Maybe Text
a -> UploadLayerPart
s {$sel:registryId:UploadLayerPart' :: Maybe Text
registryId = Maybe Text
a} :: UploadLayerPart)
uploadLayerPart_repositoryName :: Lens.Lens' UploadLayerPart Prelude.Text
uploadLayerPart_repositoryName :: (Text -> f Text) -> UploadLayerPart -> f UploadLayerPart
uploadLayerPart_repositoryName = (UploadLayerPart -> Text)
-> (UploadLayerPart -> Text -> UploadLayerPart)
-> Lens UploadLayerPart UploadLayerPart Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadLayerPart' {Text
repositoryName :: Text
$sel:repositoryName:UploadLayerPart' :: UploadLayerPart -> Text
repositoryName} -> Text
repositoryName) (\s :: UploadLayerPart
s@UploadLayerPart' {} Text
a -> UploadLayerPart
s {$sel:repositoryName:UploadLayerPart' :: Text
repositoryName = Text
a} :: UploadLayerPart)
uploadLayerPart_uploadId :: Lens.Lens' UploadLayerPart Prelude.Text
uploadLayerPart_uploadId :: (Text -> f Text) -> UploadLayerPart -> f UploadLayerPart
uploadLayerPart_uploadId = (UploadLayerPart -> Text)
-> (UploadLayerPart -> Text -> UploadLayerPart)
-> Lens UploadLayerPart UploadLayerPart Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadLayerPart' {Text
uploadId :: Text
$sel:uploadId:UploadLayerPart' :: UploadLayerPart -> Text
uploadId} -> Text
uploadId) (\s :: UploadLayerPart
s@UploadLayerPart' {} Text
a -> UploadLayerPart
s {$sel:uploadId:UploadLayerPart' :: Text
uploadId = Text
a} :: UploadLayerPart)
uploadLayerPart_partFirstByte :: Lens.Lens' UploadLayerPart Prelude.Natural
uploadLayerPart_partFirstByte :: (Natural -> f Natural) -> UploadLayerPart -> f UploadLayerPart
uploadLayerPart_partFirstByte = (UploadLayerPart -> Natural)
-> (UploadLayerPart -> Natural -> UploadLayerPart)
-> Lens UploadLayerPart UploadLayerPart Natural Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadLayerPart' {Natural
partFirstByte :: Natural
$sel:partFirstByte:UploadLayerPart' :: UploadLayerPart -> Natural
partFirstByte} -> Natural
partFirstByte) (\s :: UploadLayerPart
s@UploadLayerPart' {} Natural
a -> UploadLayerPart
s {$sel:partFirstByte:UploadLayerPart' :: Natural
partFirstByte = Natural
a} :: UploadLayerPart)
uploadLayerPart_partLastByte :: Lens.Lens' UploadLayerPart Prelude.Natural
uploadLayerPart_partLastByte :: (Natural -> f Natural) -> UploadLayerPart -> f UploadLayerPart
uploadLayerPart_partLastByte = (UploadLayerPart -> Natural)
-> (UploadLayerPart -> Natural -> UploadLayerPart)
-> Lens UploadLayerPart UploadLayerPart Natural Natural
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadLayerPart' {Natural
partLastByte :: Natural
$sel:partLastByte:UploadLayerPart' :: UploadLayerPart -> Natural
partLastByte} -> Natural
partLastByte) (\s :: UploadLayerPart
s@UploadLayerPart' {} Natural
a -> UploadLayerPart
s {$sel:partLastByte:UploadLayerPart' :: Natural
partLastByte = Natural
a} :: UploadLayerPart)
uploadLayerPart_layerPartBlob :: Lens.Lens' UploadLayerPart Prelude.ByteString
uploadLayerPart_layerPartBlob :: (ByteString -> f ByteString)
-> UploadLayerPart -> f UploadLayerPart
uploadLayerPart_layerPartBlob = (UploadLayerPart -> Base64)
-> (UploadLayerPart -> Base64 -> UploadLayerPart)
-> Lens UploadLayerPart UploadLayerPart Base64 Base64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadLayerPart' {Base64
layerPartBlob :: Base64
$sel:layerPartBlob:UploadLayerPart' :: UploadLayerPart -> Base64
layerPartBlob} -> Base64
layerPartBlob) (\s :: UploadLayerPart
s@UploadLayerPart' {} Base64
a -> UploadLayerPart
s {$sel:layerPartBlob:UploadLayerPart' :: Base64
layerPartBlob = Base64
a} :: UploadLayerPart) ((Base64 -> f Base64) -> UploadLayerPart -> f UploadLayerPart)
-> ((ByteString -> f ByteString) -> Base64 -> f Base64)
-> (ByteString -> f ByteString)
-> UploadLayerPart
-> f UploadLayerPart
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (ByteString -> f ByteString) -> Base64 -> f Base64
Iso' Base64 ByteString
Core._Base64
instance Core.AWSRequest UploadLayerPart where
type
AWSResponse UploadLayerPart =
UploadLayerPartResponse
request :: UploadLayerPart -> Request UploadLayerPart
request = Service -> UploadLayerPart -> Request UploadLayerPart
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy UploadLayerPart
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UploadLayerPart)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse UploadLayerPart))
-> Logger
-> Service
-> Proxy UploadLayerPart
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse UploadLayerPart)))
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 Natural
-> Maybe Text
-> Maybe Text
-> Int
-> UploadLayerPartResponse
UploadLayerPartResponse'
(Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Int
-> UploadLayerPartResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Natural
-> Maybe Text -> Maybe Text -> Int -> UploadLayerPartResponse)
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
"registryId")
Either
String
(Maybe Natural
-> Maybe Text -> Maybe Text -> Int -> UploadLayerPartResponse)
-> Either String (Maybe Natural)
-> Either
String (Maybe Text -> Maybe Text -> Int -> UploadLayerPartResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Natural)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"lastByteReceived")
Either
String (Maybe Text -> Maybe Text -> Int -> UploadLayerPartResponse)
-> Either String (Maybe Text)
-> Either String (Maybe Text -> Int -> UploadLayerPartResponse)
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
"repositoryName")
Either String (Maybe Text -> Int -> UploadLayerPartResponse)
-> Either String (Maybe Text)
-> Either String (Int -> UploadLayerPartResponse)
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
"uploadId")
Either String (Int -> UploadLayerPartResponse)
-> Either String Int -> Either String UploadLayerPartResponse
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 UploadLayerPart
instance Prelude.NFData UploadLayerPart
instance Core.ToHeaders UploadLayerPart where
toHeaders :: UploadLayerPart -> ResponseHeaders
toHeaders =
ResponseHeaders -> UploadLayerPart -> 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
"AmazonEC2ContainerRegistry_V20150921.UploadLayerPart" ::
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 UploadLayerPart where
toJSON :: UploadLayerPart -> Value
toJSON UploadLayerPart' {Natural
Maybe Text
Text
Base64
layerPartBlob :: Base64
partLastByte :: Natural
partFirstByte :: Natural
uploadId :: Text
repositoryName :: Text
registryId :: Maybe Text
$sel:layerPartBlob:UploadLayerPart' :: UploadLayerPart -> Base64
$sel:partLastByte:UploadLayerPart' :: UploadLayerPart -> Natural
$sel:partFirstByte:UploadLayerPart' :: UploadLayerPart -> Natural
$sel:uploadId:UploadLayerPart' :: UploadLayerPart -> Text
$sel:repositoryName:UploadLayerPart' :: UploadLayerPart -> Text
$sel:registryId:UploadLayerPart' :: UploadLayerPart -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"registryId" 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
registryId,
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
"uploadId" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
uploadId),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"partFirstByte" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
partFirstByte),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"partLastByte" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Natural
partLastByte),
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
(Text
"layerPartBlob" Text -> Base64 -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Base64
layerPartBlob)
]
)
instance Core.ToPath UploadLayerPart where
toPath :: UploadLayerPart -> ByteString
toPath = ByteString -> UploadLayerPart -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery UploadLayerPart where
toQuery :: UploadLayerPart -> QueryString
toQuery = QueryString -> UploadLayerPart -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data UploadLayerPartResponse = UploadLayerPartResponse'
{
UploadLayerPartResponse -> Maybe Text
registryId :: Prelude.Maybe Prelude.Text,
UploadLayerPartResponse -> Maybe Natural
lastByteReceived :: Prelude.Maybe Prelude.Natural,
UploadLayerPartResponse -> Maybe Text
repositoryName :: Prelude.Maybe Prelude.Text,
UploadLayerPartResponse -> Maybe Text
uploadId :: Prelude.Maybe Prelude.Text,
UploadLayerPartResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UploadLayerPartResponse -> UploadLayerPartResponse -> Bool
(UploadLayerPartResponse -> UploadLayerPartResponse -> Bool)
-> (UploadLayerPartResponse -> UploadLayerPartResponse -> Bool)
-> Eq UploadLayerPartResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UploadLayerPartResponse -> UploadLayerPartResponse -> Bool
$c/= :: UploadLayerPartResponse -> UploadLayerPartResponse -> Bool
== :: UploadLayerPartResponse -> UploadLayerPartResponse -> Bool
$c== :: UploadLayerPartResponse -> UploadLayerPartResponse -> Bool
Prelude.Eq, ReadPrec [UploadLayerPartResponse]
ReadPrec UploadLayerPartResponse
Int -> ReadS UploadLayerPartResponse
ReadS [UploadLayerPartResponse]
(Int -> ReadS UploadLayerPartResponse)
-> ReadS [UploadLayerPartResponse]
-> ReadPrec UploadLayerPartResponse
-> ReadPrec [UploadLayerPartResponse]
-> Read UploadLayerPartResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [UploadLayerPartResponse]
$creadListPrec :: ReadPrec [UploadLayerPartResponse]
readPrec :: ReadPrec UploadLayerPartResponse
$creadPrec :: ReadPrec UploadLayerPartResponse
readList :: ReadS [UploadLayerPartResponse]
$creadList :: ReadS [UploadLayerPartResponse]
readsPrec :: Int -> ReadS UploadLayerPartResponse
$creadsPrec :: Int -> ReadS UploadLayerPartResponse
Prelude.Read, Int -> UploadLayerPartResponse -> ShowS
[UploadLayerPartResponse] -> ShowS
UploadLayerPartResponse -> String
(Int -> UploadLayerPartResponse -> ShowS)
-> (UploadLayerPartResponse -> String)
-> ([UploadLayerPartResponse] -> ShowS)
-> Show UploadLayerPartResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UploadLayerPartResponse] -> ShowS
$cshowList :: [UploadLayerPartResponse] -> ShowS
show :: UploadLayerPartResponse -> String
$cshow :: UploadLayerPartResponse -> String
showsPrec :: Int -> UploadLayerPartResponse -> ShowS
$cshowsPrec :: Int -> UploadLayerPartResponse -> ShowS
Prelude.Show, (forall x.
UploadLayerPartResponse -> Rep UploadLayerPartResponse x)
-> (forall x.
Rep UploadLayerPartResponse x -> UploadLayerPartResponse)
-> Generic UploadLayerPartResponse
forall x. Rep UploadLayerPartResponse x -> UploadLayerPartResponse
forall x. UploadLayerPartResponse -> Rep UploadLayerPartResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UploadLayerPartResponse x -> UploadLayerPartResponse
$cfrom :: forall x. UploadLayerPartResponse -> Rep UploadLayerPartResponse x
Prelude.Generic)
newUploadLayerPartResponse ::
Prelude.Int ->
UploadLayerPartResponse
newUploadLayerPartResponse :: Int -> UploadLayerPartResponse
newUploadLayerPartResponse Int
pHttpStatus_ =
UploadLayerPartResponse' :: Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Text
-> Int
-> UploadLayerPartResponse
UploadLayerPartResponse'
{ $sel:registryId:UploadLayerPartResponse' :: Maybe Text
registryId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lastByteReceived:UploadLayerPartResponse' :: Maybe Natural
lastByteReceived = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:repositoryName:UploadLayerPartResponse' :: Maybe Text
repositoryName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:uploadId:UploadLayerPartResponse' :: Maybe Text
uploadId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UploadLayerPartResponse' :: Int
httpStatus = Int
pHttpStatus_
}
uploadLayerPartResponse_registryId :: Lens.Lens' UploadLayerPartResponse (Prelude.Maybe Prelude.Text)
uploadLayerPartResponse_registryId :: (Maybe Text -> f (Maybe Text))
-> UploadLayerPartResponse -> f UploadLayerPartResponse
uploadLayerPartResponse_registryId = (UploadLayerPartResponse -> Maybe Text)
-> (UploadLayerPartResponse
-> Maybe Text -> UploadLayerPartResponse)
-> Lens
UploadLayerPartResponse
UploadLayerPartResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadLayerPartResponse' {Maybe Text
registryId :: Maybe Text
$sel:registryId:UploadLayerPartResponse' :: UploadLayerPartResponse -> Maybe Text
registryId} -> Maybe Text
registryId) (\s :: UploadLayerPartResponse
s@UploadLayerPartResponse' {} Maybe Text
a -> UploadLayerPartResponse
s {$sel:registryId:UploadLayerPartResponse' :: Maybe Text
registryId = Maybe Text
a} :: UploadLayerPartResponse)
uploadLayerPartResponse_lastByteReceived :: Lens.Lens' UploadLayerPartResponse (Prelude.Maybe Prelude.Natural)
uploadLayerPartResponse_lastByteReceived :: (Maybe Natural -> f (Maybe Natural))
-> UploadLayerPartResponse -> f UploadLayerPartResponse
uploadLayerPartResponse_lastByteReceived = (UploadLayerPartResponse -> Maybe Natural)
-> (UploadLayerPartResponse
-> Maybe Natural -> UploadLayerPartResponse)
-> Lens
UploadLayerPartResponse
UploadLayerPartResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadLayerPartResponse' {Maybe Natural
lastByteReceived :: Maybe Natural
$sel:lastByteReceived:UploadLayerPartResponse' :: UploadLayerPartResponse -> Maybe Natural
lastByteReceived} -> Maybe Natural
lastByteReceived) (\s :: UploadLayerPartResponse
s@UploadLayerPartResponse' {} Maybe Natural
a -> UploadLayerPartResponse
s {$sel:lastByteReceived:UploadLayerPartResponse' :: Maybe Natural
lastByteReceived = Maybe Natural
a} :: UploadLayerPartResponse)
uploadLayerPartResponse_repositoryName :: Lens.Lens' UploadLayerPartResponse (Prelude.Maybe Prelude.Text)
uploadLayerPartResponse_repositoryName :: (Maybe Text -> f (Maybe Text))
-> UploadLayerPartResponse -> f UploadLayerPartResponse
uploadLayerPartResponse_repositoryName = (UploadLayerPartResponse -> Maybe Text)
-> (UploadLayerPartResponse
-> Maybe Text -> UploadLayerPartResponse)
-> Lens
UploadLayerPartResponse
UploadLayerPartResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadLayerPartResponse' {Maybe Text
repositoryName :: Maybe Text
$sel:repositoryName:UploadLayerPartResponse' :: UploadLayerPartResponse -> Maybe Text
repositoryName} -> Maybe Text
repositoryName) (\s :: UploadLayerPartResponse
s@UploadLayerPartResponse' {} Maybe Text
a -> UploadLayerPartResponse
s {$sel:repositoryName:UploadLayerPartResponse' :: Maybe Text
repositoryName = Maybe Text
a} :: UploadLayerPartResponse)
uploadLayerPartResponse_uploadId :: Lens.Lens' UploadLayerPartResponse (Prelude.Maybe Prelude.Text)
uploadLayerPartResponse_uploadId :: (Maybe Text -> f (Maybe Text))
-> UploadLayerPartResponse -> f UploadLayerPartResponse
uploadLayerPartResponse_uploadId = (UploadLayerPartResponse -> Maybe Text)
-> (UploadLayerPartResponse
-> Maybe Text -> UploadLayerPartResponse)
-> Lens
UploadLayerPartResponse
UploadLayerPartResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadLayerPartResponse' {Maybe Text
uploadId :: Maybe Text
$sel:uploadId:UploadLayerPartResponse' :: UploadLayerPartResponse -> Maybe Text
uploadId} -> Maybe Text
uploadId) (\s :: UploadLayerPartResponse
s@UploadLayerPartResponse' {} Maybe Text
a -> UploadLayerPartResponse
s {$sel:uploadId:UploadLayerPartResponse' :: Maybe Text
uploadId = Maybe Text
a} :: UploadLayerPartResponse)
uploadLayerPartResponse_httpStatus :: Lens.Lens' UploadLayerPartResponse Prelude.Int
uploadLayerPartResponse_httpStatus :: (Int -> f Int)
-> UploadLayerPartResponse -> f UploadLayerPartResponse
uploadLayerPartResponse_httpStatus = (UploadLayerPartResponse -> Int)
-> (UploadLayerPartResponse -> Int -> UploadLayerPartResponse)
-> Lens UploadLayerPartResponse UploadLayerPartResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UploadLayerPartResponse' {Int
httpStatus :: Int
$sel:httpStatus:UploadLayerPartResponse' :: UploadLayerPartResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UploadLayerPartResponse
s@UploadLayerPartResponse' {} Int
a -> UploadLayerPartResponse
s {$sel:httpStatus:UploadLayerPartResponse' :: Int
httpStatus = Int
a} :: UploadLayerPartResponse)
instance Prelude.NFData UploadLayerPartResponse