{-# 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.ListBackupSelections
(
ListBackupSelections (..),
newListBackupSelections,
listBackupSelections_nextToken,
listBackupSelections_maxResults,
listBackupSelections_backupPlanId,
ListBackupSelectionsResponse (..),
newListBackupSelectionsResponse,
listBackupSelectionsResponse_nextToken,
listBackupSelectionsResponse_backupSelectionsList,
listBackupSelectionsResponse_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 ListBackupSelections = ListBackupSelections'
{
ListBackupSelections -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListBackupSelections -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListBackupSelections -> Text
backupPlanId :: Prelude.Text
}
deriving (ListBackupSelections -> ListBackupSelections -> Bool
(ListBackupSelections -> ListBackupSelections -> Bool)
-> (ListBackupSelections -> ListBackupSelections -> Bool)
-> Eq ListBackupSelections
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListBackupSelections -> ListBackupSelections -> Bool
$c/= :: ListBackupSelections -> ListBackupSelections -> Bool
== :: ListBackupSelections -> ListBackupSelections -> Bool
$c== :: ListBackupSelections -> ListBackupSelections -> Bool
Prelude.Eq, ReadPrec [ListBackupSelections]
ReadPrec ListBackupSelections
Int -> ReadS ListBackupSelections
ReadS [ListBackupSelections]
(Int -> ReadS ListBackupSelections)
-> ReadS [ListBackupSelections]
-> ReadPrec ListBackupSelections
-> ReadPrec [ListBackupSelections]
-> Read ListBackupSelections
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListBackupSelections]
$creadListPrec :: ReadPrec [ListBackupSelections]
readPrec :: ReadPrec ListBackupSelections
$creadPrec :: ReadPrec ListBackupSelections
readList :: ReadS [ListBackupSelections]
$creadList :: ReadS [ListBackupSelections]
readsPrec :: Int -> ReadS ListBackupSelections
$creadsPrec :: Int -> ReadS ListBackupSelections
Prelude.Read, Int -> ListBackupSelections -> ShowS
[ListBackupSelections] -> ShowS
ListBackupSelections -> String
(Int -> ListBackupSelections -> ShowS)
-> (ListBackupSelections -> String)
-> ([ListBackupSelections] -> ShowS)
-> Show ListBackupSelections
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListBackupSelections] -> ShowS
$cshowList :: [ListBackupSelections] -> ShowS
show :: ListBackupSelections -> String
$cshow :: ListBackupSelections -> String
showsPrec :: Int -> ListBackupSelections -> ShowS
$cshowsPrec :: Int -> ListBackupSelections -> ShowS
Prelude.Show, (forall x. ListBackupSelections -> Rep ListBackupSelections x)
-> (forall x. Rep ListBackupSelections x -> ListBackupSelections)
-> Generic ListBackupSelections
forall x. Rep ListBackupSelections x -> ListBackupSelections
forall x. ListBackupSelections -> Rep ListBackupSelections x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListBackupSelections x -> ListBackupSelections
$cfrom :: forall x. ListBackupSelections -> Rep ListBackupSelections x
Prelude.Generic)
newListBackupSelections ::
Prelude.Text ->
ListBackupSelections
newListBackupSelections :: Text -> ListBackupSelections
newListBackupSelections Text
pBackupPlanId_ =
ListBackupSelections' :: Maybe Text -> Maybe Natural -> Text -> ListBackupSelections
ListBackupSelections'
{ $sel:nextToken:ListBackupSelections' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListBackupSelections' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:backupPlanId:ListBackupSelections' :: Text
backupPlanId = Text
pBackupPlanId_
}
listBackupSelections_nextToken :: Lens.Lens' ListBackupSelections (Prelude.Maybe Prelude.Text)
listBackupSelections_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListBackupSelections -> f ListBackupSelections
listBackupSelections_nextToken = (ListBackupSelections -> Maybe Text)
-> (ListBackupSelections -> Maybe Text -> ListBackupSelections)
-> Lens
ListBackupSelections ListBackupSelections (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBackupSelections' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListBackupSelections' :: ListBackupSelections -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListBackupSelections
s@ListBackupSelections' {} Maybe Text
a -> ListBackupSelections
s {$sel:nextToken:ListBackupSelections' :: Maybe Text
nextToken = Maybe Text
a} :: ListBackupSelections)
listBackupSelections_maxResults :: Lens.Lens' ListBackupSelections (Prelude.Maybe Prelude.Natural)
listBackupSelections_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListBackupSelections -> f ListBackupSelections
listBackupSelections_maxResults = (ListBackupSelections -> Maybe Natural)
-> (ListBackupSelections -> Maybe Natural -> ListBackupSelections)
-> Lens
ListBackupSelections
ListBackupSelections
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBackupSelections' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListBackupSelections' :: ListBackupSelections -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListBackupSelections
s@ListBackupSelections' {} Maybe Natural
a -> ListBackupSelections
s {$sel:maxResults:ListBackupSelections' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListBackupSelections)
listBackupSelections_backupPlanId :: Lens.Lens' ListBackupSelections Prelude.Text
listBackupSelections_backupPlanId :: (Text -> f Text) -> ListBackupSelections -> f ListBackupSelections
listBackupSelections_backupPlanId = (ListBackupSelections -> Text)
-> (ListBackupSelections -> Text -> ListBackupSelections)
-> Lens ListBackupSelections ListBackupSelections Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBackupSelections' {Text
backupPlanId :: Text
$sel:backupPlanId:ListBackupSelections' :: ListBackupSelections -> Text
backupPlanId} -> Text
backupPlanId) (\s :: ListBackupSelections
s@ListBackupSelections' {} Text
a -> ListBackupSelections
s {$sel:backupPlanId:ListBackupSelections' :: Text
backupPlanId = Text
a} :: ListBackupSelections)
instance Core.AWSRequest ListBackupSelections where
type
AWSResponse ListBackupSelections =
ListBackupSelectionsResponse
request :: ListBackupSelections -> Request ListBackupSelections
request = Service -> ListBackupSelections -> Request ListBackupSelections
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListBackupSelections
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListBackupSelections)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListBackupSelections))
-> Logger
-> Service
-> Proxy ListBackupSelections
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListBackupSelections)))
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 [BackupSelectionsListMember]
-> Int
-> ListBackupSelectionsResponse
ListBackupSelectionsResponse'
(Maybe Text
-> Maybe [BackupSelectionsListMember]
-> Int
-> ListBackupSelectionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [BackupSelectionsListMember]
-> Int -> ListBackupSelectionsResponse)
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
"NextToken")
Either
String
(Maybe [BackupSelectionsListMember]
-> Int -> ListBackupSelectionsResponse)
-> Either String (Maybe [BackupSelectionsListMember])
-> Either String (Int -> ListBackupSelectionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text
-> Either String (Maybe (Maybe [BackupSelectionsListMember]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"BackupSelectionsList"
Either String (Maybe (Maybe [BackupSelectionsListMember]))
-> Maybe [BackupSelectionsListMember]
-> Either String (Maybe [BackupSelectionsListMember])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [BackupSelectionsListMember]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Int -> ListBackupSelectionsResponse)
-> Either String Int -> Either String ListBackupSelectionsResponse
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 ListBackupSelections
instance Prelude.NFData ListBackupSelections
instance Core.ToHeaders ListBackupSelections where
toHeaders :: ListBackupSelections -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListBackupSelections -> 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 ListBackupSelections where
toPath :: ListBackupSelections -> ByteString
toPath ListBackupSelections' {Maybe Natural
Maybe Text
Text
backupPlanId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:backupPlanId:ListBackupSelections' :: ListBackupSelections -> Text
$sel:maxResults:ListBackupSelections' :: ListBackupSelections -> Maybe Natural
$sel:nextToken:ListBackupSelections' :: ListBackupSelections -> Maybe 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/"
]
instance Core.ToQuery ListBackupSelections where
toQuery :: ListBackupSelections -> QueryString
toQuery ListBackupSelections' {Maybe Natural
Maybe Text
Text
backupPlanId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:backupPlanId:ListBackupSelections' :: ListBackupSelections -> Text
$sel:maxResults:ListBackupSelections' :: ListBackupSelections -> Maybe Natural
$sel:nextToken:ListBackupSelections' :: ListBackupSelections -> 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 ListBackupSelectionsResponse = ListBackupSelectionsResponse'
{
ListBackupSelectionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListBackupSelectionsResponse -> Maybe [BackupSelectionsListMember]
backupSelectionsList :: Prelude.Maybe [BackupSelectionsListMember],
ListBackupSelectionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListBackupSelectionsResponse
-> ListBackupSelectionsResponse -> Bool
(ListBackupSelectionsResponse
-> ListBackupSelectionsResponse -> Bool)
-> (ListBackupSelectionsResponse
-> ListBackupSelectionsResponse -> Bool)
-> Eq ListBackupSelectionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListBackupSelectionsResponse
-> ListBackupSelectionsResponse -> Bool
$c/= :: ListBackupSelectionsResponse
-> ListBackupSelectionsResponse -> Bool
== :: ListBackupSelectionsResponse
-> ListBackupSelectionsResponse -> Bool
$c== :: ListBackupSelectionsResponse
-> ListBackupSelectionsResponse -> Bool
Prelude.Eq, ReadPrec [ListBackupSelectionsResponse]
ReadPrec ListBackupSelectionsResponse
Int -> ReadS ListBackupSelectionsResponse
ReadS [ListBackupSelectionsResponse]
(Int -> ReadS ListBackupSelectionsResponse)
-> ReadS [ListBackupSelectionsResponse]
-> ReadPrec ListBackupSelectionsResponse
-> ReadPrec [ListBackupSelectionsResponse]
-> Read ListBackupSelectionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListBackupSelectionsResponse]
$creadListPrec :: ReadPrec [ListBackupSelectionsResponse]
readPrec :: ReadPrec ListBackupSelectionsResponse
$creadPrec :: ReadPrec ListBackupSelectionsResponse
readList :: ReadS [ListBackupSelectionsResponse]
$creadList :: ReadS [ListBackupSelectionsResponse]
readsPrec :: Int -> ReadS ListBackupSelectionsResponse
$creadsPrec :: Int -> ReadS ListBackupSelectionsResponse
Prelude.Read, Int -> ListBackupSelectionsResponse -> ShowS
[ListBackupSelectionsResponse] -> ShowS
ListBackupSelectionsResponse -> String
(Int -> ListBackupSelectionsResponse -> ShowS)
-> (ListBackupSelectionsResponse -> String)
-> ([ListBackupSelectionsResponse] -> ShowS)
-> Show ListBackupSelectionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListBackupSelectionsResponse] -> ShowS
$cshowList :: [ListBackupSelectionsResponse] -> ShowS
show :: ListBackupSelectionsResponse -> String
$cshow :: ListBackupSelectionsResponse -> String
showsPrec :: Int -> ListBackupSelectionsResponse -> ShowS
$cshowsPrec :: Int -> ListBackupSelectionsResponse -> ShowS
Prelude.Show, (forall x.
ListBackupSelectionsResponse -> Rep ListBackupSelectionsResponse x)
-> (forall x.
Rep ListBackupSelectionsResponse x -> ListBackupSelectionsResponse)
-> Generic ListBackupSelectionsResponse
forall x.
Rep ListBackupSelectionsResponse x -> ListBackupSelectionsResponse
forall x.
ListBackupSelectionsResponse -> Rep ListBackupSelectionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListBackupSelectionsResponse x -> ListBackupSelectionsResponse
$cfrom :: forall x.
ListBackupSelectionsResponse -> Rep ListBackupSelectionsResponse x
Prelude.Generic)
newListBackupSelectionsResponse ::
Prelude.Int ->
ListBackupSelectionsResponse
newListBackupSelectionsResponse :: Int -> ListBackupSelectionsResponse
newListBackupSelectionsResponse Int
pHttpStatus_ =
ListBackupSelectionsResponse' :: Maybe Text
-> Maybe [BackupSelectionsListMember]
-> Int
-> ListBackupSelectionsResponse
ListBackupSelectionsResponse'
{ $sel:nextToken:ListBackupSelectionsResponse' :: Maybe Text
nextToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:backupSelectionsList:ListBackupSelectionsResponse' :: Maybe [BackupSelectionsListMember]
backupSelectionsList = Maybe [BackupSelectionsListMember]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListBackupSelectionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listBackupSelectionsResponse_nextToken :: Lens.Lens' ListBackupSelectionsResponse (Prelude.Maybe Prelude.Text)
listBackupSelectionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListBackupSelectionsResponse -> f ListBackupSelectionsResponse
listBackupSelectionsResponse_nextToken = (ListBackupSelectionsResponse -> Maybe Text)
-> (ListBackupSelectionsResponse
-> Maybe Text -> ListBackupSelectionsResponse)
-> Lens
ListBackupSelectionsResponse
ListBackupSelectionsResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBackupSelectionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListBackupSelectionsResponse' :: ListBackupSelectionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListBackupSelectionsResponse
s@ListBackupSelectionsResponse' {} Maybe Text
a -> ListBackupSelectionsResponse
s {$sel:nextToken:ListBackupSelectionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListBackupSelectionsResponse)
listBackupSelectionsResponse_backupSelectionsList :: Lens.Lens' ListBackupSelectionsResponse (Prelude.Maybe [BackupSelectionsListMember])
listBackupSelectionsResponse_backupSelectionsList :: (Maybe [BackupSelectionsListMember]
-> f (Maybe [BackupSelectionsListMember]))
-> ListBackupSelectionsResponse -> f ListBackupSelectionsResponse
listBackupSelectionsResponse_backupSelectionsList = (ListBackupSelectionsResponse
-> Maybe [BackupSelectionsListMember])
-> (ListBackupSelectionsResponse
-> Maybe [BackupSelectionsListMember]
-> ListBackupSelectionsResponse)
-> Lens
ListBackupSelectionsResponse
ListBackupSelectionsResponse
(Maybe [BackupSelectionsListMember])
(Maybe [BackupSelectionsListMember])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBackupSelectionsResponse' {Maybe [BackupSelectionsListMember]
backupSelectionsList :: Maybe [BackupSelectionsListMember]
$sel:backupSelectionsList:ListBackupSelectionsResponse' :: ListBackupSelectionsResponse -> Maybe [BackupSelectionsListMember]
backupSelectionsList} -> Maybe [BackupSelectionsListMember]
backupSelectionsList) (\s :: ListBackupSelectionsResponse
s@ListBackupSelectionsResponse' {} Maybe [BackupSelectionsListMember]
a -> ListBackupSelectionsResponse
s {$sel:backupSelectionsList:ListBackupSelectionsResponse' :: Maybe [BackupSelectionsListMember]
backupSelectionsList = Maybe [BackupSelectionsListMember]
a} :: ListBackupSelectionsResponse) ((Maybe [BackupSelectionsListMember]
-> f (Maybe [BackupSelectionsListMember]))
-> ListBackupSelectionsResponse -> f ListBackupSelectionsResponse)
-> ((Maybe [BackupSelectionsListMember]
-> f (Maybe [BackupSelectionsListMember]))
-> Maybe [BackupSelectionsListMember]
-> f (Maybe [BackupSelectionsListMember]))
-> (Maybe [BackupSelectionsListMember]
-> f (Maybe [BackupSelectionsListMember]))
-> ListBackupSelectionsResponse
-> f ListBackupSelectionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[BackupSelectionsListMember]
[BackupSelectionsListMember]
[BackupSelectionsListMember]
[BackupSelectionsListMember]
-> Iso
(Maybe [BackupSelectionsListMember])
(Maybe [BackupSelectionsListMember])
(Maybe [BackupSelectionsListMember])
(Maybe [BackupSelectionsListMember])
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
[BackupSelectionsListMember]
[BackupSelectionsListMember]
[BackupSelectionsListMember]
[BackupSelectionsListMember]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listBackupSelectionsResponse_httpStatus :: Lens.Lens' ListBackupSelectionsResponse Prelude.Int
listBackupSelectionsResponse_httpStatus :: (Int -> f Int)
-> ListBackupSelectionsResponse -> f ListBackupSelectionsResponse
listBackupSelectionsResponse_httpStatus = (ListBackupSelectionsResponse -> Int)
-> (ListBackupSelectionsResponse
-> Int -> ListBackupSelectionsResponse)
-> Lens
ListBackupSelectionsResponse ListBackupSelectionsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListBackupSelectionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListBackupSelectionsResponse' :: ListBackupSelectionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListBackupSelectionsResponse
s@ListBackupSelectionsResponse' {} Int
a -> ListBackupSelectionsResponse
s {$sel:httpStatus:ListBackupSelectionsResponse' :: Int
httpStatus = Int
a} :: ListBackupSelectionsResponse)
instance Prelude.NFData ListBackupSelectionsResponse