{-# 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.EBS.ListChangedBlocks
(
ListChangedBlocks (..),
newListChangedBlocks,
listChangedBlocks_nextToken,
listChangedBlocks_startingBlockIndex,
listChangedBlocks_firstSnapshotId,
listChangedBlocks_maxResults,
listChangedBlocks_secondSnapshotId,
ListChangedBlocksResponse (..),
newListChangedBlocksResponse,
listChangedBlocksResponse_blockSize,
listChangedBlocksResponse_expiryTime,
listChangedBlocksResponse_volumeSize,
listChangedBlocksResponse_changedBlocks,
listChangedBlocksResponse_nextToken,
listChangedBlocksResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.EBS.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 ListChangedBlocks = ListChangedBlocks'
{
ListChangedBlocks -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListChangedBlocks -> Maybe Natural
startingBlockIndex :: Prelude.Maybe Prelude.Natural,
ListChangedBlocks -> Maybe Text
firstSnapshotId :: Prelude.Maybe Prelude.Text,
ListChangedBlocks -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListChangedBlocks -> Text
secondSnapshotId :: Prelude.Text
}
deriving (ListChangedBlocks -> ListChangedBlocks -> Bool
(ListChangedBlocks -> ListChangedBlocks -> Bool)
-> (ListChangedBlocks -> ListChangedBlocks -> Bool)
-> Eq ListChangedBlocks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListChangedBlocks -> ListChangedBlocks -> Bool
$c/= :: ListChangedBlocks -> ListChangedBlocks -> Bool
== :: ListChangedBlocks -> ListChangedBlocks -> Bool
$c== :: ListChangedBlocks -> ListChangedBlocks -> Bool
Prelude.Eq, ReadPrec [ListChangedBlocks]
ReadPrec ListChangedBlocks
Int -> ReadS ListChangedBlocks
ReadS [ListChangedBlocks]
(Int -> ReadS ListChangedBlocks)
-> ReadS [ListChangedBlocks]
-> ReadPrec ListChangedBlocks
-> ReadPrec [ListChangedBlocks]
-> Read ListChangedBlocks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListChangedBlocks]
$creadListPrec :: ReadPrec [ListChangedBlocks]
readPrec :: ReadPrec ListChangedBlocks
$creadPrec :: ReadPrec ListChangedBlocks
readList :: ReadS [ListChangedBlocks]
$creadList :: ReadS [ListChangedBlocks]
readsPrec :: Int -> ReadS ListChangedBlocks
$creadsPrec :: Int -> ReadS ListChangedBlocks
Prelude.Read, Int -> ListChangedBlocks -> ShowS
[ListChangedBlocks] -> ShowS
ListChangedBlocks -> String
(Int -> ListChangedBlocks -> ShowS)
-> (ListChangedBlocks -> String)
-> ([ListChangedBlocks] -> ShowS)
-> Show ListChangedBlocks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListChangedBlocks] -> ShowS
$cshowList :: [ListChangedBlocks] -> ShowS
show :: ListChangedBlocks -> String
$cshow :: ListChangedBlocks -> String
showsPrec :: Int -> ListChangedBlocks -> ShowS
$cshowsPrec :: Int -> ListChangedBlocks -> ShowS
Prelude.Show, (forall x. ListChangedBlocks -> Rep ListChangedBlocks x)
-> (forall x. Rep ListChangedBlocks x -> ListChangedBlocks)
-> Generic ListChangedBlocks
forall x. Rep ListChangedBlocks x -> ListChangedBlocks
forall x. ListChangedBlocks -> Rep ListChangedBlocks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListChangedBlocks x -> ListChangedBlocks
$cfrom :: forall x. ListChangedBlocks -> Rep ListChangedBlocks x
Prelude.Generic)
newListChangedBlocks ::
Prelude.Text ->
ListChangedBlocks
newListChangedBlocks :: Text -> ListChangedBlocks
newListChangedBlocks Text
pSecondSnapshotId_ =
ListChangedBlocks' :: Maybe Text
-> Maybe Natural
-> Maybe Text
-> Maybe Natural
-> Text
-> ListChangedBlocks
ListChangedBlocks'
{ $sel:nextToken:ListChangedBlocks' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:startingBlockIndex:ListChangedBlocks' :: Maybe Natural
startingBlockIndex = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:firstSnapshotId:ListChangedBlocks' :: Maybe Text
firstSnapshotId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListChangedBlocks' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:secondSnapshotId:ListChangedBlocks' :: Text
secondSnapshotId = Text
pSecondSnapshotId_
}
listChangedBlocks_nextToken :: Lens.Lens' ListChangedBlocks (Prelude.Maybe Prelude.Text)
listChangedBlocks_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListChangedBlocks -> f ListChangedBlocks
listChangedBlocks_nextToken = (ListChangedBlocks -> Maybe Text)
-> (ListChangedBlocks -> Maybe Text -> ListChangedBlocks)
-> Lens
ListChangedBlocks ListChangedBlocks (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChangedBlocks' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListChangedBlocks' :: ListChangedBlocks -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListChangedBlocks
s@ListChangedBlocks' {} Maybe Text
a -> ListChangedBlocks
s {$sel:nextToken:ListChangedBlocks' :: Maybe Text
nextToken = Maybe Text
a} :: ListChangedBlocks)
listChangedBlocks_startingBlockIndex :: Lens.Lens' ListChangedBlocks (Prelude.Maybe Prelude.Natural)
listChangedBlocks_startingBlockIndex :: (Maybe Natural -> f (Maybe Natural))
-> ListChangedBlocks -> f ListChangedBlocks
listChangedBlocks_startingBlockIndex = (ListChangedBlocks -> Maybe Natural)
-> (ListChangedBlocks -> Maybe Natural -> ListChangedBlocks)
-> Lens
ListChangedBlocks ListChangedBlocks (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChangedBlocks' {Maybe Natural
startingBlockIndex :: Maybe Natural
$sel:startingBlockIndex:ListChangedBlocks' :: ListChangedBlocks -> Maybe Natural
startingBlockIndex} -> Maybe Natural
startingBlockIndex) (\s :: ListChangedBlocks
s@ListChangedBlocks' {} Maybe Natural
a -> ListChangedBlocks
s {$sel:startingBlockIndex:ListChangedBlocks' :: Maybe Natural
startingBlockIndex = Maybe Natural
a} :: ListChangedBlocks)
listChangedBlocks_firstSnapshotId :: Lens.Lens' ListChangedBlocks (Prelude.Maybe Prelude.Text)
listChangedBlocks_firstSnapshotId :: (Maybe Text -> f (Maybe Text))
-> ListChangedBlocks -> f ListChangedBlocks
listChangedBlocks_firstSnapshotId = (ListChangedBlocks -> Maybe Text)
-> (ListChangedBlocks -> Maybe Text -> ListChangedBlocks)
-> Lens
ListChangedBlocks ListChangedBlocks (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChangedBlocks' {Maybe Text
firstSnapshotId :: Maybe Text
$sel:firstSnapshotId:ListChangedBlocks' :: ListChangedBlocks -> Maybe Text
firstSnapshotId} -> Maybe Text
firstSnapshotId) (\s :: ListChangedBlocks
s@ListChangedBlocks' {} Maybe Text
a -> ListChangedBlocks
s {$sel:firstSnapshotId:ListChangedBlocks' :: Maybe Text
firstSnapshotId = Maybe Text
a} :: ListChangedBlocks)
listChangedBlocks_maxResults :: Lens.Lens' ListChangedBlocks (Prelude.Maybe Prelude.Natural)
listChangedBlocks_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListChangedBlocks -> f ListChangedBlocks
listChangedBlocks_maxResults = (ListChangedBlocks -> Maybe Natural)
-> (ListChangedBlocks -> Maybe Natural -> ListChangedBlocks)
-> Lens
ListChangedBlocks ListChangedBlocks (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChangedBlocks' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListChangedBlocks' :: ListChangedBlocks -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListChangedBlocks
s@ListChangedBlocks' {} Maybe Natural
a -> ListChangedBlocks
s {$sel:maxResults:ListChangedBlocks' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListChangedBlocks)
listChangedBlocks_secondSnapshotId :: Lens.Lens' ListChangedBlocks Prelude.Text
listChangedBlocks_secondSnapshotId :: (Text -> f Text) -> ListChangedBlocks -> f ListChangedBlocks
listChangedBlocks_secondSnapshotId = (ListChangedBlocks -> Text)
-> (ListChangedBlocks -> Text -> ListChangedBlocks)
-> Lens ListChangedBlocks ListChangedBlocks Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChangedBlocks' {Text
secondSnapshotId :: Text
$sel:secondSnapshotId:ListChangedBlocks' :: ListChangedBlocks -> Text
secondSnapshotId} -> Text
secondSnapshotId) (\s :: ListChangedBlocks
s@ListChangedBlocks' {} Text
a -> ListChangedBlocks
s {$sel:secondSnapshotId:ListChangedBlocks' :: Text
secondSnapshotId = Text
a} :: ListChangedBlocks)
instance Core.AWSRequest ListChangedBlocks where
type
AWSResponse ListChangedBlocks =
ListChangedBlocksResponse
request :: ListChangedBlocks -> Request ListChangedBlocks
request = Service -> ListChangedBlocks -> Request ListChangedBlocks
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListChangedBlocks
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListChangedBlocks)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListChangedBlocks))
-> Logger
-> Service
-> Proxy ListChangedBlocks
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListChangedBlocks)))
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 Int
-> Maybe POSIX
-> Maybe Natural
-> Maybe [Sensitive ChangedBlock]
-> Maybe Text
-> Int
-> ListChangedBlocksResponse
ListChangedBlocksResponse'
(Maybe Int
-> Maybe POSIX
-> Maybe Natural
-> Maybe [Sensitive ChangedBlock]
-> Maybe Text
-> Int
-> ListChangedBlocksResponse)
-> Either String (Maybe Int)
-> Either
String
(Maybe POSIX
-> Maybe Natural
-> Maybe [Sensitive ChangedBlock]
-> Maybe Text
-> Int
-> ListChangedBlocksResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Int)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"BlockSize")
Either
String
(Maybe POSIX
-> Maybe Natural
-> Maybe [Sensitive ChangedBlock]
-> Maybe Text
-> Int
-> ListChangedBlocksResponse)
-> Either String (Maybe POSIX)
-> Either
String
(Maybe Natural
-> Maybe [Sensitive ChangedBlock]
-> Maybe Text
-> Int
-> ListChangedBlocksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe POSIX)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ExpiryTime")
Either
String
(Maybe Natural
-> Maybe [Sensitive ChangedBlock]
-> Maybe Text
-> Int
-> ListChangedBlocksResponse)
-> Either String (Maybe Natural)
-> Either
String
(Maybe [Sensitive ChangedBlock]
-> Maybe Text -> Int -> ListChangedBlocksResponse)
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
"VolumeSize")
Either
String
(Maybe [Sensitive ChangedBlock]
-> Maybe Text -> Int -> ListChangedBlocksResponse)
-> Either String (Maybe [Sensitive ChangedBlock])
-> Either String (Maybe Text -> Int -> ListChangedBlocksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [Sensitive ChangedBlock]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ChangedBlocks" Either String (Maybe (Maybe [Sensitive ChangedBlock]))
-> Maybe [Sensitive ChangedBlock]
-> Either String (Maybe [Sensitive ChangedBlock])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Sensitive ChangedBlock]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> ListChangedBlocksResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListChangedBlocksResponse)
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
"NextToken")
Either String (Int -> ListChangedBlocksResponse)
-> Either String Int -> Either String ListChangedBlocksResponse
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 ListChangedBlocks
instance Prelude.NFData ListChangedBlocks
instance Core.ToHeaders ListChangedBlocks where
toHeaders :: ListChangedBlocks -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListChangedBlocks -> 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 ListChangedBlocks where
toPath :: ListChangedBlocks -> ByteString
toPath ListChangedBlocks' {Maybe Natural
Maybe Text
Text
secondSnapshotId :: Text
maxResults :: Maybe Natural
firstSnapshotId :: Maybe Text
startingBlockIndex :: Maybe Natural
nextToken :: Maybe Text
$sel:secondSnapshotId:ListChangedBlocks' :: ListChangedBlocks -> Text
$sel:maxResults:ListChangedBlocks' :: ListChangedBlocks -> Maybe Natural
$sel:firstSnapshotId:ListChangedBlocks' :: ListChangedBlocks -> Maybe Text
$sel:startingBlockIndex:ListChangedBlocks' :: ListChangedBlocks -> Maybe Natural
$sel:nextToken:ListChangedBlocks' :: ListChangedBlocks -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/snapshots/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
secondSnapshotId,
ByteString
"/changedblocks"
]
instance Core.ToQuery ListChangedBlocks where
toQuery :: ListChangedBlocks -> QueryString
toQuery ListChangedBlocks' {Maybe Natural
Maybe Text
Text
secondSnapshotId :: Text
maxResults :: Maybe Natural
firstSnapshotId :: Maybe Text
startingBlockIndex :: Maybe Natural
nextToken :: Maybe Text
$sel:secondSnapshotId:ListChangedBlocks' :: ListChangedBlocks -> Text
$sel:maxResults:ListChangedBlocks' :: ListChangedBlocks -> Maybe Natural
$sel:firstSnapshotId:ListChangedBlocks' :: ListChangedBlocks -> Maybe Text
$sel:startingBlockIndex:ListChangedBlocks' :: ListChangedBlocks -> Maybe Natural
$sel:nextToken:ListChangedBlocks' :: ListChangedBlocks -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"pageToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"startingBlockIndex" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
startingBlockIndex,
ByteString
"firstSnapshotId" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
firstSnapshotId,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListChangedBlocksResponse = ListChangedBlocksResponse'
{
ListChangedBlocksResponse -> Maybe Int
blockSize :: Prelude.Maybe Prelude.Int,
ListChangedBlocksResponse -> Maybe POSIX
expiryTime :: Prelude.Maybe Core.POSIX,
ListChangedBlocksResponse -> Maybe Natural
volumeSize :: Prelude.Maybe Prelude.Natural,
ListChangedBlocksResponse -> Maybe [Sensitive ChangedBlock]
changedBlocks :: Prelude.Maybe [Core.Sensitive ChangedBlock],
ListChangedBlocksResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListChangedBlocksResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListChangedBlocksResponse -> ListChangedBlocksResponse -> Bool
(ListChangedBlocksResponse -> ListChangedBlocksResponse -> Bool)
-> (ListChangedBlocksResponse -> ListChangedBlocksResponse -> Bool)
-> Eq ListChangedBlocksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListChangedBlocksResponse -> ListChangedBlocksResponse -> Bool
$c/= :: ListChangedBlocksResponse -> ListChangedBlocksResponse -> Bool
== :: ListChangedBlocksResponse -> ListChangedBlocksResponse -> Bool
$c== :: ListChangedBlocksResponse -> ListChangedBlocksResponse -> Bool
Prelude.Eq, Int -> ListChangedBlocksResponse -> ShowS
[ListChangedBlocksResponse] -> ShowS
ListChangedBlocksResponse -> String
(Int -> ListChangedBlocksResponse -> ShowS)
-> (ListChangedBlocksResponse -> String)
-> ([ListChangedBlocksResponse] -> ShowS)
-> Show ListChangedBlocksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListChangedBlocksResponse] -> ShowS
$cshowList :: [ListChangedBlocksResponse] -> ShowS
show :: ListChangedBlocksResponse -> String
$cshow :: ListChangedBlocksResponse -> String
showsPrec :: Int -> ListChangedBlocksResponse -> ShowS
$cshowsPrec :: Int -> ListChangedBlocksResponse -> ShowS
Prelude.Show, (forall x.
ListChangedBlocksResponse -> Rep ListChangedBlocksResponse x)
-> (forall x.
Rep ListChangedBlocksResponse x -> ListChangedBlocksResponse)
-> Generic ListChangedBlocksResponse
forall x.
Rep ListChangedBlocksResponse x -> ListChangedBlocksResponse
forall x.
ListChangedBlocksResponse -> Rep ListChangedBlocksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListChangedBlocksResponse x -> ListChangedBlocksResponse
$cfrom :: forall x.
ListChangedBlocksResponse -> Rep ListChangedBlocksResponse x
Prelude.Generic)
newListChangedBlocksResponse ::
Prelude.Int ->
ListChangedBlocksResponse
newListChangedBlocksResponse :: Int -> ListChangedBlocksResponse
newListChangedBlocksResponse Int
pHttpStatus_ =
ListChangedBlocksResponse' :: Maybe Int
-> Maybe POSIX
-> Maybe Natural
-> Maybe [Sensitive ChangedBlock]
-> Maybe Text
-> Int
-> ListChangedBlocksResponse
ListChangedBlocksResponse'
{ $sel:blockSize:ListChangedBlocksResponse' :: Maybe Int
blockSize =
Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:expiryTime:ListChangedBlocksResponse' :: Maybe POSIX
expiryTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:volumeSize:ListChangedBlocksResponse' :: Maybe Natural
volumeSize = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:changedBlocks:ListChangedBlocksResponse' :: Maybe [Sensitive ChangedBlock]
changedBlocks = Maybe [Sensitive ChangedBlock]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListChangedBlocksResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListChangedBlocksResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listChangedBlocksResponse_blockSize :: Lens.Lens' ListChangedBlocksResponse (Prelude.Maybe Prelude.Int)
listChangedBlocksResponse_blockSize :: (Maybe Int -> f (Maybe Int))
-> ListChangedBlocksResponse -> f ListChangedBlocksResponse
listChangedBlocksResponse_blockSize = (ListChangedBlocksResponse -> Maybe Int)
-> (ListChangedBlocksResponse
-> Maybe Int -> ListChangedBlocksResponse)
-> Lens
ListChangedBlocksResponse
ListChangedBlocksResponse
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChangedBlocksResponse' {Maybe Int
blockSize :: Maybe Int
$sel:blockSize:ListChangedBlocksResponse' :: ListChangedBlocksResponse -> Maybe Int
blockSize} -> Maybe Int
blockSize) (\s :: ListChangedBlocksResponse
s@ListChangedBlocksResponse' {} Maybe Int
a -> ListChangedBlocksResponse
s {$sel:blockSize:ListChangedBlocksResponse' :: Maybe Int
blockSize = Maybe Int
a} :: ListChangedBlocksResponse)
listChangedBlocksResponse_expiryTime :: Lens.Lens' ListChangedBlocksResponse (Prelude.Maybe Prelude.UTCTime)
listChangedBlocksResponse_expiryTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListChangedBlocksResponse -> f ListChangedBlocksResponse
listChangedBlocksResponse_expiryTime = (ListChangedBlocksResponse -> Maybe POSIX)
-> (ListChangedBlocksResponse
-> Maybe POSIX -> ListChangedBlocksResponse)
-> Lens
ListChangedBlocksResponse
ListChangedBlocksResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChangedBlocksResponse' {Maybe POSIX
expiryTime :: Maybe POSIX
$sel:expiryTime:ListChangedBlocksResponse' :: ListChangedBlocksResponse -> Maybe POSIX
expiryTime} -> Maybe POSIX
expiryTime) (\s :: ListChangedBlocksResponse
s@ListChangedBlocksResponse' {} Maybe POSIX
a -> ListChangedBlocksResponse
s {$sel:expiryTime:ListChangedBlocksResponse' :: Maybe POSIX
expiryTime = Maybe POSIX
a} :: ListChangedBlocksResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> ListChangedBlocksResponse -> f ListChangedBlocksResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListChangedBlocksResponse
-> f ListChangedBlocksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
listChangedBlocksResponse_volumeSize :: Lens.Lens' ListChangedBlocksResponse (Prelude.Maybe Prelude.Natural)
listChangedBlocksResponse_volumeSize :: (Maybe Natural -> f (Maybe Natural))
-> ListChangedBlocksResponse -> f ListChangedBlocksResponse
listChangedBlocksResponse_volumeSize = (ListChangedBlocksResponse -> Maybe Natural)
-> (ListChangedBlocksResponse
-> Maybe Natural -> ListChangedBlocksResponse)
-> Lens
ListChangedBlocksResponse
ListChangedBlocksResponse
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChangedBlocksResponse' {Maybe Natural
volumeSize :: Maybe Natural
$sel:volumeSize:ListChangedBlocksResponse' :: ListChangedBlocksResponse -> Maybe Natural
volumeSize} -> Maybe Natural
volumeSize) (\s :: ListChangedBlocksResponse
s@ListChangedBlocksResponse' {} Maybe Natural
a -> ListChangedBlocksResponse
s {$sel:volumeSize:ListChangedBlocksResponse' :: Maybe Natural
volumeSize = Maybe Natural
a} :: ListChangedBlocksResponse)
listChangedBlocksResponse_changedBlocks :: Lens.Lens' ListChangedBlocksResponse (Prelude.Maybe [ChangedBlock])
listChangedBlocksResponse_changedBlocks :: (Maybe [ChangedBlock] -> f (Maybe [ChangedBlock]))
-> ListChangedBlocksResponse -> f ListChangedBlocksResponse
listChangedBlocksResponse_changedBlocks = (ListChangedBlocksResponse -> Maybe [Sensitive ChangedBlock])
-> (ListChangedBlocksResponse
-> Maybe [Sensitive ChangedBlock] -> ListChangedBlocksResponse)
-> Lens
ListChangedBlocksResponse
ListChangedBlocksResponse
(Maybe [Sensitive ChangedBlock])
(Maybe [Sensitive ChangedBlock])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChangedBlocksResponse' {Maybe [Sensitive ChangedBlock]
changedBlocks :: Maybe [Sensitive ChangedBlock]
$sel:changedBlocks:ListChangedBlocksResponse' :: ListChangedBlocksResponse -> Maybe [Sensitive ChangedBlock]
changedBlocks} -> Maybe [Sensitive ChangedBlock]
changedBlocks) (\s :: ListChangedBlocksResponse
s@ListChangedBlocksResponse' {} Maybe [Sensitive ChangedBlock]
a -> ListChangedBlocksResponse
s {$sel:changedBlocks:ListChangedBlocksResponse' :: Maybe [Sensitive ChangedBlock]
changedBlocks = Maybe [Sensitive ChangedBlock]
a} :: ListChangedBlocksResponse) ((Maybe [Sensitive ChangedBlock]
-> f (Maybe [Sensitive ChangedBlock]))
-> ListChangedBlocksResponse -> f ListChangedBlocksResponse)
-> ((Maybe [ChangedBlock] -> f (Maybe [ChangedBlock]))
-> Maybe [Sensitive ChangedBlock]
-> f (Maybe [Sensitive ChangedBlock]))
-> (Maybe [ChangedBlock] -> f (Maybe [ChangedBlock]))
-> ListChangedBlocksResponse
-> f ListChangedBlocksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[Sensitive ChangedBlock]
[Sensitive ChangedBlock]
[ChangedBlock]
[ChangedBlock]
-> Iso
(Maybe [Sensitive ChangedBlock])
(Maybe [Sensitive ChangedBlock])
(Maybe [ChangedBlock])
(Maybe [ChangedBlock])
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
[Sensitive ChangedBlock]
[Sensitive ChangedBlock]
[ChangedBlock]
[ChangedBlock]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listChangedBlocksResponse_nextToken :: Lens.Lens' ListChangedBlocksResponse (Prelude.Maybe Prelude.Text)
listChangedBlocksResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListChangedBlocksResponse -> f ListChangedBlocksResponse
listChangedBlocksResponse_nextToken = (ListChangedBlocksResponse -> Maybe Text)
-> (ListChangedBlocksResponse
-> Maybe Text -> ListChangedBlocksResponse)
-> Lens
ListChangedBlocksResponse
ListChangedBlocksResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChangedBlocksResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListChangedBlocksResponse' :: ListChangedBlocksResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListChangedBlocksResponse
s@ListChangedBlocksResponse' {} Maybe Text
a -> ListChangedBlocksResponse
s {$sel:nextToken:ListChangedBlocksResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListChangedBlocksResponse)
listChangedBlocksResponse_httpStatus :: Lens.Lens' ListChangedBlocksResponse Prelude.Int
listChangedBlocksResponse_httpStatus :: (Int -> f Int)
-> ListChangedBlocksResponse -> f ListChangedBlocksResponse
listChangedBlocksResponse_httpStatus = (ListChangedBlocksResponse -> Int)
-> (ListChangedBlocksResponse -> Int -> ListChangedBlocksResponse)
-> Lens ListChangedBlocksResponse ListChangedBlocksResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListChangedBlocksResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListChangedBlocksResponse' :: ListChangedBlocksResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListChangedBlocksResponse
s@ListChangedBlocksResponse' {} Int
a -> ListChangedBlocksResponse
s {$sel:httpStatus:ListChangedBlocksResponse' :: Int
httpStatus = Int
a} :: ListChangedBlocksResponse)
instance Prelude.NFData ListChangedBlocksResponse