{-# 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.Lightsail.GetRelationalDatabaseBundles
(
GetRelationalDatabaseBundles (..),
newGetRelationalDatabaseBundles,
getRelationalDatabaseBundles_pageToken,
GetRelationalDatabaseBundlesResponse (..),
newGetRelationalDatabaseBundlesResponse,
getRelationalDatabaseBundlesResponse_nextPageToken,
getRelationalDatabaseBundlesResponse_bundles,
getRelationalDatabaseBundlesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.Lightsail.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetRelationalDatabaseBundles = GetRelationalDatabaseBundles'
{
GetRelationalDatabaseBundles -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text
}
deriving (GetRelationalDatabaseBundles
-> GetRelationalDatabaseBundles -> Bool
(GetRelationalDatabaseBundles
-> GetRelationalDatabaseBundles -> Bool)
-> (GetRelationalDatabaseBundles
-> GetRelationalDatabaseBundles -> Bool)
-> Eq GetRelationalDatabaseBundles
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRelationalDatabaseBundles
-> GetRelationalDatabaseBundles -> Bool
$c/= :: GetRelationalDatabaseBundles
-> GetRelationalDatabaseBundles -> Bool
== :: GetRelationalDatabaseBundles
-> GetRelationalDatabaseBundles -> Bool
$c== :: GetRelationalDatabaseBundles
-> GetRelationalDatabaseBundles -> Bool
Prelude.Eq, ReadPrec [GetRelationalDatabaseBundles]
ReadPrec GetRelationalDatabaseBundles
Int -> ReadS GetRelationalDatabaseBundles
ReadS [GetRelationalDatabaseBundles]
(Int -> ReadS GetRelationalDatabaseBundles)
-> ReadS [GetRelationalDatabaseBundles]
-> ReadPrec GetRelationalDatabaseBundles
-> ReadPrec [GetRelationalDatabaseBundles]
-> Read GetRelationalDatabaseBundles
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRelationalDatabaseBundles]
$creadListPrec :: ReadPrec [GetRelationalDatabaseBundles]
readPrec :: ReadPrec GetRelationalDatabaseBundles
$creadPrec :: ReadPrec GetRelationalDatabaseBundles
readList :: ReadS [GetRelationalDatabaseBundles]
$creadList :: ReadS [GetRelationalDatabaseBundles]
readsPrec :: Int -> ReadS GetRelationalDatabaseBundles
$creadsPrec :: Int -> ReadS GetRelationalDatabaseBundles
Prelude.Read, Int -> GetRelationalDatabaseBundles -> ShowS
[GetRelationalDatabaseBundles] -> ShowS
GetRelationalDatabaseBundles -> String
(Int -> GetRelationalDatabaseBundles -> ShowS)
-> (GetRelationalDatabaseBundles -> String)
-> ([GetRelationalDatabaseBundles] -> ShowS)
-> Show GetRelationalDatabaseBundles
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRelationalDatabaseBundles] -> ShowS
$cshowList :: [GetRelationalDatabaseBundles] -> ShowS
show :: GetRelationalDatabaseBundles -> String
$cshow :: GetRelationalDatabaseBundles -> String
showsPrec :: Int -> GetRelationalDatabaseBundles -> ShowS
$cshowsPrec :: Int -> GetRelationalDatabaseBundles -> ShowS
Prelude.Show, (forall x.
GetRelationalDatabaseBundles -> Rep GetRelationalDatabaseBundles x)
-> (forall x.
Rep GetRelationalDatabaseBundles x -> GetRelationalDatabaseBundles)
-> Generic GetRelationalDatabaseBundles
forall x.
Rep GetRelationalDatabaseBundles x -> GetRelationalDatabaseBundles
forall x.
GetRelationalDatabaseBundles -> Rep GetRelationalDatabaseBundles x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRelationalDatabaseBundles x -> GetRelationalDatabaseBundles
$cfrom :: forall x.
GetRelationalDatabaseBundles -> Rep GetRelationalDatabaseBundles x
Prelude.Generic)
newGetRelationalDatabaseBundles ::
GetRelationalDatabaseBundles
newGetRelationalDatabaseBundles :: GetRelationalDatabaseBundles
newGetRelationalDatabaseBundles =
GetRelationalDatabaseBundles' :: Maybe Text -> GetRelationalDatabaseBundles
GetRelationalDatabaseBundles'
{ $sel:pageToken:GetRelationalDatabaseBundles' :: Maybe Text
pageToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
getRelationalDatabaseBundles_pageToken :: Lens.Lens' GetRelationalDatabaseBundles (Prelude.Maybe Prelude.Text)
getRelationalDatabaseBundles_pageToken :: (Maybe Text -> f (Maybe Text))
-> GetRelationalDatabaseBundles -> f GetRelationalDatabaseBundles
getRelationalDatabaseBundles_pageToken = (GetRelationalDatabaseBundles -> Maybe Text)
-> (GetRelationalDatabaseBundles
-> Maybe Text -> GetRelationalDatabaseBundles)
-> Lens
GetRelationalDatabaseBundles
GetRelationalDatabaseBundles
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseBundles' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:GetRelationalDatabaseBundles' :: GetRelationalDatabaseBundles -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: GetRelationalDatabaseBundles
s@GetRelationalDatabaseBundles' {} Maybe Text
a -> GetRelationalDatabaseBundles
s {$sel:pageToken:GetRelationalDatabaseBundles' :: Maybe Text
pageToken = Maybe Text
a} :: GetRelationalDatabaseBundles)
instance Core.AWSPager GetRelationalDatabaseBundles where
page :: GetRelationalDatabaseBundles
-> AWSResponse GetRelationalDatabaseBundles
-> Maybe GetRelationalDatabaseBundles
page GetRelationalDatabaseBundles
rq AWSResponse GetRelationalDatabaseBundles
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetRelationalDatabaseBundles
GetRelationalDatabaseBundlesResponse
rs
GetRelationalDatabaseBundlesResponse
-> Getting (First Text) GetRelationalDatabaseBundlesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetRelationalDatabaseBundlesResponse
-> Const (First Text) GetRelationalDatabaseBundlesResponse
Lens' GetRelationalDatabaseBundlesResponse (Maybe Text)
getRelationalDatabaseBundlesResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetRelationalDatabaseBundlesResponse
-> Const (First Text) GetRelationalDatabaseBundlesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetRelationalDatabaseBundlesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetRelationalDatabaseBundles
forall a. Maybe a
Prelude.Nothing
| Maybe [RelationalDatabaseBundle] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetRelationalDatabaseBundles
GetRelationalDatabaseBundlesResponse
rs
GetRelationalDatabaseBundlesResponse
-> Getting
(First [RelationalDatabaseBundle])
GetRelationalDatabaseBundlesResponse
[RelationalDatabaseBundle]
-> Maybe [RelationalDatabaseBundle]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [RelationalDatabaseBundle]
-> Const
(First [RelationalDatabaseBundle])
(Maybe [RelationalDatabaseBundle]))
-> GetRelationalDatabaseBundlesResponse
-> Const
(First [RelationalDatabaseBundle])
GetRelationalDatabaseBundlesResponse
Lens'
GetRelationalDatabaseBundlesResponse
(Maybe [RelationalDatabaseBundle])
getRelationalDatabaseBundlesResponse_bundles
((Maybe [RelationalDatabaseBundle]
-> Const
(First [RelationalDatabaseBundle])
(Maybe [RelationalDatabaseBundle]))
-> GetRelationalDatabaseBundlesResponse
-> Const
(First [RelationalDatabaseBundle])
GetRelationalDatabaseBundlesResponse)
-> (([RelationalDatabaseBundle]
-> Const
(First [RelationalDatabaseBundle]) [RelationalDatabaseBundle])
-> Maybe [RelationalDatabaseBundle]
-> Const
(First [RelationalDatabaseBundle])
(Maybe [RelationalDatabaseBundle]))
-> Getting
(First [RelationalDatabaseBundle])
GetRelationalDatabaseBundlesResponse
[RelationalDatabaseBundle]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([RelationalDatabaseBundle]
-> Const
(First [RelationalDatabaseBundle]) [RelationalDatabaseBundle])
-> Maybe [RelationalDatabaseBundle]
-> Const
(First [RelationalDatabaseBundle])
(Maybe [RelationalDatabaseBundle])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetRelationalDatabaseBundles
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetRelationalDatabaseBundles -> Maybe GetRelationalDatabaseBundles
forall a. a -> Maybe a
Prelude.Just (GetRelationalDatabaseBundles
-> Maybe GetRelationalDatabaseBundles)
-> GetRelationalDatabaseBundles
-> Maybe GetRelationalDatabaseBundles
forall a b. (a -> b) -> a -> b
Prelude.$
GetRelationalDatabaseBundles
rq
GetRelationalDatabaseBundles
-> (GetRelationalDatabaseBundles -> GetRelationalDatabaseBundles)
-> GetRelationalDatabaseBundles
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetRelationalDatabaseBundles
-> Identity GetRelationalDatabaseBundles
Lens
GetRelationalDatabaseBundles
GetRelationalDatabaseBundles
(Maybe Text)
(Maybe Text)
getRelationalDatabaseBundles_pageToken
((Maybe Text -> Identity (Maybe Text))
-> GetRelationalDatabaseBundles
-> Identity GetRelationalDatabaseBundles)
-> Maybe Text
-> GetRelationalDatabaseBundles
-> GetRelationalDatabaseBundles
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetRelationalDatabaseBundles
GetRelationalDatabaseBundlesResponse
rs
GetRelationalDatabaseBundlesResponse
-> Getting (First Text) GetRelationalDatabaseBundlesResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetRelationalDatabaseBundlesResponse
-> Const (First Text) GetRelationalDatabaseBundlesResponse
Lens' GetRelationalDatabaseBundlesResponse (Maybe Text)
getRelationalDatabaseBundlesResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetRelationalDatabaseBundlesResponse
-> Const (First Text) GetRelationalDatabaseBundlesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetRelationalDatabaseBundlesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest GetRelationalDatabaseBundles where
type
AWSResponse GetRelationalDatabaseBundles =
GetRelationalDatabaseBundlesResponse
request :: GetRelationalDatabaseBundles
-> Request GetRelationalDatabaseBundles
request = Service
-> GetRelationalDatabaseBundles
-> Request GetRelationalDatabaseBundles
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetRelationalDatabaseBundles
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetRelationalDatabaseBundles)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetRelationalDatabaseBundles))
-> Logger
-> Service
-> Proxy GetRelationalDatabaseBundles
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetRelationalDatabaseBundles)))
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 [RelationalDatabaseBundle]
-> Int
-> GetRelationalDatabaseBundlesResponse
GetRelationalDatabaseBundlesResponse'
(Maybe Text
-> Maybe [RelationalDatabaseBundle]
-> Int
-> GetRelationalDatabaseBundlesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [RelationalDatabaseBundle]
-> Int -> GetRelationalDatabaseBundlesResponse)
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
"nextPageToken")
Either
String
(Maybe [RelationalDatabaseBundle]
-> Int -> GetRelationalDatabaseBundlesResponse)
-> Either String (Maybe [RelationalDatabaseBundle])
-> Either String (Int -> GetRelationalDatabaseBundlesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object
-> Text -> Either String (Maybe (Maybe [RelationalDatabaseBundle]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"bundles" Either String (Maybe (Maybe [RelationalDatabaseBundle]))
-> Maybe [RelationalDatabaseBundle]
-> Either String (Maybe [RelationalDatabaseBundle])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RelationalDatabaseBundle]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetRelationalDatabaseBundlesResponse)
-> Either String Int
-> Either String GetRelationalDatabaseBundlesResponse
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
GetRelationalDatabaseBundles
instance Prelude.NFData GetRelationalDatabaseBundles
instance Core.ToHeaders GetRelationalDatabaseBundles where
toHeaders :: GetRelationalDatabaseBundles -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetRelationalDatabaseBundles -> 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
"Lightsail_20161128.GetRelationalDatabaseBundles" ::
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 GetRelationalDatabaseBundles where
toJSON :: GetRelationalDatabaseBundles -> Value
toJSON GetRelationalDatabaseBundles' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:GetRelationalDatabaseBundles' :: GetRelationalDatabaseBundles -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[(Text
"pageToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
pageToken]
)
instance Core.ToPath GetRelationalDatabaseBundles where
toPath :: GetRelationalDatabaseBundles -> ByteString
toPath = ByteString -> GetRelationalDatabaseBundles -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetRelationalDatabaseBundles where
toQuery :: GetRelationalDatabaseBundles -> QueryString
toQuery = QueryString -> GetRelationalDatabaseBundles -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetRelationalDatabaseBundlesResponse = GetRelationalDatabaseBundlesResponse'
{
GetRelationalDatabaseBundlesResponse -> Maybe Text
nextPageToken :: Prelude.Maybe Prelude.Text,
GetRelationalDatabaseBundlesResponse
-> Maybe [RelationalDatabaseBundle]
bundles :: Prelude.Maybe [RelationalDatabaseBundle],
GetRelationalDatabaseBundlesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetRelationalDatabaseBundlesResponse
-> GetRelationalDatabaseBundlesResponse -> Bool
(GetRelationalDatabaseBundlesResponse
-> GetRelationalDatabaseBundlesResponse -> Bool)
-> (GetRelationalDatabaseBundlesResponse
-> GetRelationalDatabaseBundlesResponse -> Bool)
-> Eq GetRelationalDatabaseBundlesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRelationalDatabaseBundlesResponse
-> GetRelationalDatabaseBundlesResponse -> Bool
$c/= :: GetRelationalDatabaseBundlesResponse
-> GetRelationalDatabaseBundlesResponse -> Bool
== :: GetRelationalDatabaseBundlesResponse
-> GetRelationalDatabaseBundlesResponse -> Bool
$c== :: GetRelationalDatabaseBundlesResponse
-> GetRelationalDatabaseBundlesResponse -> Bool
Prelude.Eq, ReadPrec [GetRelationalDatabaseBundlesResponse]
ReadPrec GetRelationalDatabaseBundlesResponse
Int -> ReadS GetRelationalDatabaseBundlesResponse
ReadS [GetRelationalDatabaseBundlesResponse]
(Int -> ReadS GetRelationalDatabaseBundlesResponse)
-> ReadS [GetRelationalDatabaseBundlesResponse]
-> ReadPrec GetRelationalDatabaseBundlesResponse
-> ReadPrec [GetRelationalDatabaseBundlesResponse]
-> Read GetRelationalDatabaseBundlesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRelationalDatabaseBundlesResponse]
$creadListPrec :: ReadPrec [GetRelationalDatabaseBundlesResponse]
readPrec :: ReadPrec GetRelationalDatabaseBundlesResponse
$creadPrec :: ReadPrec GetRelationalDatabaseBundlesResponse
readList :: ReadS [GetRelationalDatabaseBundlesResponse]
$creadList :: ReadS [GetRelationalDatabaseBundlesResponse]
readsPrec :: Int -> ReadS GetRelationalDatabaseBundlesResponse
$creadsPrec :: Int -> ReadS GetRelationalDatabaseBundlesResponse
Prelude.Read, Int -> GetRelationalDatabaseBundlesResponse -> ShowS
[GetRelationalDatabaseBundlesResponse] -> ShowS
GetRelationalDatabaseBundlesResponse -> String
(Int -> GetRelationalDatabaseBundlesResponse -> ShowS)
-> (GetRelationalDatabaseBundlesResponse -> String)
-> ([GetRelationalDatabaseBundlesResponse] -> ShowS)
-> Show GetRelationalDatabaseBundlesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRelationalDatabaseBundlesResponse] -> ShowS
$cshowList :: [GetRelationalDatabaseBundlesResponse] -> ShowS
show :: GetRelationalDatabaseBundlesResponse -> String
$cshow :: GetRelationalDatabaseBundlesResponse -> String
showsPrec :: Int -> GetRelationalDatabaseBundlesResponse -> ShowS
$cshowsPrec :: Int -> GetRelationalDatabaseBundlesResponse -> ShowS
Prelude.Show, (forall x.
GetRelationalDatabaseBundlesResponse
-> Rep GetRelationalDatabaseBundlesResponse x)
-> (forall x.
Rep GetRelationalDatabaseBundlesResponse x
-> GetRelationalDatabaseBundlesResponse)
-> Generic GetRelationalDatabaseBundlesResponse
forall x.
Rep GetRelationalDatabaseBundlesResponse x
-> GetRelationalDatabaseBundlesResponse
forall x.
GetRelationalDatabaseBundlesResponse
-> Rep GetRelationalDatabaseBundlesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRelationalDatabaseBundlesResponse x
-> GetRelationalDatabaseBundlesResponse
$cfrom :: forall x.
GetRelationalDatabaseBundlesResponse
-> Rep GetRelationalDatabaseBundlesResponse x
Prelude.Generic)
newGetRelationalDatabaseBundlesResponse ::
Prelude.Int ->
GetRelationalDatabaseBundlesResponse
newGetRelationalDatabaseBundlesResponse :: Int -> GetRelationalDatabaseBundlesResponse
newGetRelationalDatabaseBundlesResponse Int
pHttpStatus_ =
GetRelationalDatabaseBundlesResponse' :: Maybe Text
-> Maybe [RelationalDatabaseBundle]
-> Int
-> GetRelationalDatabaseBundlesResponse
GetRelationalDatabaseBundlesResponse'
{ $sel:nextPageToken:GetRelationalDatabaseBundlesResponse' :: Maybe Text
nextPageToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:bundles:GetRelationalDatabaseBundlesResponse' :: Maybe [RelationalDatabaseBundle]
bundles = Maybe [RelationalDatabaseBundle]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetRelationalDatabaseBundlesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getRelationalDatabaseBundlesResponse_nextPageToken :: Lens.Lens' GetRelationalDatabaseBundlesResponse (Prelude.Maybe Prelude.Text)
getRelationalDatabaseBundlesResponse_nextPageToken :: (Maybe Text -> f (Maybe Text))
-> GetRelationalDatabaseBundlesResponse
-> f GetRelationalDatabaseBundlesResponse
getRelationalDatabaseBundlesResponse_nextPageToken = (GetRelationalDatabaseBundlesResponse -> Maybe Text)
-> (GetRelationalDatabaseBundlesResponse
-> Maybe Text -> GetRelationalDatabaseBundlesResponse)
-> Lens' GetRelationalDatabaseBundlesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseBundlesResponse' {Maybe Text
nextPageToken :: Maybe Text
$sel:nextPageToken:GetRelationalDatabaseBundlesResponse' :: GetRelationalDatabaseBundlesResponse -> Maybe Text
nextPageToken} -> Maybe Text
nextPageToken) (\s :: GetRelationalDatabaseBundlesResponse
s@GetRelationalDatabaseBundlesResponse' {} Maybe Text
a -> GetRelationalDatabaseBundlesResponse
s {$sel:nextPageToken:GetRelationalDatabaseBundlesResponse' :: Maybe Text
nextPageToken = Maybe Text
a} :: GetRelationalDatabaseBundlesResponse)
getRelationalDatabaseBundlesResponse_bundles :: Lens.Lens' GetRelationalDatabaseBundlesResponse (Prelude.Maybe [RelationalDatabaseBundle])
getRelationalDatabaseBundlesResponse_bundles :: (Maybe [RelationalDatabaseBundle]
-> f (Maybe [RelationalDatabaseBundle]))
-> GetRelationalDatabaseBundlesResponse
-> f GetRelationalDatabaseBundlesResponse
getRelationalDatabaseBundlesResponse_bundles = (GetRelationalDatabaseBundlesResponse
-> Maybe [RelationalDatabaseBundle])
-> (GetRelationalDatabaseBundlesResponse
-> Maybe [RelationalDatabaseBundle]
-> GetRelationalDatabaseBundlesResponse)
-> Lens'
GetRelationalDatabaseBundlesResponse
(Maybe [RelationalDatabaseBundle])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseBundlesResponse' {Maybe [RelationalDatabaseBundle]
bundles :: Maybe [RelationalDatabaseBundle]
$sel:bundles:GetRelationalDatabaseBundlesResponse' :: GetRelationalDatabaseBundlesResponse
-> Maybe [RelationalDatabaseBundle]
bundles} -> Maybe [RelationalDatabaseBundle]
bundles) (\s :: GetRelationalDatabaseBundlesResponse
s@GetRelationalDatabaseBundlesResponse' {} Maybe [RelationalDatabaseBundle]
a -> GetRelationalDatabaseBundlesResponse
s {$sel:bundles:GetRelationalDatabaseBundlesResponse' :: Maybe [RelationalDatabaseBundle]
bundles = Maybe [RelationalDatabaseBundle]
a} :: GetRelationalDatabaseBundlesResponse) ((Maybe [RelationalDatabaseBundle]
-> f (Maybe [RelationalDatabaseBundle]))
-> GetRelationalDatabaseBundlesResponse
-> f GetRelationalDatabaseBundlesResponse)
-> ((Maybe [RelationalDatabaseBundle]
-> f (Maybe [RelationalDatabaseBundle]))
-> Maybe [RelationalDatabaseBundle]
-> f (Maybe [RelationalDatabaseBundle]))
-> (Maybe [RelationalDatabaseBundle]
-> f (Maybe [RelationalDatabaseBundle]))
-> GetRelationalDatabaseBundlesResponse
-> f GetRelationalDatabaseBundlesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RelationalDatabaseBundle]
[RelationalDatabaseBundle]
[RelationalDatabaseBundle]
[RelationalDatabaseBundle]
-> Iso
(Maybe [RelationalDatabaseBundle])
(Maybe [RelationalDatabaseBundle])
(Maybe [RelationalDatabaseBundle])
(Maybe [RelationalDatabaseBundle])
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
[RelationalDatabaseBundle]
[RelationalDatabaseBundle]
[RelationalDatabaseBundle]
[RelationalDatabaseBundle]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getRelationalDatabaseBundlesResponse_httpStatus :: Lens.Lens' GetRelationalDatabaseBundlesResponse Prelude.Int
getRelationalDatabaseBundlesResponse_httpStatus :: (Int -> f Int)
-> GetRelationalDatabaseBundlesResponse
-> f GetRelationalDatabaseBundlesResponse
getRelationalDatabaseBundlesResponse_httpStatus = (GetRelationalDatabaseBundlesResponse -> Int)
-> (GetRelationalDatabaseBundlesResponse
-> Int -> GetRelationalDatabaseBundlesResponse)
-> Lens
GetRelationalDatabaseBundlesResponse
GetRelationalDatabaseBundlesResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseBundlesResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetRelationalDatabaseBundlesResponse' :: GetRelationalDatabaseBundlesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetRelationalDatabaseBundlesResponse
s@GetRelationalDatabaseBundlesResponse' {} Int
a -> GetRelationalDatabaseBundlesResponse
s {$sel:httpStatus:GetRelationalDatabaseBundlesResponse' :: Int
httpStatus = Int
a} :: GetRelationalDatabaseBundlesResponse)
instance
Prelude.NFData
GetRelationalDatabaseBundlesResponse