{-# 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.Backup.ListBackupPlanTemplates
(
ListBackupPlanTemplates (..),
newListBackupPlanTemplates,
listBackupPlanTemplates_nextToken,
listBackupPlanTemplates_maxResults,
ListBackupPlanTemplatesResponse (..),
newListBackupPlanTemplatesResponse,
listBackupPlanTemplatesResponse_backupPlanTemplatesList,
listBackupPlanTemplatesResponse_nextToken,
listBackupPlanTemplatesResponse_httpStatus,
)
where
import Amazonka.Backup.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 ListBackupPlanTemplates = ListBackupPlanTemplates'
{
ListBackupPlanTemplates -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListBackupPlanTemplates -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListBackupPlanTemplates -> ListBackupPlanTemplates -> Bool
(ListBackupPlanTemplates -> ListBackupPlanTemplates -> Bool)
-> (ListBackupPlanTemplates -> ListBackupPlanTemplates -> Bool)
-> Eq ListBackupPlanTemplates
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListBackupPlanTemplates -> ListBackupPlanTemplates -> Bool
$c/= :: ListBackupPlanTemplates -> ListBackupPlanTemplates -> Bool
== :: ListBackupPlanTemplates -> ListBackupPlanTemplates -> Bool
$c== :: ListBackupPlanTemplates -> ListBackupPlanTemplates -> Bool
Prelude.Eq, ReadPrec [ListBackupPlanTemplates]
ReadPrec ListBackupPlanTemplates
Int -> ReadS ListBackupPlanTemplates
ReadS [ListBackupPlanTemplates]
(Int -> ReadS ListBackupPlanTemplates)
-> ReadS [ListBackupPlanTemplates]
-> ReadPrec ListBackupPlanTemplates
-> ReadPrec [ListBackupPlanTemplates]
-> Read ListBackupPlanTemplates
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListBackupPlanTemplates]
$creadListPrec :: ReadPrec [ListBackupPlanTemplates]
readPrec :: ReadPrec ListBackupPlanTemplates
$creadPrec :: ReadPrec ListBackupPlanTemplates
readList :: ReadS [ListBackupPlanTemplates]
$creadList :: ReadS [ListBackupPlanTemplates]
readsPrec :: Int -> ReadS ListBackupPlanTemplates
$creadsPrec :: Int -> ReadS ListBackupPlanTemplates
Prelude.Read, Int -> ListBackupPlanTemplates -> ShowS
[ListBackupPlanTemplates] -> ShowS
ListBackupPlanTemplates -> String
(Int -> ListBackupPlanTemplates -> ShowS)
-> (ListBackupPlanTemplates -> String)
-> ([ListBackupPlanTemplates] -> ShowS)
-> Show ListBackupPlanTemplates
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListBackupPlanTemplates] -> ShowS
$cshowList :: [ListBackupPlanTemplates] -> ShowS
show :: ListBackupPlanTemplates -> String
$cshow :: ListBackupPlanTemplates -> String
showsPrec :: Int -> ListBackupPlanTemplates -> ShowS
$cshowsPrec :: Int -> ListBackupPlanTemplates -> ShowS
Prelude.Show, (forall x.
ListBackupPlanTemplates -> Rep ListBackupPlanTemplates x)
-> (forall x.
Rep ListBackupPlanTemplates x -> ListBackupPlanTemplates)
-> Generic ListBackupPlanTemplates
forall x. Rep ListBackupPlanTemplates x -> ListBackupPlanTemplates
forall x. ListBackupPlanTemplates -> Rep ListBackupPlanTemplates x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListBackupPlanTemplates x -> ListBackupPlanTemplates
$cfrom :: forall x. ListBackupPlanTemplates -> Rep ListBackupPlanTemplates x
Prelude.Generic)
newListBackupPlanTemplates ::
ListBackupPlanTemplates
newListBackupPlanTemplates :: ListBackupPlanTemplates
newListBackupPlanTemplates =
ListBackupPlanTemplates' :: Maybe Text -> Maybe Natural -> ListBackupPlanTemplates
ListBackupPlanTemplates'
{ $sel:nextToken:ListBackupPlanTemplates' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListBackupPlanTemplates' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listBackupPlanTemplates_nextToken :: Lens.Lens' ListBackupPlanTemplates (Prelude.Maybe Prelude.Text)
listBackupPlanTemplates_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListBackupPlanTemplates -> f ListBackupPlanTemplates
listBackupPlanTemplates_nextToken = (ListBackupPlanTemplates -> Maybe Text)
-> (ListBackupPlanTemplates
-> Maybe Text -> ListBackupPlanTemplates)
-> Lens
ListBackupPlanTemplates
ListBackupPlanTemplates
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBackupPlanTemplates' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListBackupPlanTemplates' :: ListBackupPlanTemplates -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListBackupPlanTemplates
s@ListBackupPlanTemplates' {} Maybe Text
a -> ListBackupPlanTemplates
s {$sel:nextToken:ListBackupPlanTemplates' :: Maybe Text
nextToken = Maybe Text
a} :: ListBackupPlanTemplates)
listBackupPlanTemplates_maxResults :: Lens.Lens' ListBackupPlanTemplates (Prelude.Maybe Prelude.Natural)
listBackupPlanTemplates_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListBackupPlanTemplates -> f ListBackupPlanTemplates
listBackupPlanTemplates_maxResults = (ListBackupPlanTemplates -> Maybe Natural)
-> (ListBackupPlanTemplates
-> Maybe Natural -> ListBackupPlanTemplates)
-> Lens
ListBackupPlanTemplates
ListBackupPlanTemplates
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBackupPlanTemplates' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListBackupPlanTemplates' :: ListBackupPlanTemplates -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListBackupPlanTemplates
s@ListBackupPlanTemplates' {} Maybe Natural
a -> ListBackupPlanTemplates
s {$sel:maxResults:ListBackupPlanTemplates' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListBackupPlanTemplates)
instance Core.AWSRequest ListBackupPlanTemplates where
type
AWSResponse ListBackupPlanTemplates =
ListBackupPlanTemplatesResponse
request :: ListBackupPlanTemplates -> Request ListBackupPlanTemplates
request = Service
-> ListBackupPlanTemplates -> Request ListBackupPlanTemplates
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListBackupPlanTemplates
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListBackupPlanTemplates)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListBackupPlanTemplates))
-> Logger
-> Service
-> Proxy ListBackupPlanTemplates
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListBackupPlanTemplates)))
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 [BackupPlanTemplatesListMember]
-> Maybe Text -> Int -> ListBackupPlanTemplatesResponse
ListBackupPlanTemplatesResponse'
(Maybe [BackupPlanTemplatesListMember]
-> Maybe Text -> Int -> ListBackupPlanTemplatesResponse)
-> Either String (Maybe [BackupPlanTemplatesListMember])
-> Either
String (Maybe Text -> Int -> ListBackupPlanTemplatesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [BackupPlanTemplatesListMember]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"BackupPlanTemplatesList"
Either String (Maybe (Maybe [BackupPlanTemplatesListMember]))
-> Maybe [BackupPlanTemplatesListMember]
-> Either String (Maybe [BackupPlanTemplatesListMember])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [BackupPlanTemplatesListMember]
forall a. Monoid a => a
Prelude.mempty
)
Either
String (Maybe Text -> Int -> ListBackupPlanTemplatesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListBackupPlanTemplatesResponse)
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 -> ListBackupPlanTemplatesResponse)
-> Either String Int
-> Either String ListBackupPlanTemplatesResponse
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 ListBackupPlanTemplates
instance Prelude.NFData ListBackupPlanTemplates
instance Core.ToHeaders ListBackupPlanTemplates where
toHeaders :: ListBackupPlanTemplates -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListBackupPlanTemplates -> 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 ListBackupPlanTemplates where
toPath :: ListBackupPlanTemplates -> ByteString
toPath = ByteString -> ListBackupPlanTemplates -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/backup/template/plans"
instance Core.ToQuery ListBackupPlanTemplates where
toQuery :: ListBackupPlanTemplates -> QueryString
toQuery ListBackupPlanTemplates' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListBackupPlanTemplates' :: ListBackupPlanTemplates -> Maybe Natural
$sel:nextToken:ListBackupPlanTemplates' :: ListBackupPlanTemplates -> Maybe Text
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
ByteString
"maxResults" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListBackupPlanTemplatesResponse = ListBackupPlanTemplatesResponse'
{
ListBackupPlanTemplatesResponse
-> Maybe [BackupPlanTemplatesListMember]
backupPlanTemplatesList :: Prelude.Maybe [BackupPlanTemplatesListMember],
ListBackupPlanTemplatesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListBackupPlanTemplatesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListBackupPlanTemplatesResponse
-> ListBackupPlanTemplatesResponse -> Bool
(ListBackupPlanTemplatesResponse
-> ListBackupPlanTemplatesResponse -> Bool)
-> (ListBackupPlanTemplatesResponse
-> ListBackupPlanTemplatesResponse -> Bool)
-> Eq ListBackupPlanTemplatesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListBackupPlanTemplatesResponse
-> ListBackupPlanTemplatesResponse -> Bool
$c/= :: ListBackupPlanTemplatesResponse
-> ListBackupPlanTemplatesResponse -> Bool
== :: ListBackupPlanTemplatesResponse
-> ListBackupPlanTemplatesResponse -> Bool
$c== :: ListBackupPlanTemplatesResponse
-> ListBackupPlanTemplatesResponse -> Bool
Prelude.Eq, ReadPrec [ListBackupPlanTemplatesResponse]
ReadPrec ListBackupPlanTemplatesResponse
Int -> ReadS ListBackupPlanTemplatesResponse
ReadS [ListBackupPlanTemplatesResponse]
(Int -> ReadS ListBackupPlanTemplatesResponse)
-> ReadS [ListBackupPlanTemplatesResponse]
-> ReadPrec ListBackupPlanTemplatesResponse
-> ReadPrec [ListBackupPlanTemplatesResponse]
-> Read ListBackupPlanTemplatesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListBackupPlanTemplatesResponse]
$creadListPrec :: ReadPrec [ListBackupPlanTemplatesResponse]
readPrec :: ReadPrec ListBackupPlanTemplatesResponse
$creadPrec :: ReadPrec ListBackupPlanTemplatesResponse
readList :: ReadS [ListBackupPlanTemplatesResponse]
$creadList :: ReadS [ListBackupPlanTemplatesResponse]
readsPrec :: Int -> ReadS ListBackupPlanTemplatesResponse
$creadsPrec :: Int -> ReadS ListBackupPlanTemplatesResponse
Prelude.Read, Int -> ListBackupPlanTemplatesResponse -> ShowS
[ListBackupPlanTemplatesResponse] -> ShowS
ListBackupPlanTemplatesResponse -> String
(Int -> ListBackupPlanTemplatesResponse -> ShowS)
-> (ListBackupPlanTemplatesResponse -> String)
-> ([ListBackupPlanTemplatesResponse] -> ShowS)
-> Show ListBackupPlanTemplatesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListBackupPlanTemplatesResponse] -> ShowS
$cshowList :: [ListBackupPlanTemplatesResponse] -> ShowS
show :: ListBackupPlanTemplatesResponse -> String
$cshow :: ListBackupPlanTemplatesResponse -> String
showsPrec :: Int -> ListBackupPlanTemplatesResponse -> ShowS
$cshowsPrec :: Int -> ListBackupPlanTemplatesResponse -> ShowS
Prelude.Show, (forall x.
ListBackupPlanTemplatesResponse
-> Rep ListBackupPlanTemplatesResponse x)
-> (forall x.
Rep ListBackupPlanTemplatesResponse x
-> ListBackupPlanTemplatesResponse)
-> Generic ListBackupPlanTemplatesResponse
forall x.
Rep ListBackupPlanTemplatesResponse x
-> ListBackupPlanTemplatesResponse
forall x.
ListBackupPlanTemplatesResponse
-> Rep ListBackupPlanTemplatesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListBackupPlanTemplatesResponse x
-> ListBackupPlanTemplatesResponse
$cfrom :: forall x.
ListBackupPlanTemplatesResponse
-> Rep ListBackupPlanTemplatesResponse x
Prelude.Generic)
newListBackupPlanTemplatesResponse ::
Prelude.Int ->
ListBackupPlanTemplatesResponse
newListBackupPlanTemplatesResponse :: Int -> ListBackupPlanTemplatesResponse
newListBackupPlanTemplatesResponse Int
pHttpStatus_ =
ListBackupPlanTemplatesResponse' :: Maybe [BackupPlanTemplatesListMember]
-> Maybe Text -> Int -> ListBackupPlanTemplatesResponse
ListBackupPlanTemplatesResponse'
{ $sel:backupPlanTemplatesList:ListBackupPlanTemplatesResponse' :: Maybe [BackupPlanTemplatesListMember]
backupPlanTemplatesList =
Maybe [BackupPlanTemplatesListMember]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListBackupPlanTemplatesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListBackupPlanTemplatesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listBackupPlanTemplatesResponse_backupPlanTemplatesList :: Lens.Lens' ListBackupPlanTemplatesResponse (Prelude.Maybe [BackupPlanTemplatesListMember])
listBackupPlanTemplatesResponse_backupPlanTemplatesList :: (Maybe [BackupPlanTemplatesListMember]
-> f (Maybe [BackupPlanTemplatesListMember]))
-> ListBackupPlanTemplatesResponse
-> f ListBackupPlanTemplatesResponse
listBackupPlanTemplatesResponse_backupPlanTemplatesList = (ListBackupPlanTemplatesResponse
-> Maybe [BackupPlanTemplatesListMember])
-> (ListBackupPlanTemplatesResponse
-> Maybe [BackupPlanTemplatesListMember]
-> ListBackupPlanTemplatesResponse)
-> Lens
ListBackupPlanTemplatesResponse
ListBackupPlanTemplatesResponse
(Maybe [BackupPlanTemplatesListMember])
(Maybe [BackupPlanTemplatesListMember])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBackupPlanTemplatesResponse' {Maybe [BackupPlanTemplatesListMember]
backupPlanTemplatesList :: Maybe [BackupPlanTemplatesListMember]
$sel:backupPlanTemplatesList:ListBackupPlanTemplatesResponse' :: ListBackupPlanTemplatesResponse
-> Maybe [BackupPlanTemplatesListMember]
backupPlanTemplatesList} -> Maybe [BackupPlanTemplatesListMember]
backupPlanTemplatesList) (\s :: ListBackupPlanTemplatesResponse
s@ListBackupPlanTemplatesResponse' {} Maybe [BackupPlanTemplatesListMember]
a -> ListBackupPlanTemplatesResponse
s {$sel:backupPlanTemplatesList:ListBackupPlanTemplatesResponse' :: Maybe [BackupPlanTemplatesListMember]
backupPlanTemplatesList = Maybe [BackupPlanTemplatesListMember]
a} :: ListBackupPlanTemplatesResponse) ((Maybe [BackupPlanTemplatesListMember]
-> f (Maybe [BackupPlanTemplatesListMember]))
-> ListBackupPlanTemplatesResponse
-> f ListBackupPlanTemplatesResponse)
-> ((Maybe [BackupPlanTemplatesListMember]
-> f (Maybe [BackupPlanTemplatesListMember]))
-> Maybe [BackupPlanTemplatesListMember]
-> f (Maybe [BackupPlanTemplatesListMember]))
-> (Maybe [BackupPlanTemplatesListMember]
-> f (Maybe [BackupPlanTemplatesListMember]))
-> ListBackupPlanTemplatesResponse
-> f ListBackupPlanTemplatesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[BackupPlanTemplatesListMember]
[BackupPlanTemplatesListMember]
[BackupPlanTemplatesListMember]
[BackupPlanTemplatesListMember]
-> Iso
(Maybe [BackupPlanTemplatesListMember])
(Maybe [BackupPlanTemplatesListMember])
(Maybe [BackupPlanTemplatesListMember])
(Maybe [BackupPlanTemplatesListMember])
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
[BackupPlanTemplatesListMember]
[BackupPlanTemplatesListMember]
[BackupPlanTemplatesListMember]
[BackupPlanTemplatesListMember]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listBackupPlanTemplatesResponse_nextToken :: Lens.Lens' ListBackupPlanTemplatesResponse (Prelude.Maybe Prelude.Text)
listBackupPlanTemplatesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListBackupPlanTemplatesResponse
-> f ListBackupPlanTemplatesResponse
listBackupPlanTemplatesResponse_nextToken = (ListBackupPlanTemplatesResponse -> Maybe Text)
-> (ListBackupPlanTemplatesResponse
-> Maybe Text -> ListBackupPlanTemplatesResponse)
-> Lens
ListBackupPlanTemplatesResponse
ListBackupPlanTemplatesResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBackupPlanTemplatesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListBackupPlanTemplatesResponse' :: ListBackupPlanTemplatesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListBackupPlanTemplatesResponse
s@ListBackupPlanTemplatesResponse' {} Maybe Text
a -> ListBackupPlanTemplatesResponse
s {$sel:nextToken:ListBackupPlanTemplatesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListBackupPlanTemplatesResponse)
listBackupPlanTemplatesResponse_httpStatus :: Lens.Lens' ListBackupPlanTemplatesResponse Prelude.Int
listBackupPlanTemplatesResponse_httpStatus :: (Int -> f Int)
-> ListBackupPlanTemplatesResponse
-> f ListBackupPlanTemplatesResponse
listBackupPlanTemplatesResponse_httpStatus = (ListBackupPlanTemplatesResponse -> Int)
-> (ListBackupPlanTemplatesResponse
-> Int -> ListBackupPlanTemplatesResponse)
-> Lens
ListBackupPlanTemplatesResponse
ListBackupPlanTemplatesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBackupPlanTemplatesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListBackupPlanTemplatesResponse' :: ListBackupPlanTemplatesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListBackupPlanTemplatesResponse
s@ListBackupPlanTemplatesResponse' {} Int
a -> ListBackupPlanTemplatesResponse
s {$sel:httpStatus:ListBackupPlanTemplatesResponse' :: Int
httpStatus = Int
a} :: ListBackupPlanTemplatesResponse)
instance
Prelude.NFData
ListBackupPlanTemplatesResponse