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