{-# 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.GetBackupSelection
(
GetBackupSelection (..),
newGetBackupSelection,
getBackupSelection_backupPlanId,
getBackupSelection_selectionId,
GetBackupSelectionResponse (..),
newGetBackupSelectionResponse,
getBackupSelectionResponse_selectionId,
getBackupSelectionResponse_backupPlanId,
getBackupSelectionResponse_creatorRequestId,
getBackupSelectionResponse_creationDate,
getBackupSelectionResponse_backupSelection,
getBackupSelectionResponse_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 GetBackupSelection = GetBackupSelection'
{
GetBackupSelection -> Text
backupPlanId :: Prelude.Text,
GetBackupSelection -> Text
selectionId :: Prelude.Text
}
deriving (GetBackupSelection -> GetBackupSelection -> Bool
(GetBackupSelection -> GetBackupSelection -> Bool)
-> (GetBackupSelection -> GetBackupSelection -> Bool)
-> Eq GetBackupSelection
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBackupSelection -> GetBackupSelection -> Bool
$c/= :: GetBackupSelection -> GetBackupSelection -> Bool
== :: GetBackupSelection -> GetBackupSelection -> Bool
$c== :: GetBackupSelection -> GetBackupSelection -> Bool
Prelude.Eq, ReadPrec [GetBackupSelection]
ReadPrec GetBackupSelection
Int -> ReadS GetBackupSelection
ReadS [GetBackupSelection]
(Int -> ReadS GetBackupSelection)
-> ReadS [GetBackupSelection]
-> ReadPrec GetBackupSelection
-> ReadPrec [GetBackupSelection]
-> Read GetBackupSelection
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBackupSelection]
$creadListPrec :: ReadPrec [GetBackupSelection]
readPrec :: ReadPrec GetBackupSelection
$creadPrec :: ReadPrec GetBackupSelection
readList :: ReadS [GetBackupSelection]
$creadList :: ReadS [GetBackupSelection]
readsPrec :: Int -> ReadS GetBackupSelection
$creadsPrec :: Int -> ReadS GetBackupSelection
Prelude.Read, Int -> GetBackupSelection -> ShowS
[GetBackupSelection] -> ShowS
GetBackupSelection -> String
(Int -> GetBackupSelection -> ShowS)
-> (GetBackupSelection -> String)
-> ([GetBackupSelection] -> ShowS)
-> Show GetBackupSelection
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBackupSelection] -> ShowS
$cshowList :: [GetBackupSelection] -> ShowS
show :: GetBackupSelection -> String
$cshow :: GetBackupSelection -> String
showsPrec :: Int -> GetBackupSelection -> ShowS
$cshowsPrec :: Int -> GetBackupSelection -> ShowS
Prelude.Show, (forall x. GetBackupSelection -> Rep GetBackupSelection x)
-> (forall x. Rep GetBackupSelection x -> GetBackupSelection)
-> Generic GetBackupSelection
forall x. Rep GetBackupSelection x -> GetBackupSelection
forall x. GetBackupSelection -> Rep GetBackupSelection x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetBackupSelection x -> GetBackupSelection
$cfrom :: forall x. GetBackupSelection -> Rep GetBackupSelection x
Prelude.Generic)
newGetBackupSelection ::
Prelude.Text ->
Prelude.Text ->
GetBackupSelection
newGetBackupSelection :: Text -> Text -> GetBackupSelection
newGetBackupSelection Text
pBackupPlanId_ Text
pSelectionId_ =
GetBackupSelection' :: Text -> Text -> GetBackupSelection
GetBackupSelection'
{ $sel:backupPlanId:GetBackupSelection' :: Text
backupPlanId = Text
pBackupPlanId_,
$sel:selectionId:GetBackupSelection' :: Text
selectionId = Text
pSelectionId_
}
getBackupSelection_backupPlanId :: Lens.Lens' GetBackupSelection Prelude.Text
getBackupSelection_backupPlanId :: (Text -> f Text) -> GetBackupSelection -> f GetBackupSelection
getBackupSelection_backupPlanId = (GetBackupSelection -> Text)
-> (GetBackupSelection -> Text -> GetBackupSelection)
-> Lens GetBackupSelection GetBackupSelection Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackupSelection' {Text
backupPlanId :: Text
$sel:backupPlanId:GetBackupSelection' :: GetBackupSelection -> Text
backupPlanId} -> Text
backupPlanId) (\s :: GetBackupSelection
s@GetBackupSelection' {} Text
a -> GetBackupSelection
s {$sel:backupPlanId:GetBackupSelection' :: Text
backupPlanId = Text
a} :: GetBackupSelection)
getBackupSelection_selectionId :: Lens.Lens' GetBackupSelection Prelude.Text
getBackupSelection_selectionId :: (Text -> f Text) -> GetBackupSelection -> f GetBackupSelection
getBackupSelection_selectionId = (GetBackupSelection -> Text)
-> (GetBackupSelection -> Text -> GetBackupSelection)
-> Lens GetBackupSelection GetBackupSelection Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackupSelection' {Text
selectionId :: Text
$sel:selectionId:GetBackupSelection' :: GetBackupSelection -> Text
selectionId} -> Text
selectionId) (\s :: GetBackupSelection
s@GetBackupSelection' {} Text
a -> GetBackupSelection
s {$sel:selectionId:GetBackupSelection' :: Text
selectionId = Text
a} :: GetBackupSelection)
instance Core.AWSRequest GetBackupSelection where
type
AWSResponse GetBackupSelection =
GetBackupSelectionResponse
request :: GetBackupSelection -> Request GetBackupSelection
request = Service -> GetBackupSelection -> Request GetBackupSelection
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetBackupSelection
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetBackupSelection)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetBackupSelection))
-> Logger
-> Service
-> Proxy GetBackupSelection
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetBackupSelection)))
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 Text
-> Maybe Text
-> Maybe POSIX
-> Maybe BackupSelection
-> Int
-> GetBackupSelectionResponse
GetBackupSelectionResponse'
(Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe BackupSelection
-> Int
-> GetBackupSelectionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe BackupSelection
-> Int
-> GetBackupSelectionResponse)
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
"SelectionId")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe BackupSelection
-> Int
-> GetBackupSelectionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe BackupSelection
-> Int
-> GetBackupSelectionResponse)
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
"BackupPlanId")
Either
String
(Maybe Text
-> Maybe POSIX
-> Maybe BackupSelection
-> Int
-> GetBackupSelectionResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe POSIX
-> Maybe BackupSelection -> Int -> GetBackupSelectionResponse)
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
"CreatorRequestId")
Either
String
(Maybe POSIX
-> Maybe BackupSelection -> Int -> GetBackupSelectionResponse)
-> Either String (Maybe POSIX)
-> Either
String (Maybe BackupSelection -> Int -> GetBackupSelectionResponse)
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
"CreationDate")
Either
String (Maybe BackupSelection -> Int -> GetBackupSelectionResponse)
-> Either String (Maybe BackupSelection)
-> Either String (Int -> GetBackupSelectionResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe BackupSelection)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"BackupSelection")
Either String (Int -> GetBackupSelectionResponse)
-> Either String Int -> Either String GetBackupSelectionResponse
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 GetBackupSelection
instance Prelude.NFData GetBackupSelection
instance Core.ToHeaders GetBackupSelection where
toHeaders :: GetBackupSelection -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetBackupSelection -> 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 GetBackupSelection where
toPath :: GetBackupSelection -> ByteString
toPath GetBackupSelection' {Text
selectionId :: Text
backupPlanId :: Text
$sel:selectionId:GetBackupSelection' :: GetBackupSelection -> Text
$sel:backupPlanId:GetBackupSelection' :: GetBackupSelection -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/backup/plans/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
backupPlanId,
ByteString
"/selections/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
selectionId
]
instance Core.ToQuery GetBackupSelection where
toQuery :: GetBackupSelection -> QueryString
toQuery = QueryString -> GetBackupSelection -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetBackupSelectionResponse = GetBackupSelectionResponse'
{
GetBackupSelectionResponse -> Maybe Text
selectionId :: Prelude.Maybe Prelude.Text,
GetBackupSelectionResponse -> Maybe Text
backupPlanId :: Prelude.Maybe Prelude.Text,
GetBackupSelectionResponse -> Maybe Text
creatorRequestId :: Prelude.Maybe Prelude.Text,
GetBackupSelectionResponse -> Maybe POSIX
creationDate :: Prelude.Maybe Core.POSIX,
GetBackupSelectionResponse -> Maybe BackupSelection
backupSelection :: Prelude.Maybe BackupSelection,
GetBackupSelectionResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetBackupSelectionResponse -> GetBackupSelectionResponse -> Bool
(GetBackupSelectionResponse -> GetBackupSelectionResponse -> Bool)
-> (GetBackupSelectionResponse
-> GetBackupSelectionResponse -> Bool)
-> Eq GetBackupSelectionResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetBackupSelectionResponse -> GetBackupSelectionResponse -> Bool
$c/= :: GetBackupSelectionResponse -> GetBackupSelectionResponse -> Bool
== :: GetBackupSelectionResponse -> GetBackupSelectionResponse -> Bool
$c== :: GetBackupSelectionResponse -> GetBackupSelectionResponse -> Bool
Prelude.Eq, ReadPrec [GetBackupSelectionResponse]
ReadPrec GetBackupSelectionResponse
Int -> ReadS GetBackupSelectionResponse
ReadS [GetBackupSelectionResponse]
(Int -> ReadS GetBackupSelectionResponse)
-> ReadS [GetBackupSelectionResponse]
-> ReadPrec GetBackupSelectionResponse
-> ReadPrec [GetBackupSelectionResponse]
-> Read GetBackupSelectionResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetBackupSelectionResponse]
$creadListPrec :: ReadPrec [GetBackupSelectionResponse]
readPrec :: ReadPrec GetBackupSelectionResponse
$creadPrec :: ReadPrec GetBackupSelectionResponse
readList :: ReadS [GetBackupSelectionResponse]
$creadList :: ReadS [GetBackupSelectionResponse]
readsPrec :: Int -> ReadS GetBackupSelectionResponse
$creadsPrec :: Int -> ReadS GetBackupSelectionResponse
Prelude.Read, Int -> GetBackupSelectionResponse -> ShowS
[GetBackupSelectionResponse] -> ShowS
GetBackupSelectionResponse -> String
(Int -> GetBackupSelectionResponse -> ShowS)
-> (GetBackupSelectionResponse -> String)
-> ([GetBackupSelectionResponse] -> ShowS)
-> Show GetBackupSelectionResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetBackupSelectionResponse] -> ShowS
$cshowList :: [GetBackupSelectionResponse] -> ShowS
show :: GetBackupSelectionResponse -> String
$cshow :: GetBackupSelectionResponse -> String
showsPrec :: Int -> GetBackupSelectionResponse -> ShowS
$cshowsPrec :: Int -> GetBackupSelectionResponse -> ShowS
Prelude.Show, (forall x.
GetBackupSelectionResponse -> Rep GetBackupSelectionResponse x)
-> (forall x.
Rep GetBackupSelectionResponse x -> GetBackupSelectionResponse)
-> Generic GetBackupSelectionResponse
forall x.
Rep GetBackupSelectionResponse x -> GetBackupSelectionResponse
forall x.
GetBackupSelectionResponse -> Rep GetBackupSelectionResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetBackupSelectionResponse x -> GetBackupSelectionResponse
$cfrom :: forall x.
GetBackupSelectionResponse -> Rep GetBackupSelectionResponse x
Prelude.Generic)
newGetBackupSelectionResponse ::
Prelude.Int ->
GetBackupSelectionResponse
newGetBackupSelectionResponse :: Int -> GetBackupSelectionResponse
newGetBackupSelectionResponse Int
pHttpStatus_ =
GetBackupSelectionResponse' :: Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe POSIX
-> Maybe BackupSelection
-> Int
-> GetBackupSelectionResponse
GetBackupSelectionResponse'
{ $sel:selectionId:GetBackupSelectionResponse' :: Maybe Text
selectionId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:backupPlanId:GetBackupSelectionResponse' :: Maybe Text
backupPlanId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creatorRequestId:GetBackupSelectionResponse' :: Maybe Text
creatorRequestId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:creationDate:GetBackupSelectionResponse' :: Maybe POSIX
creationDate = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:backupSelection:GetBackupSelectionResponse' :: Maybe BackupSelection
backupSelection = Maybe BackupSelection
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetBackupSelectionResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getBackupSelectionResponse_selectionId :: Lens.Lens' GetBackupSelectionResponse (Prelude.Maybe Prelude.Text)
getBackupSelectionResponse_selectionId :: (Maybe Text -> f (Maybe Text))
-> GetBackupSelectionResponse -> f GetBackupSelectionResponse
getBackupSelectionResponse_selectionId = (GetBackupSelectionResponse -> Maybe Text)
-> (GetBackupSelectionResponse
-> Maybe Text -> GetBackupSelectionResponse)
-> Lens
GetBackupSelectionResponse
GetBackupSelectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackupSelectionResponse' {Maybe Text
selectionId :: Maybe Text
$sel:selectionId:GetBackupSelectionResponse' :: GetBackupSelectionResponse -> Maybe Text
selectionId} -> Maybe Text
selectionId) (\s :: GetBackupSelectionResponse
s@GetBackupSelectionResponse' {} Maybe Text
a -> GetBackupSelectionResponse
s {$sel:selectionId:GetBackupSelectionResponse' :: Maybe Text
selectionId = Maybe Text
a} :: GetBackupSelectionResponse)
getBackupSelectionResponse_backupPlanId :: Lens.Lens' GetBackupSelectionResponse (Prelude.Maybe Prelude.Text)
getBackupSelectionResponse_backupPlanId :: (Maybe Text -> f (Maybe Text))
-> GetBackupSelectionResponse -> f GetBackupSelectionResponse
getBackupSelectionResponse_backupPlanId = (GetBackupSelectionResponse -> Maybe Text)
-> (GetBackupSelectionResponse
-> Maybe Text -> GetBackupSelectionResponse)
-> Lens
GetBackupSelectionResponse
GetBackupSelectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackupSelectionResponse' {Maybe Text
backupPlanId :: Maybe Text
$sel:backupPlanId:GetBackupSelectionResponse' :: GetBackupSelectionResponse -> Maybe Text
backupPlanId} -> Maybe Text
backupPlanId) (\s :: GetBackupSelectionResponse
s@GetBackupSelectionResponse' {} Maybe Text
a -> GetBackupSelectionResponse
s {$sel:backupPlanId:GetBackupSelectionResponse' :: Maybe Text
backupPlanId = Maybe Text
a} :: GetBackupSelectionResponse)
getBackupSelectionResponse_creatorRequestId :: Lens.Lens' GetBackupSelectionResponse (Prelude.Maybe Prelude.Text)
getBackupSelectionResponse_creatorRequestId :: (Maybe Text -> f (Maybe Text))
-> GetBackupSelectionResponse -> f GetBackupSelectionResponse
getBackupSelectionResponse_creatorRequestId = (GetBackupSelectionResponse -> Maybe Text)
-> (GetBackupSelectionResponse
-> Maybe Text -> GetBackupSelectionResponse)
-> Lens
GetBackupSelectionResponse
GetBackupSelectionResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackupSelectionResponse' {Maybe Text
creatorRequestId :: Maybe Text
$sel:creatorRequestId:GetBackupSelectionResponse' :: GetBackupSelectionResponse -> Maybe Text
creatorRequestId} -> Maybe Text
creatorRequestId) (\s :: GetBackupSelectionResponse
s@GetBackupSelectionResponse' {} Maybe Text
a -> GetBackupSelectionResponse
s {$sel:creatorRequestId:GetBackupSelectionResponse' :: Maybe Text
creatorRequestId = Maybe Text
a} :: GetBackupSelectionResponse)
getBackupSelectionResponse_creationDate :: Lens.Lens' GetBackupSelectionResponse (Prelude.Maybe Prelude.UTCTime)
getBackupSelectionResponse_creationDate :: (Maybe UTCTime -> f (Maybe UTCTime))
-> GetBackupSelectionResponse -> f GetBackupSelectionResponse
getBackupSelectionResponse_creationDate = (GetBackupSelectionResponse -> Maybe POSIX)
-> (GetBackupSelectionResponse
-> Maybe POSIX -> GetBackupSelectionResponse)
-> Lens
GetBackupSelectionResponse
GetBackupSelectionResponse
(Maybe POSIX)
(Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackupSelectionResponse' {Maybe POSIX
creationDate :: Maybe POSIX
$sel:creationDate:GetBackupSelectionResponse' :: GetBackupSelectionResponse -> Maybe POSIX
creationDate} -> Maybe POSIX
creationDate) (\s :: GetBackupSelectionResponse
s@GetBackupSelectionResponse' {} Maybe POSIX
a -> GetBackupSelectionResponse
s {$sel:creationDate:GetBackupSelectionResponse' :: Maybe POSIX
creationDate = Maybe POSIX
a} :: GetBackupSelectionResponse) ((Maybe POSIX -> f (Maybe POSIX))
-> GetBackupSelectionResponse -> f GetBackupSelectionResponse)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> GetBackupSelectionResponse
-> f GetBackupSelectionResponse
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
getBackupSelectionResponse_backupSelection :: Lens.Lens' GetBackupSelectionResponse (Prelude.Maybe BackupSelection)
getBackupSelectionResponse_backupSelection :: (Maybe BackupSelection -> f (Maybe BackupSelection))
-> GetBackupSelectionResponse -> f GetBackupSelectionResponse
getBackupSelectionResponse_backupSelection = (GetBackupSelectionResponse -> Maybe BackupSelection)
-> (GetBackupSelectionResponse
-> Maybe BackupSelection -> GetBackupSelectionResponse)
-> Lens
GetBackupSelectionResponse
GetBackupSelectionResponse
(Maybe BackupSelection)
(Maybe BackupSelection)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackupSelectionResponse' {Maybe BackupSelection
backupSelection :: Maybe BackupSelection
$sel:backupSelection:GetBackupSelectionResponse' :: GetBackupSelectionResponse -> Maybe BackupSelection
backupSelection} -> Maybe BackupSelection
backupSelection) (\s :: GetBackupSelectionResponse
s@GetBackupSelectionResponse' {} Maybe BackupSelection
a -> GetBackupSelectionResponse
s {$sel:backupSelection:GetBackupSelectionResponse' :: Maybe BackupSelection
backupSelection = Maybe BackupSelection
a} :: GetBackupSelectionResponse)
getBackupSelectionResponse_httpStatus :: Lens.Lens' GetBackupSelectionResponse Prelude.Int
getBackupSelectionResponse_httpStatus :: (Int -> f Int)
-> GetBackupSelectionResponse -> f GetBackupSelectionResponse
getBackupSelectionResponse_httpStatus = (GetBackupSelectionResponse -> Int)
-> (GetBackupSelectionResponse
-> Int -> GetBackupSelectionResponse)
-> Lens
GetBackupSelectionResponse GetBackupSelectionResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetBackupSelectionResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetBackupSelectionResponse' :: GetBackupSelectionResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetBackupSelectionResponse
s@GetBackupSelectionResponse' {} Int
a -> GetBackupSelectionResponse
s {$sel:httpStatus:GetBackupSelectionResponse' :: Int
httpStatus = Int
a} :: GetBackupSelectionResponse)
instance Prelude.NFData GetBackupSelectionResponse