{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.StorageGateway.ListVolumeRecoveryPoints
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists the recovery points for a specified gateway. This operation is
-- only supported in the cached volume gateway type.
--
-- Each cache volume has one recovery point. A volume recovery point is a
-- point in time at which all data of the volume is consistent and from
-- which you can create a snapshot or clone a new cached volume from a
-- source volume. To create a snapshot from a volume recovery point use the
-- CreateSnapshotFromVolumeRecoveryPoint operation.
module Amazonka.StorageGateway.ListVolumeRecoveryPoints
  ( -- * Creating a Request
    ListVolumeRecoveryPoints (..),
    newListVolumeRecoveryPoints,

    -- * Request Lenses
    listVolumeRecoveryPoints_gatewayARN,

    -- * Destructuring the Response
    ListVolumeRecoveryPointsResponse (..),
    newListVolumeRecoveryPointsResponse,

    -- * Response Lenses
    listVolumeRecoveryPointsResponse_volumeRecoveryPointInfos,
    listVolumeRecoveryPointsResponse_gatewayARN,
    listVolumeRecoveryPointsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
import Amazonka.StorageGateway.Types

-- | /See:/ 'newListVolumeRecoveryPoints' smart constructor.
data ListVolumeRecoveryPoints = ListVolumeRecoveryPoints'
  { ListVolumeRecoveryPoints -> Text
gatewayARN :: Prelude.Text
  }
  deriving (ListVolumeRecoveryPoints -> ListVolumeRecoveryPoints -> Bool
(ListVolumeRecoveryPoints -> ListVolumeRecoveryPoints -> Bool)
-> (ListVolumeRecoveryPoints -> ListVolumeRecoveryPoints -> Bool)
-> Eq ListVolumeRecoveryPoints
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVolumeRecoveryPoints -> ListVolumeRecoveryPoints -> Bool
$c/= :: ListVolumeRecoveryPoints -> ListVolumeRecoveryPoints -> Bool
== :: ListVolumeRecoveryPoints -> ListVolumeRecoveryPoints -> Bool
$c== :: ListVolumeRecoveryPoints -> ListVolumeRecoveryPoints -> Bool
Prelude.Eq, ReadPrec [ListVolumeRecoveryPoints]
ReadPrec ListVolumeRecoveryPoints
Int -> ReadS ListVolumeRecoveryPoints
ReadS [ListVolumeRecoveryPoints]
(Int -> ReadS ListVolumeRecoveryPoints)
-> ReadS [ListVolumeRecoveryPoints]
-> ReadPrec ListVolumeRecoveryPoints
-> ReadPrec [ListVolumeRecoveryPoints]
-> Read ListVolumeRecoveryPoints
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVolumeRecoveryPoints]
$creadListPrec :: ReadPrec [ListVolumeRecoveryPoints]
readPrec :: ReadPrec ListVolumeRecoveryPoints
$creadPrec :: ReadPrec ListVolumeRecoveryPoints
readList :: ReadS [ListVolumeRecoveryPoints]
$creadList :: ReadS [ListVolumeRecoveryPoints]
readsPrec :: Int -> ReadS ListVolumeRecoveryPoints
$creadsPrec :: Int -> ReadS ListVolumeRecoveryPoints
Prelude.Read, Int -> ListVolumeRecoveryPoints -> ShowS
[ListVolumeRecoveryPoints] -> ShowS
ListVolumeRecoveryPoints -> String
(Int -> ListVolumeRecoveryPoints -> ShowS)
-> (ListVolumeRecoveryPoints -> String)
-> ([ListVolumeRecoveryPoints] -> ShowS)
-> Show ListVolumeRecoveryPoints
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVolumeRecoveryPoints] -> ShowS
$cshowList :: [ListVolumeRecoveryPoints] -> ShowS
show :: ListVolumeRecoveryPoints -> String
$cshow :: ListVolumeRecoveryPoints -> String
showsPrec :: Int -> ListVolumeRecoveryPoints -> ShowS
$cshowsPrec :: Int -> ListVolumeRecoveryPoints -> ShowS
Prelude.Show, (forall x.
 ListVolumeRecoveryPoints -> Rep ListVolumeRecoveryPoints x)
-> (forall x.
    Rep ListVolumeRecoveryPoints x -> ListVolumeRecoveryPoints)
-> Generic ListVolumeRecoveryPoints
forall x.
Rep ListVolumeRecoveryPoints x -> ListVolumeRecoveryPoints
forall x.
ListVolumeRecoveryPoints -> Rep ListVolumeRecoveryPoints x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListVolumeRecoveryPoints x -> ListVolumeRecoveryPoints
$cfrom :: forall x.
ListVolumeRecoveryPoints -> Rep ListVolumeRecoveryPoints x
Prelude.Generic)

-- |
-- Create a value of 'ListVolumeRecoveryPoints' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'gatewayARN', 'listVolumeRecoveryPoints_gatewayARN' - Undocumented member.
newListVolumeRecoveryPoints ::
  -- | 'gatewayARN'
  Prelude.Text ->
  ListVolumeRecoveryPoints
newListVolumeRecoveryPoints :: Text -> ListVolumeRecoveryPoints
newListVolumeRecoveryPoints Text
pGatewayARN_ =
  ListVolumeRecoveryPoints' :: Text -> ListVolumeRecoveryPoints
ListVolumeRecoveryPoints'
    { $sel:gatewayARN:ListVolumeRecoveryPoints' :: Text
gatewayARN =
        Text
pGatewayARN_
    }

-- | Undocumented member.
listVolumeRecoveryPoints_gatewayARN :: Lens.Lens' ListVolumeRecoveryPoints Prelude.Text
listVolumeRecoveryPoints_gatewayARN :: (Text -> f Text)
-> ListVolumeRecoveryPoints -> f ListVolumeRecoveryPoints
listVolumeRecoveryPoints_gatewayARN = (ListVolumeRecoveryPoints -> Text)
-> (ListVolumeRecoveryPoints -> Text -> ListVolumeRecoveryPoints)
-> Lens ListVolumeRecoveryPoints ListVolumeRecoveryPoints Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVolumeRecoveryPoints' {Text
gatewayARN :: Text
$sel:gatewayARN:ListVolumeRecoveryPoints' :: ListVolumeRecoveryPoints -> Text
gatewayARN} -> Text
gatewayARN) (\s :: ListVolumeRecoveryPoints
s@ListVolumeRecoveryPoints' {} Text
a -> ListVolumeRecoveryPoints
s {$sel:gatewayARN:ListVolumeRecoveryPoints' :: Text
gatewayARN = Text
a} :: ListVolumeRecoveryPoints)

instance Core.AWSRequest ListVolumeRecoveryPoints where
  type
    AWSResponse ListVolumeRecoveryPoints =
      ListVolumeRecoveryPointsResponse
  request :: ListVolumeRecoveryPoints -> Request ListVolumeRecoveryPoints
request = Service
-> ListVolumeRecoveryPoints -> Request ListVolumeRecoveryPoints
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListVolumeRecoveryPoints
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListVolumeRecoveryPoints)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListVolumeRecoveryPoints))
-> Logger
-> Service
-> Proxy ListVolumeRecoveryPoints
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListVolumeRecoveryPoints)))
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 [VolumeRecoveryPointInfo]
-> Maybe Text -> Int -> ListVolumeRecoveryPointsResponse
ListVolumeRecoveryPointsResponse'
            (Maybe [VolumeRecoveryPointInfo]
 -> Maybe Text -> Int -> ListVolumeRecoveryPointsResponse)
-> Either String (Maybe [VolumeRecoveryPointInfo])
-> Either
     String (Maybe Text -> Int -> ListVolumeRecoveryPointsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [VolumeRecoveryPointInfo]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"VolumeRecoveryPointInfos"
                            Either String (Maybe (Maybe [VolumeRecoveryPointInfo]))
-> Maybe [VolumeRecoveryPointInfo]
-> Either String (Maybe [VolumeRecoveryPointInfo])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [VolumeRecoveryPointInfo]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String (Maybe Text -> Int -> ListVolumeRecoveryPointsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListVolumeRecoveryPointsResponse)
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
"GatewayARN")
            Either String (Int -> ListVolumeRecoveryPointsResponse)
-> Either String Int
-> Either String ListVolumeRecoveryPointsResponse
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 ListVolumeRecoveryPoints

instance Prelude.NFData ListVolumeRecoveryPoints

instance Core.ToHeaders ListVolumeRecoveryPoints where
  toHeaders :: ListVolumeRecoveryPoints -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListVolumeRecoveryPoints -> 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
"StorageGateway_20130630.ListVolumeRecoveryPoints" ::
                          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 ListVolumeRecoveryPoints where
  toJSON :: ListVolumeRecoveryPoints -> Value
toJSON ListVolumeRecoveryPoints' {Text
gatewayARN :: Text
$sel:gatewayARN:ListVolumeRecoveryPoints' :: ListVolumeRecoveryPoints -> Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"GatewayARN" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
gatewayARN)]
      )

instance Core.ToPath ListVolumeRecoveryPoints where
  toPath :: ListVolumeRecoveryPoints -> ByteString
toPath = ByteString -> ListVolumeRecoveryPoints -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery ListVolumeRecoveryPoints where
  toQuery :: ListVolumeRecoveryPoints -> QueryString
toQuery = QueryString -> ListVolumeRecoveryPoints -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListVolumeRecoveryPointsResponse' smart constructor.
data ListVolumeRecoveryPointsResponse = ListVolumeRecoveryPointsResponse'
  { -- | An array of VolumeRecoveryPointInfo objects.
    ListVolumeRecoveryPointsResponse -> Maybe [VolumeRecoveryPointInfo]
volumeRecoveryPointInfos :: Prelude.Maybe [VolumeRecoveryPointInfo],
    ListVolumeRecoveryPointsResponse -> Maybe Text
gatewayARN :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListVolumeRecoveryPointsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListVolumeRecoveryPointsResponse
-> ListVolumeRecoveryPointsResponse -> Bool
(ListVolumeRecoveryPointsResponse
 -> ListVolumeRecoveryPointsResponse -> Bool)
-> (ListVolumeRecoveryPointsResponse
    -> ListVolumeRecoveryPointsResponse -> Bool)
-> Eq ListVolumeRecoveryPointsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListVolumeRecoveryPointsResponse
-> ListVolumeRecoveryPointsResponse -> Bool
$c/= :: ListVolumeRecoveryPointsResponse
-> ListVolumeRecoveryPointsResponse -> Bool
== :: ListVolumeRecoveryPointsResponse
-> ListVolumeRecoveryPointsResponse -> Bool
$c== :: ListVolumeRecoveryPointsResponse
-> ListVolumeRecoveryPointsResponse -> Bool
Prelude.Eq, ReadPrec [ListVolumeRecoveryPointsResponse]
ReadPrec ListVolumeRecoveryPointsResponse
Int -> ReadS ListVolumeRecoveryPointsResponse
ReadS [ListVolumeRecoveryPointsResponse]
(Int -> ReadS ListVolumeRecoveryPointsResponse)
-> ReadS [ListVolumeRecoveryPointsResponse]
-> ReadPrec ListVolumeRecoveryPointsResponse
-> ReadPrec [ListVolumeRecoveryPointsResponse]
-> Read ListVolumeRecoveryPointsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListVolumeRecoveryPointsResponse]
$creadListPrec :: ReadPrec [ListVolumeRecoveryPointsResponse]
readPrec :: ReadPrec ListVolumeRecoveryPointsResponse
$creadPrec :: ReadPrec ListVolumeRecoveryPointsResponse
readList :: ReadS [ListVolumeRecoveryPointsResponse]
$creadList :: ReadS [ListVolumeRecoveryPointsResponse]
readsPrec :: Int -> ReadS ListVolumeRecoveryPointsResponse
$creadsPrec :: Int -> ReadS ListVolumeRecoveryPointsResponse
Prelude.Read, Int -> ListVolumeRecoveryPointsResponse -> ShowS
[ListVolumeRecoveryPointsResponse] -> ShowS
ListVolumeRecoveryPointsResponse -> String
(Int -> ListVolumeRecoveryPointsResponse -> ShowS)
-> (ListVolumeRecoveryPointsResponse -> String)
-> ([ListVolumeRecoveryPointsResponse] -> ShowS)
-> Show ListVolumeRecoveryPointsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListVolumeRecoveryPointsResponse] -> ShowS
$cshowList :: [ListVolumeRecoveryPointsResponse] -> ShowS
show :: ListVolumeRecoveryPointsResponse -> String
$cshow :: ListVolumeRecoveryPointsResponse -> String
showsPrec :: Int -> ListVolumeRecoveryPointsResponse -> ShowS
$cshowsPrec :: Int -> ListVolumeRecoveryPointsResponse -> ShowS
Prelude.Show, (forall x.
 ListVolumeRecoveryPointsResponse
 -> Rep ListVolumeRecoveryPointsResponse x)
-> (forall x.
    Rep ListVolumeRecoveryPointsResponse x
    -> ListVolumeRecoveryPointsResponse)
-> Generic ListVolumeRecoveryPointsResponse
forall x.
Rep ListVolumeRecoveryPointsResponse x
-> ListVolumeRecoveryPointsResponse
forall x.
ListVolumeRecoveryPointsResponse
-> Rep ListVolumeRecoveryPointsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListVolumeRecoveryPointsResponse x
-> ListVolumeRecoveryPointsResponse
$cfrom :: forall x.
ListVolumeRecoveryPointsResponse
-> Rep ListVolumeRecoveryPointsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListVolumeRecoveryPointsResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'volumeRecoveryPointInfos', 'listVolumeRecoveryPointsResponse_volumeRecoveryPointInfos' - An array of VolumeRecoveryPointInfo objects.
--
-- 'gatewayARN', 'listVolumeRecoveryPointsResponse_gatewayARN' - Undocumented member.
--
-- 'httpStatus', 'listVolumeRecoveryPointsResponse_httpStatus' - The response's http status code.
newListVolumeRecoveryPointsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListVolumeRecoveryPointsResponse
newListVolumeRecoveryPointsResponse :: Int -> ListVolumeRecoveryPointsResponse
newListVolumeRecoveryPointsResponse Int
pHttpStatus_ =
  ListVolumeRecoveryPointsResponse' :: Maybe [VolumeRecoveryPointInfo]
-> Maybe Text -> Int -> ListVolumeRecoveryPointsResponse
ListVolumeRecoveryPointsResponse'
    { $sel:volumeRecoveryPointInfos:ListVolumeRecoveryPointsResponse' :: Maybe [VolumeRecoveryPointInfo]
volumeRecoveryPointInfos =
        Maybe [VolumeRecoveryPointInfo]
forall a. Maybe a
Prelude.Nothing,
      $sel:gatewayARN:ListVolumeRecoveryPointsResponse' :: Maybe Text
gatewayARN = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListVolumeRecoveryPointsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | An array of VolumeRecoveryPointInfo objects.
listVolumeRecoveryPointsResponse_volumeRecoveryPointInfos :: Lens.Lens' ListVolumeRecoveryPointsResponse (Prelude.Maybe [VolumeRecoveryPointInfo])
listVolumeRecoveryPointsResponse_volumeRecoveryPointInfos :: (Maybe [VolumeRecoveryPointInfo]
 -> f (Maybe [VolumeRecoveryPointInfo]))
-> ListVolumeRecoveryPointsResponse
-> f ListVolumeRecoveryPointsResponse
listVolumeRecoveryPointsResponse_volumeRecoveryPointInfos = (ListVolumeRecoveryPointsResponse
 -> Maybe [VolumeRecoveryPointInfo])
-> (ListVolumeRecoveryPointsResponse
    -> Maybe [VolumeRecoveryPointInfo]
    -> ListVolumeRecoveryPointsResponse)
-> Lens
     ListVolumeRecoveryPointsResponse
     ListVolumeRecoveryPointsResponse
     (Maybe [VolumeRecoveryPointInfo])
     (Maybe [VolumeRecoveryPointInfo])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVolumeRecoveryPointsResponse' {Maybe [VolumeRecoveryPointInfo]
volumeRecoveryPointInfos :: Maybe [VolumeRecoveryPointInfo]
$sel:volumeRecoveryPointInfos:ListVolumeRecoveryPointsResponse' :: ListVolumeRecoveryPointsResponse -> Maybe [VolumeRecoveryPointInfo]
volumeRecoveryPointInfos} -> Maybe [VolumeRecoveryPointInfo]
volumeRecoveryPointInfos) (\s :: ListVolumeRecoveryPointsResponse
s@ListVolumeRecoveryPointsResponse' {} Maybe [VolumeRecoveryPointInfo]
a -> ListVolumeRecoveryPointsResponse
s {$sel:volumeRecoveryPointInfos:ListVolumeRecoveryPointsResponse' :: Maybe [VolumeRecoveryPointInfo]
volumeRecoveryPointInfos = Maybe [VolumeRecoveryPointInfo]
a} :: ListVolumeRecoveryPointsResponse) ((Maybe [VolumeRecoveryPointInfo]
  -> f (Maybe [VolumeRecoveryPointInfo]))
 -> ListVolumeRecoveryPointsResponse
 -> f ListVolumeRecoveryPointsResponse)
-> ((Maybe [VolumeRecoveryPointInfo]
     -> f (Maybe [VolumeRecoveryPointInfo]))
    -> Maybe [VolumeRecoveryPointInfo]
    -> f (Maybe [VolumeRecoveryPointInfo]))
-> (Maybe [VolumeRecoveryPointInfo]
    -> f (Maybe [VolumeRecoveryPointInfo]))
-> ListVolumeRecoveryPointsResponse
-> f ListVolumeRecoveryPointsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [VolumeRecoveryPointInfo]
  [VolumeRecoveryPointInfo]
  [VolumeRecoveryPointInfo]
  [VolumeRecoveryPointInfo]
-> Iso
     (Maybe [VolumeRecoveryPointInfo])
     (Maybe [VolumeRecoveryPointInfo])
     (Maybe [VolumeRecoveryPointInfo])
     (Maybe [VolumeRecoveryPointInfo])
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
  [VolumeRecoveryPointInfo]
  [VolumeRecoveryPointInfo]
  [VolumeRecoveryPointInfo]
  [VolumeRecoveryPointInfo]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
listVolumeRecoveryPointsResponse_gatewayARN :: Lens.Lens' ListVolumeRecoveryPointsResponse (Prelude.Maybe Prelude.Text)
listVolumeRecoveryPointsResponse_gatewayARN :: (Maybe Text -> f (Maybe Text))
-> ListVolumeRecoveryPointsResponse
-> f ListVolumeRecoveryPointsResponse
listVolumeRecoveryPointsResponse_gatewayARN = (ListVolumeRecoveryPointsResponse -> Maybe Text)
-> (ListVolumeRecoveryPointsResponse
    -> Maybe Text -> ListVolumeRecoveryPointsResponse)
-> Lens
     ListVolumeRecoveryPointsResponse
     ListVolumeRecoveryPointsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVolumeRecoveryPointsResponse' {Maybe Text
gatewayARN :: Maybe Text
$sel:gatewayARN:ListVolumeRecoveryPointsResponse' :: ListVolumeRecoveryPointsResponse -> Maybe Text
gatewayARN} -> Maybe Text
gatewayARN) (\s :: ListVolumeRecoveryPointsResponse
s@ListVolumeRecoveryPointsResponse' {} Maybe Text
a -> ListVolumeRecoveryPointsResponse
s {$sel:gatewayARN:ListVolumeRecoveryPointsResponse' :: Maybe Text
gatewayARN = Maybe Text
a} :: ListVolumeRecoveryPointsResponse)

-- | The response's http status code.
listVolumeRecoveryPointsResponse_httpStatus :: Lens.Lens' ListVolumeRecoveryPointsResponse Prelude.Int
listVolumeRecoveryPointsResponse_httpStatus :: (Int -> f Int)
-> ListVolumeRecoveryPointsResponse
-> f ListVolumeRecoveryPointsResponse
listVolumeRecoveryPointsResponse_httpStatus = (ListVolumeRecoveryPointsResponse -> Int)
-> (ListVolumeRecoveryPointsResponse
    -> Int -> ListVolumeRecoveryPointsResponse)
-> Lens
     ListVolumeRecoveryPointsResponse
     ListVolumeRecoveryPointsResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListVolumeRecoveryPointsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListVolumeRecoveryPointsResponse' :: ListVolumeRecoveryPointsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListVolumeRecoveryPointsResponse
s@ListVolumeRecoveryPointsResponse' {} Int
a -> ListVolumeRecoveryPointsResponse
s {$sel:httpStatus:ListVolumeRecoveryPointsResponse' :: Int
httpStatus = Int
a} :: ListVolumeRecoveryPointsResponse)

instance
  Prelude.NFData
    ListVolumeRecoveryPointsResponse