{-# 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.GetRelationalDatabaseBlueprints
(
GetRelationalDatabaseBlueprints (..),
newGetRelationalDatabaseBlueprints,
getRelationalDatabaseBlueprints_pageToken,
GetRelationalDatabaseBlueprintsResponse (..),
newGetRelationalDatabaseBlueprintsResponse,
getRelationalDatabaseBlueprintsResponse_blueprints,
getRelationalDatabaseBlueprintsResponse_nextPageToken,
getRelationalDatabaseBlueprintsResponse_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 GetRelationalDatabaseBlueprints = GetRelationalDatabaseBlueprints'
{
GetRelationalDatabaseBlueprints -> Maybe Text
pageToken :: Prelude.Maybe Prelude.Text
}
deriving (GetRelationalDatabaseBlueprints
-> GetRelationalDatabaseBlueprints -> Bool
(GetRelationalDatabaseBlueprints
-> GetRelationalDatabaseBlueprints -> Bool)
-> (GetRelationalDatabaseBlueprints
-> GetRelationalDatabaseBlueprints -> Bool)
-> Eq GetRelationalDatabaseBlueprints
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRelationalDatabaseBlueprints
-> GetRelationalDatabaseBlueprints -> Bool
$c/= :: GetRelationalDatabaseBlueprints
-> GetRelationalDatabaseBlueprints -> Bool
== :: GetRelationalDatabaseBlueprints
-> GetRelationalDatabaseBlueprints -> Bool
$c== :: GetRelationalDatabaseBlueprints
-> GetRelationalDatabaseBlueprints -> Bool
Prelude.Eq, ReadPrec [GetRelationalDatabaseBlueprints]
ReadPrec GetRelationalDatabaseBlueprints
Int -> ReadS GetRelationalDatabaseBlueprints
ReadS [GetRelationalDatabaseBlueprints]
(Int -> ReadS GetRelationalDatabaseBlueprints)
-> ReadS [GetRelationalDatabaseBlueprints]
-> ReadPrec GetRelationalDatabaseBlueprints
-> ReadPrec [GetRelationalDatabaseBlueprints]
-> Read GetRelationalDatabaseBlueprints
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRelationalDatabaseBlueprints]
$creadListPrec :: ReadPrec [GetRelationalDatabaseBlueprints]
readPrec :: ReadPrec GetRelationalDatabaseBlueprints
$creadPrec :: ReadPrec GetRelationalDatabaseBlueprints
readList :: ReadS [GetRelationalDatabaseBlueprints]
$creadList :: ReadS [GetRelationalDatabaseBlueprints]
readsPrec :: Int -> ReadS GetRelationalDatabaseBlueprints
$creadsPrec :: Int -> ReadS GetRelationalDatabaseBlueprints
Prelude.Read, Int -> GetRelationalDatabaseBlueprints -> ShowS
[GetRelationalDatabaseBlueprints] -> ShowS
GetRelationalDatabaseBlueprints -> String
(Int -> GetRelationalDatabaseBlueprints -> ShowS)
-> (GetRelationalDatabaseBlueprints -> String)
-> ([GetRelationalDatabaseBlueprints] -> ShowS)
-> Show GetRelationalDatabaseBlueprints
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRelationalDatabaseBlueprints] -> ShowS
$cshowList :: [GetRelationalDatabaseBlueprints] -> ShowS
show :: GetRelationalDatabaseBlueprints -> String
$cshow :: GetRelationalDatabaseBlueprints -> String
showsPrec :: Int -> GetRelationalDatabaseBlueprints -> ShowS
$cshowsPrec :: Int -> GetRelationalDatabaseBlueprints -> ShowS
Prelude.Show, (forall x.
GetRelationalDatabaseBlueprints
-> Rep GetRelationalDatabaseBlueprints x)
-> (forall x.
Rep GetRelationalDatabaseBlueprints x
-> GetRelationalDatabaseBlueprints)
-> Generic GetRelationalDatabaseBlueprints
forall x.
Rep GetRelationalDatabaseBlueprints x
-> GetRelationalDatabaseBlueprints
forall x.
GetRelationalDatabaseBlueprints
-> Rep GetRelationalDatabaseBlueprints x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRelationalDatabaseBlueprints x
-> GetRelationalDatabaseBlueprints
$cfrom :: forall x.
GetRelationalDatabaseBlueprints
-> Rep GetRelationalDatabaseBlueprints x
Prelude.Generic)
newGetRelationalDatabaseBlueprints ::
GetRelationalDatabaseBlueprints
newGetRelationalDatabaseBlueprints :: GetRelationalDatabaseBlueprints
newGetRelationalDatabaseBlueprints =
GetRelationalDatabaseBlueprints' :: Maybe Text -> GetRelationalDatabaseBlueprints
GetRelationalDatabaseBlueprints'
{ $sel:pageToken:GetRelationalDatabaseBlueprints' :: Maybe Text
pageToken =
Maybe Text
forall a. Maybe a
Prelude.Nothing
}
getRelationalDatabaseBlueprints_pageToken :: Lens.Lens' GetRelationalDatabaseBlueprints (Prelude.Maybe Prelude.Text)
getRelationalDatabaseBlueprints_pageToken :: (Maybe Text -> f (Maybe Text))
-> GetRelationalDatabaseBlueprints
-> f GetRelationalDatabaseBlueprints
getRelationalDatabaseBlueprints_pageToken = (GetRelationalDatabaseBlueprints -> Maybe Text)
-> (GetRelationalDatabaseBlueprints
-> Maybe Text -> GetRelationalDatabaseBlueprints)
-> Lens
GetRelationalDatabaseBlueprints
GetRelationalDatabaseBlueprints
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseBlueprints' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:GetRelationalDatabaseBlueprints' :: GetRelationalDatabaseBlueprints -> Maybe Text
pageToken} -> Maybe Text
pageToken) (\s :: GetRelationalDatabaseBlueprints
s@GetRelationalDatabaseBlueprints' {} Maybe Text
a -> GetRelationalDatabaseBlueprints
s {$sel:pageToken:GetRelationalDatabaseBlueprints' :: Maybe Text
pageToken = Maybe Text
a} :: GetRelationalDatabaseBlueprints)
instance
Core.AWSPager
GetRelationalDatabaseBlueprints
where
page :: GetRelationalDatabaseBlueprints
-> AWSResponse GetRelationalDatabaseBlueprints
-> Maybe GetRelationalDatabaseBlueprints
page GetRelationalDatabaseBlueprints
rq AWSResponse GetRelationalDatabaseBlueprints
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetRelationalDatabaseBlueprints
GetRelationalDatabaseBlueprintsResponse
rs
GetRelationalDatabaseBlueprintsResponse
-> Getting
(First Text) GetRelationalDatabaseBlueprintsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetRelationalDatabaseBlueprintsResponse
-> Const (First Text) GetRelationalDatabaseBlueprintsResponse
Lens' GetRelationalDatabaseBlueprintsResponse (Maybe Text)
getRelationalDatabaseBlueprintsResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetRelationalDatabaseBlueprintsResponse
-> Const (First Text) GetRelationalDatabaseBlueprintsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) GetRelationalDatabaseBlueprintsResponse 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 GetRelationalDatabaseBlueprints
forall a. Maybe a
Prelude.Nothing
| Maybe [RelationalDatabaseBlueprint] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetRelationalDatabaseBlueprints
GetRelationalDatabaseBlueprintsResponse
rs
GetRelationalDatabaseBlueprintsResponse
-> Getting
(First [RelationalDatabaseBlueprint])
GetRelationalDatabaseBlueprintsResponse
[RelationalDatabaseBlueprint]
-> Maybe [RelationalDatabaseBlueprint]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [RelationalDatabaseBlueprint]
-> Const
(First [RelationalDatabaseBlueprint])
(Maybe [RelationalDatabaseBlueprint]))
-> GetRelationalDatabaseBlueprintsResponse
-> Const
(First [RelationalDatabaseBlueprint])
GetRelationalDatabaseBlueprintsResponse
Lens'
GetRelationalDatabaseBlueprintsResponse
(Maybe [RelationalDatabaseBlueprint])
getRelationalDatabaseBlueprintsResponse_blueprints
((Maybe [RelationalDatabaseBlueprint]
-> Const
(First [RelationalDatabaseBlueprint])
(Maybe [RelationalDatabaseBlueprint]))
-> GetRelationalDatabaseBlueprintsResponse
-> Const
(First [RelationalDatabaseBlueprint])
GetRelationalDatabaseBlueprintsResponse)
-> (([RelationalDatabaseBlueprint]
-> Const
(First [RelationalDatabaseBlueprint])
[RelationalDatabaseBlueprint])
-> Maybe [RelationalDatabaseBlueprint]
-> Const
(First [RelationalDatabaseBlueprint])
(Maybe [RelationalDatabaseBlueprint]))
-> Getting
(First [RelationalDatabaseBlueprint])
GetRelationalDatabaseBlueprintsResponse
[RelationalDatabaseBlueprint]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([RelationalDatabaseBlueprint]
-> Const
(First [RelationalDatabaseBlueprint])
[RelationalDatabaseBlueprint])
-> Maybe [RelationalDatabaseBlueprint]
-> Const
(First [RelationalDatabaseBlueprint])
(Maybe [RelationalDatabaseBlueprint])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetRelationalDatabaseBlueprints
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetRelationalDatabaseBlueprints
-> Maybe GetRelationalDatabaseBlueprints
forall a. a -> Maybe a
Prelude.Just (GetRelationalDatabaseBlueprints
-> Maybe GetRelationalDatabaseBlueprints)
-> GetRelationalDatabaseBlueprints
-> Maybe GetRelationalDatabaseBlueprints
forall a b. (a -> b) -> a -> b
Prelude.$
GetRelationalDatabaseBlueprints
rq
GetRelationalDatabaseBlueprints
-> (GetRelationalDatabaseBlueprints
-> GetRelationalDatabaseBlueprints)
-> GetRelationalDatabaseBlueprints
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetRelationalDatabaseBlueprints
-> Identity GetRelationalDatabaseBlueprints
Lens
GetRelationalDatabaseBlueprints
GetRelationalDatabaseBlueprints
(Maybe Text)
(Maybe Text)
getRelationalDatabaseBlueprints_pageToken
((Maybe Text -> Identity (Maybe Text))
-> GetRelationalDatabaseBlueprints
-> Identity GetRelationalDatabaseBlueprints)
-> Maybe Text
-> GetRelationalDatabaseBlueprints
-> GetRelationalDatabaseBlueprints
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetRelationalDatabaseBlueprints
GetRelationalDatabaseBlueprintsResponse
rs
GetRelationalDatabaseBlueprintsResponse
-> Getting
(First Text) GetRelationalDatabaseBlueprintsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetRelationalDatabaseBlueprintsResponse
-> Const (First Text) GetRelationalDatabaseBlueprintsResponse
Lens' GetRelationalDatabaseBlueprintsResponse (Maybe Text)
getRelationalDatabaseBlueprintsResponse_nextPageToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetRelationalDatabaseBlueprintsResponse
-> Const (First Text) GetRelationalDatabaseBlueprintsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting
(First Text) GetRelationalDatabaseBlueprintsResponse 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
GetRelationalDatabaseBlueprints
where
type
AWSResponse GetRelationalDatabaseBlueprints =
GetRelationalDatabaseBlueprintsResponse
request :: GetRelationalDatabaseBlueprints
-> Request GetRelationalDatabaseBlueprints
request = Service
-> GetRelationalDatabaseBlueprints
-> Request GetRelationalDatabaseBlueprints
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetRelationalDatabaseBlueprints
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetRelationalDatabaseBlueprints)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetRelationalDatabaseBlueprints))
-> Logger
-> Service
-> Proxy GetRelationalDatabaseBlueprints
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse GetRelationalDatabaseBlueprints)))
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 [RelationalDatabaseBlueprint]
-> Maybe Text -> Int -> GetRelationalDatabaseBlueprintsResponse
GetRelationalDatabaseBlueprintsResponse'
(Maybe [RelationalDatabaseBlueprint]
-> Maybe Text -> Int -> GetRelationalDatabaseBlueprintsResponse)
-> Either String (Maybe [RelationalDatabaseBlueprint])
-> Either
String
(Maybe Text -> Int -> GetRelationalDatabaseBlueprintsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text
-> Either String (Maybe (Maybe [RelationalDatabaseBlueprint]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"blueprints" Either String (Maybe (Maybe [RelationalDatabaseBlueprint]))
-> Maybe [RelationalDatabaseBlueprint]
-> Either String (Maybe [RelationalDatabaseBlueprint])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [RelationalDatabaseBlueprint]
forall a. Monoid a => a
Prelude.mempty)
Either
String
(Maybe Text -> Int -> GetRelationalDatabaseBlueprintsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetRelationalDatabaseBlueprintsResponse)
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
"nextPageToken")
Either String (Int -> GetRelationalDatabaseBlueprintsResponse)
-> Either String Int
-> Either String GetRelationalDatabaseBlueprintsResponse
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
GetRelationalDatabaseBlueprints
instance
Prelude.NFData
GetRelationalDatabaseBlueprints
instance
Core.ToHeaders
GetRelationalDatabaseBlueprints
where
toHeaders :: GetRelationalDatabaseBlueprints -> ResponseHeaders
toHeaders =
ResponseHeaders
-> GetRelationalDatabaseBlueprints -> 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.GetRelationalDatabaseBlueprints" ::
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 GetRelationalDatabaseBlueprints where
toJSON :: GetRelationalDatabaseBlueprints -> Value
toJSON GetRelationalDatabaseBlueprints' {Maybe Text
pageToken :: Maybe Text
$sel:pageToken:GetRelationalDatabaseBlueprints' :: GetRelationalDatabaseBlueprints -> 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 GetRelationalDatabaseBlueprints where
toPath :: GetRelationalDatabaseBlueprints -> ByteString
toPath = ByteString -> GetRelationalDatabaseBlueprints -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetRelationalDatabaseBlueprints where
toQuery :: GetRelationalDatabaseBlueprints -> QueryString
toQuery = QueryString -> GetRelationalDatabaseBlueprints -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetRelationalDatabaseBlueprintsResponse = GetRelationalDatabaseBlueprintsResponse'
{
GetRelationalDatabaseBlueprintsResponse
-> Maybe [RelationalDatabaseBlueprint]
blueprints :: Prelude.Maybe [RelationalDatabaseBlueprint],
GetRelationalDatabaseBlueprintsResponse -> Maybe Text
nextPageToken :: Prelude.Maybe Prelude.Text,
GetRelationalDatabaseBlueprintsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetRelationalDatabaseBlueprintsResponse
-> GetRelationalDatabaseBlueprintsResponse -> Bool
(GetRelationalDatabaseBlueprintsResponse
-> GetRelationalDatabaseBlueprintsResponse -> Bool)
-> (GetRelationalDatabaseBlueprintsResponse
-> GetRelationalDatabaseBlueprintsResponse -> Bool)
-> Eq GetRelationalDatabaseBlueprintsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetRelationalDatabaseBlueprintsResponse
-> GetRelationalDatabaseBlueprintsResponse -> Bool
$c/= :: GetRelationalDatabaseBlueprintsResponse
-> GetRelationalDatabaseBlueprintsResponse -> Bool
== :: GetRelationalDatabaseBlueprintsResponse
-> GetRelationalDatabaseBlueprintsResponse -> Bool
$c== :: GetRelationalDatabaseBlueprintsResponse
-> GetRelationalDatabaseBlueprintsResponse -> Bool
Prelude.Eq, ReadPrec [GetRelationalDatabaseBlueprintsResponse]
ReadPrec GetRelationalDatabaseBlueprintsResponse
Int -> ReadS GetRelationalDatabaseBlueprintsResponse
ReadS [GetRelationalDatabaseBlueprintsResponse]
(Int -> ReadS GetRelationalDatabaseBlueprintsResponse)
-> ReadS [GetRelationalDatabaseBlueprintsResponse]
-> ReadPrec GetRelationalDatabaseBlueprintsResponse
-> ReadPrec [GetRelationalDatabaseBlueprintsResponse]
-> Read GetRelationalDatabaseBlueprintsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetRelationalDatabaseBlueprintsResponse]
$creadListPrec :: ReadPrec [GetRelationalDatabaseBlueprintsResponse]
readPrec :: ReadPrec GetRelationalDatabaseBlueprintsResponse
$creadPrec :: ReadPrec GetRelationalDatabaseBlueprintsResponse
readList :: ReadS [GetRelationalDatabaseBlueprintsResponse]
$creadList :: ReadS [GetRelationalDatabaseBlueprintsResponse]
readsPrec :: Int -> ReadS GetRelationalDatabaseBlueprintsResponse
$creadsPrec :: Int -> ReadS GetRelationalDatabaseBlueprintsResponse
Prelude.Read, Int -> GetRelationalDatabaseBlueprintsResponse -> ShowS
[GetRelationalDatabaseBlueprintsResponse] -> ShowS
GetRelationalDatabaseBlueprintsResponse -> String
(Int -> GetRelationalDatabaseBlueprintsResponse -> ShowS)
-> (GetRelationalDatabaseBlueprintsResponse -> String)
-> ([GetRelationalDatabaseBlueprintsResponse] -> ShowS)
-> Show GetRelationalDatabaseBlueprintsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetRelationalDatabaseBlueprintsResponse] -> ShowS
$cshowList :: [GetRelationalDatabaseBlueprintsResponse] -> ShowS
show :: GetRelationalDatabaseBlueprintsResponse -> String
$cshow :: GetRelationalDatabaseBlueprintsResponse -> String
showsPrec :: Int -> GetRelationalDatabaseBlueprintsResponse -> ShowS
$cshowsPrec :: Int -> GetRelationalDatabaseBlueprintsResponse -> ShowS
Prelude.Show, (forall x.
GetRelationalDatabaseBlueprintsResponse
-> Rep GetRelationalDatabaseBlueprintsResponse x)
-> (forall x.
Rep GetRelationalDatabaseBlueprintsResponse x
-> GetRelationalDatabaseBlueprintsResponse)
-> Generic GetRelationalDatabaseBlueprintsResponse
forall x.
Rep GetRelationalDatabaseBlueprintsResponse x
-> GetRelationalDatabaseBlueprintsResponse
forall x.
GetRelationalDatabaseBlueprintsResponse
-> Rep GetRelationalDatabaseBlueprintsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetRelationalDatabaseBlueprintsResponse x
-> GetRelationalDatabaseBlueprintsResponse
$cfrom :: forall x.
GetRelationalDatabaseBlueprintsResponse
-> Rep GetRelationalDatabaseBlueprintsResponse x
Prelude.Generic)
newGetRelationalDatabaseBlueprintsResponse ::
Prelude.Int ->
GetRelationalDatabaseBlueprintsResponse
newGetRelationalDatabaseBlueprintsResponse :: Int -> GetRelationalDatabaseBlueprintsResponse
newGetRelationalDatabaseBlueprintsResponse
Int
pHttpStatus_ =
GetRelationalDatabaseBlueprintsResponse' :: Maybe [RelationalDatabaseBlueprint]
-> Maybe Text -> Int -> GetRelationalDatabaseBlueprintsResponse
GetRelationalDatabaseBlueprintsResponse'
{ $sel:blueprints:GetRelationalDatabaseBlueprintsResponse' :: Maybe [RelationalDatabaseBlueprint]
blueprints =
Maybe [RelationalDatabaseBlueprint]
forall a. Maybe a
Prelude.Nothing,
$sel:nextPageToken:GetRelationalDatabaseBlueprintsResponse' :: Maybe Text
nextPageToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetRelationalDatabaseBlueprintsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getRelationalDatabaseBlueprintsResponse_blueprints :: Lens.Lens' GetRelationalDatabaseBlueprintsResponse (Prelude.Maybe [RelationalDatabaseBlueprint])
getRelationalDatabaseBlueprintsResponse_blueprints :: (Maybe [RelationalDatabaseBlueprint]
-> f (Maybe [RelationalDatabaseBlueprint]))
-> GetRelationalDatabaseBlueprintsResponse
-> f GetRelationalDatabaseBlueprintsResponse
getRelationalDatabaseBlueprintsResponse_blueprints = (GetRelationalDatabaseBlueprintsResponse
-> Maybe [RelationalDatabaseBlueprint])
-> (GetRelationalDatabaseBlueprintsResponse
-> Maybe [RelationalDatabaseBlueprint]
-> GetRelationalDatabaseBlueprintsResponse)
-> Lens'
GetRelationalDatabaseBlueprintsResponse
(Maybe [RelationalDatabaseBlueprint])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseBlueprintsResponse' {Maybe [RelationalDatabaseBlueprint]
blueprints :: Maybe [RelationalDatabaseBlueprint]
$sel:blueprints:GetRelationalDatabaseBlueprintsResponse' :: GetRelationalDatabaseBlueprintsResponse
-> Maybe [RelationalDatabaseBlueprint]
blueprints} -> Maybe [RelationalDatabaseBlueprint]
blueprints) (\s :: GetRelationalDatabaseBlueprintsResponse
s@GetRelationalDatabaseBlueprintsResponse' {} Maybe [RelationalDatabaseBlueprint]
a -> GetRelationalDatabaseBlueprintsResponse
s {$sel:blueprints:GetRelationalDatabaseBlueprintsResponse' :: Maybe [RelationalDatabaseBlueprint]
blueprints = Maybe [RelationalDatabaseBlueprint]
a} :: GetRelationalDatabaseBlueprintsResponse) ((Maybe [RelationalDatabaseBlueprint]
-> f (Maybe [RelationalDatabaseBlueprint]))
-> GetRelationalDatabaseBlueprintsResponse
-> f GetRelationalDatabaseBlueprintsResponse)
-> ((Maybe [RelationalDatabaseBlueprint]
-> f (Maybe [RelationalDatabaseBlueprint]))
-> Maybe [RelationalDatabaseBlueprint]
-> f (Maybe [RelationalDatabaseBlueprint]))
-> (Maybe [RelationalDatabaseBlueprint]
-> f (Maybe [RelationalDatabaseBlueprint]))
-> GetRelationalDatabaseBlueprintsResponse
-> f GetRelationalDatabaseBlueprintsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[RelationalDatabaseBlueprint]
[RelationalDatabaseBlueprint]
[RelationalDatabaseBlueprint]
[RelationalDatabaseBlueprint]
-> Iso
(Maybe [RelationalDatabaseBlueprint])
(Maybe [RelationalDatabaseBlueprint])
(Maybe [RelationalDatabaseBlueprint])
(Maybe [RelationalDatabaseBlueprint])
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
[RelationalDatabaseBlueprint]
[RelationalDatabaseBlueprint]
[RelationalDatabaseBlueprint]
[RelationalDatabaseBlueprint]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getRelationalDatabaseBlueprintsResponse_nextPageToken :: Lens.Lens' GetRelationalDatabaseBlueprintsResponse (Prelude.Maybe Prelude.Text)
getRelationalDatabaseBlueprintsResponse_nextPageToken :: (Maybe Text -> f (Maybe Text))
-> GetRelationalDatabaseBlueprintsResponse
-> f GetRelationalDatabaseBlueprintsResponse
getRelationalDatabaseBlueprintsResponse_nextPageToken = (GetRelationalDatabaseBlueprintsResponse -> Maybe Text)
-> (GetRelationalDatabaseBlueprintsResponse
-> Maybe Text -> GetRelationalDatabaseBlueprintsResponse)
-> Lens' GetRelationalDatabaseBlueprintsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseBlueprintsResponse' {Maybe Text
nextPageToken :: Maybe Text
$sel:nextPageToken:GetRelationalDatabaseBlueprintsResponse' :: GetRelationalDatabaseBlueprintsResponse -> Maybe Text
nextPageToken} -> Maybe Text
nextPageToken) (\s :: GetRelationalDatabaseBlueprintsResponse
s@GetRelationalDatabaseBlueprintsResponse' {} Maybe Text
a -> GetRelationalDatabaseBlueprintsResponse
s {$sel:nextPageToken:GetRelationalDatabaseBlueprintsResponse' :: Maybe Text
nextPageToken = Maybe Text
a} :: GetRelationalDatabaseBlueprintsResponse)
getRelationalDatabaseBlueprintsResponse_httpStatus :: Lens.Lens' GetRelationalDatabaseBlueprintsResponse Prelude.Int
getRelationalDatabaseBlueprintsResponse_httpStatus :: (Int -> f Int)
-> GetRelationalDatabaseBlueprintsResponse
-> f GetRelationalDatabaseBlueprintsResponse
getRelationalDatabaseBlueprintsResponse_httpStatus = (GetRelationalDatabaseBlueprintsResponse -> Int)
-> (GetRelationalDatabaseBlueprintsResponse
-> Int -> GetRelationalDatabaseBlueprintsResponse)
-> Lens
GetRelationalDatabaseBlueprintsResponse
GetRelationalDatabaseBlueprintsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetRelationalDatabaseBlueprintsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetRelationalDatabaseBlueprintsResponse' :: GetRelationalDatabaseBlueprintsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetRelationalDatabaseBlueprintsResponse
s@GetRelationalDatabaseBlueprintsResponse' {} Int
a -> GetRelationalDatabaseBlueprintsResponse
s {$sel:httpStatus:GetRelationalDatabaseBlueprintsResponse' :: Int
httpStatus = Int
a} :: GetRelationalDatabaseBlueprintsResponse)
instance
Prelude.NFData
GetRelationalDatabaseBlueprintsResponse