{-# 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.ApiGatewayV2.GetIntegrations
(
GetIntegrations (..),
newGetIntegrations,
getIntegrations_nextToken,
getIntegrations_maxResults,
getIntegrations_apiId,
GetIntegrationsResponse (..),
newGetIntegrationsResponse,
getIntegrationsResponse_items,
getIntegrationsResponse_nextToken,
getIntegrationsResponse_httpStatus,
)
where
import Amazonka.ApiGatewayV2.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 GetIntegrations = GetIntegrations'
{
GetIntegrations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetIntegrations -> Maybe Text
maxResults :: Prelude.Maybe Prelude.Text,
GetIntegrations -> Text
apiId :: Prelude.Text
}
deriving (GetIntegrations -> GetIntegrations -> Bool
(GetIntegrations -> GetIntegrations -> Bool)
-> (GetIntegrations -> GetIntegrations -> Bool)
-> Eq GetIntegrations
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIntegrations -> GetIntegrations -> Bool
$c/= :: GetIntegrations -> GetIntegrations -> Bool
== :: GetIntegrations -> GetIntegrations -> Bool
$c== :: GetIntegrations -> GetIntegrations -> Bool
Prelude.Eq, ReadPrec [GetIntegrations]
ReadPrec GetIntegrations
Int -> ReadS GetIntegrations
ReadS [GetIntegrations]
(Int -> ReadS GetIntegrations)
-> ReadS [GetIntegrations]
-> ReadPrec GetIntegrations
-> ReadPrec [GetIntegrations]
-> Read GetIntegrations
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIntegrations]
$creadListPrec :: ReadPrec [GetIntegrations]
readPrec :: ReadPrec GetIntegrations
$creadPrec :: ReadPrec GetIntegrations
readList :: ReadS [GetIntegrations]
$creadList :: ReadS [GetIntegrations]
readsPrec :: Int -> ReadS GetIntegrations
$creadsPrec :: Int -> ReadS GetIntegrations
Prelude.Read, Int -> GetIntegrations -> ShowS
[GetIntegrations] -> ShowS
GetIntegrations -> String
(Int -> GetIntegrations -> ShowS)
-> (GetIntegrations -> String)
-> ([GetIntegrations] -> ShowS)
-> Show GetIntegrations
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIntegrations] -> ShowS
$cshowList :: [GetIntegrations] -> ShowS
show :: GetIntegrations -> String
$cshow :: GetIntegrations -> String
showsPrec :: Int -> GetIntegrations -> ShowS
$cshowsPrec :: Int -> GetIntegrations -> ShowS
Prelude.Show, (forall x. GetIntegrations -> Rep GetIntegrations x)
-> (forall x. Rep GetIntegrations x -> GetIntegrations)
-> Generic GetIntegrations
forall x. Rep GetIntegrations x -> GetIntegrations
forall x. GetIntegrations -> Rep GetIntegrations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetIntegrations x -> GetIntegrations
$cfrom :: forall x. GetIntegrations -> Rep GetIntegrations x
Prelude.Generic)
newGetIntegrations ::
Prelude.Text ->
GetIntegrations
newGetIntegrations :: Text -> GetIntegrations
newGetIntegrations Text
pApiId_ =
GetIntegrations' :: Maybe Text -> Maybe Text -> Text -> GetIntegrations
GetIntegrations'
{ $sel:nextToken:GetIntegrations' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:GetIntegrations' :: Maybe Text
maxResults = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:apiId:GetIntegrations' :: Text
apiId = Text
pApiId_
}
getIntegrations_nextToken :: Lens.Lens' GetIntegrations (Prelude.Maybe Prelude.Text)
getIntegrations_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetIntegrations -> f GetIntegrations
getIntegrations_nextToken = (GetIntegrations -> Maybe Text)
-> (GetIntegrations -> Maybe Text -> GetIntegrations)
-> Lens GetIntegrations GetIntegrations (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrations' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetIntegrations' :: GetIntegrations -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetIntegrations
s@GetIntegrations' {} Maybe Text
a -> GetIntegrations
s {$sel:nextToken:GetIntegrations' :: Maybe Text
nextToken = Maybe Text
a} :: GetIntegrations)
getIntegrations_maxResults :: Lens.Lens' GetIntegrations (Prelude.Maybe Prelude.Text)
getIntegrations_maxResults :: (Maybe Text -> f (Maybe Text))
-> GetIntegrations -> f GetIntegrations
getIntegrations_maxResults = (GetIntegrations -> Maybe Text)
-> (GetIntegrations -> Maybe Text -> GetIntegrations)
-> Lens GetIntegrations GetIntegrations (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrations' {Maybe Text
maxResults :: Maybe Text
$sel:maxResults:GetIntegrations' :: GetIntegrations -> Maybe Text
maxResults} -> Maybe Text
maxResults) (\s :: GetIntegrations
s@GetIntegrations' {} Maybe Text
a -> GetIntegrations
s {$sel:maxResults:GetIntegrations' :: Maybe Text
maxResults = Maybe Text
a} :: GetIntegrations)
getIntegrations_apiId :: Lens.Lens' GetIntegrations Prelude.Text
getIntegrations_apiId :: (Text -> f Text) -> GetIntegrations -> f GetIntegrations
getIntegrations_apiId = (GetIntegrations -> Text)
-> (GetIntegrations -> Text -> GetIntegrations)
-> Lens GetIntegrations GetIntegrations Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrations' {Text
apiId :: Text
$sel:apiId:GetIntegrations' :: GetIntegrations -> Text
apiId} -> Text
apiId) (\s :: GetIntegrations
s@GetIntegrations' {} Text
a -> GetIntegrations
s {$sel:apiId:GetIntegrations' :: Text
apiId = Text
a} :: GetIntegrations)
instance Core.AWSPager GetIntegrations where
page :: GetIntegrations
-> AWSResponse GetIntegrations -> Maybe GetIntegrations
page GetIntegrations
rq AWSResponse GetIntegrations
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetIntegrations
GetIntegrationsResponse
rs
GetIntegrationsResponse
-> Getting (First Text) GetIntegrationsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetIntegrationsResponse
-> Const (First Text) GetIntegrationsResponse
Lens' GetIntegrationsResponse (Maybe Text)
getIntegrationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetIntegrationsResponse
-> Const (First Text) GetIntegrationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetIntegrationsResponse 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 GetIntegrations
forall a. Maybe a
Prelude.Nothing
| Maybe [Integration] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetIntegrations
GetIntegrationsResponse
rs
GetIntegrationsResponse
-> Getting
(First [Integration]) GetIntegrationsResponse [Integration]
-> Maybe [Integration]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [Integration]
-> Const (First [Integration]) (Maybe [Integration]))
-> GetIntegrationsResponse
-> Const (First [Integration]) GetIntegrationsResponse
Lens' GetIntegrationsResponse (Maybe [Integration])
getIntegrationsResponse_items ((Maybe [Integration]
-> Const (First [Integration]) (Maybe [Integration]))
-> GetIntegrationsResponse
-> Const (First [Integration]) GetIntegrationsResponse)
-> (([Integration] -> Const (First [Integration]) [Integration])
-> Maybe [Integration]
-> Const (First [Integration]) (Maybe [Integration]))
-> Getting
(First [Integration]) GetIntegrationsResponse [Integration]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Integration] -> Const (First [Integration]) [Integration])
-> Maybe [Integration]
-> Const (First [Integration]) (Maybe [Integration])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetIntegrations
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetIntegrations -> Maybe GetIntegrations
forall a. a -> Maybe a
Prelude.Just (GetIntegrations -> Maybe GetIntegrations)
-> GetIntegrations -> Maybe GetIntegrations
forall a b. (a -> b) -> a -> b
Prelude.$
GetIntegrations
rq
GetIntegrations
-> (GetIntegrations -> GetIntegrations) -> GetIntegrations
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetIntegrations -> Identity GetIntegrations
Lens GetIntegrations GetIntegrations (Maybe Text) (Maybe Text)
getIntegrations_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetIntegrations -> Identity GetIntegrations)
-> Maybe Text -> GetIntegrations -> GetIntegrations
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetIntegrations
GetIntegrationsResponse
rs
GetIntegrationsResponse
-> Getting (First Text) GetIntegrationsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetIntegrationsResponse
-> Const (First Text) GetIntegrationsResponse
Lens' GetIntegrationsResponse (Maybe Text)
getIntegrationsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetIntegrationsResponse
-> Const (First Text) GetIntegrationsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetIntegrationsResponse 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 GetIntegrations where
type
AWSResponse GetIntegrations =
GetIntegrationsResponse
request :: GetIntegrations -> Request GetIntegrations
request = Service -> GetIntegrations -> Request GetIntegrations
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetIntegrations
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetIntegrations)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetIntegrations))
-> Logger
-> Service
-> Proxy GetIntegrations
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetIntegrations)))
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 [Integration] -> Maybe Text -> Int -> GetIntegrationsResponse
GetIntegrationsResponse'
(Maybe [Integration]
-> Maybe Text -> Int -> GetIntegrationsResponse)
-> Either String (Maybe [Integration])
-> Either String (Maybe Text -> Int -> GetIntegrationsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [Integration]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"items" Either String (Maybe (Maybe [Integration]))
-> Maybe [Integration] -> Either String (Maybe [Integration])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Integration]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> GetIntegrationsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetIntegrationsResponse)
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
"nextToken")
Either String (Int -> GetIntegrationsResponse)
-> Either String Int -> Either String GetIntegrationsResponse
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 GetIntegrations
instance Prelude.NFData GetIntegrations
instance Core.ToHeaders GetIntegrations where
toHeaders :: GetIntegrations -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetIntegrations -> 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 GetIntegrations where
toPath :: GetIntegrations -> ByteString
toPath GetIntegrations' {Maybe Text
Text
apiId :: Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:apiId:GetIntegrations' :: GetIntegrations -> Text
$sel:maxResults:GetIntegrations' :: GetIntegrations -> Maybe Text
$sel:nextToken:GetIntegrations' :: GetIntegrations -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/v2/apis/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
apiId, ByteString
"/integrations"]
instance Core.ToQuery GetIntegrations where
toQuery :: GetIntegrations -> QueryString
toQuery GetIntegrations' {Maybe Text
Text
apiId :: Text
maxResults :: Maybe Text
nextToken :: Maybe Text
$sel:apiId:GetIntegrations' :: GetIntegrations -> Text
$sel:maxResults:GetIntegrations' :: GetIntegrations -> Maybe Text
$sel:nextToken:GetIntegrations' :: GetIntegrations -> 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 Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
maxResults
]
data GetIntegrationsResponse = GetIntegrationsResponse'
{
GetIntegrationsResponse -> Maybe [Integration]
items :: Prelude.Maybe [Integration],
GetIntegrationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetIntegrationsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetIntegrationsResponse -> GetIntegrationsResponse -> Bool
(GetIntegrationsResponse -> GetIntegrationsResponse -> Bool)
-> (GetIntegrationsResponse -> GetIntegrationsResponse -> Bool)
-> Eq GetIntegrationsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetIntegrationsResponse -> GetIntegrationsResponse -> Bool
$c/= :: GetIntegrationsResponse -> GetIntegrationsResponse -> Bool
== :: GetIntegrationsResponse -> GetIntegrationsResponse -> Bool
$c== :: GetIntegrationsResponse -> GetIntegrationsResponse -> Bool
Prelude.Eq, ReadPrec [GetIntegrationsResponse]
ReadPrec GetIntegrationsResponse
Int -> ReadS GetIntegrationsResponse
ReadS [GetIntegrationsResponse]
(Int -> ReadS GetIntegrationsResponse)
-> ReadS [GetIntegrationsResponse]
-> ReadPrec GetIntegrationsResponse
-> ReadPrec [GetIntegrationsResponse]
-> Read GetIntegrationsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetIntegrationsResponse]
$creadListPrec :: ReadPrec [GetIntegrationsResponse]
readPrec :: ReadPrec GetIntegrationsResponse
$creadPrec :: ReadPrec GetIntegrationsResponse
readList :: ReadS [GetIntegrationsResponse]
$creadList :: ReadS [GetIntegrationsResponse]
readsPrec :: Int -> ReadS GetIntegrationsResponse
$creadsPrec :: Int -> ReadS GetIntegrationsResponse
Prelude.Read, Int -> GetIntegrationsResponse -> ShowS
[GetIntegrationsResponse] -> ShowS
GetIntegrationsResponse -> String
(Int -> GetIntegrationsResponse -> ShowS)
-> (GetIntegrationsResponse -> String)
-> ([GetIntegrationsResponse] -> ShowS)
-> Show GetIntegrationsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetIntegrationsResponse] -> ShowS
$cshowList :: [GetIntegrationsResponse] -> ShowS
show :: GetIntegrationsResponse -> String
$cshow :: GetIntegrationsResponse -> String
showsPrec :: Int -> GetIntegrationsResponse -> ShowS
$cshowsPrec :: Int -> GetIntegrationsResponse -> ShowS
Prelude.Show, (forall x.
GetIntegrationsResponse -> Rep GetIntegrationsResponse x)
-> (forall x.
Rep GetIntegrationsResponse x -> GetIntegrationsResponse)
-> Generic GetIntegrationsResponse
forall x. Rep GetIntegrationsResponse x -> GetIntegrationsResponse
forall x. GetIntegrationsResponse -> Rep GetIntegrationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetIntegrationsResponse x -> GetIntegrationsResponse
$cfrom :: forall x. GetIntegrationsResponse -> Rep GetIntegrationsResponse x
Prelude.Generic)
newGetIntegrationsResponse ::
Prelude.Int ->
GetIntegrationsResponse
newGetIntegrationsResponse :: Int -> GetIntegrationsResponse
newGetIntegrationsResponse Int
pHttpStatus_ =
GetIntegrationsResponse' :: Maybe [Integration] -> Maybe Text -> Int -> GetIntegrationsResponse
GetIntegrationsResponse'
{ $sel:items:GetIntegrationsResponse' :: Maybe [Integration]
items = Maybe [Integration]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:GetIntegrationsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetIntegrationsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getIntegrationsResponse_items :: Lens.Lens' GetIntegrationsResponse (Prelude.Maybe [Integration])
getIntegrationsResponse_items :: (Maybe [Integration] -> f (Maybe [Integration]))
-> GetIntegrationsResponse -> f GetIntegrationsResponse
getIntegrationsResponse_items = (GetIntegrationsResponse -> Maybe [Integration])
-> (GetIntegrationsResponse
-> Maybe [Integration] -> GetIntegrationsResponse)
-> Lens' GetIntegrationsResponse (Maybe [Integration])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationsResponse' {Maybe [Integration]
items :: Maybe [Integration]
$sel:items:GetIntegrationsResponse' :: GetIntegrationsResponse -> Maybe [Integration]
items} -> Maybe [Integration]
items) (\s :: GetIntegrationsResponse
s@GetIntegrationsResponse' {} Maybe [Integration]
a -> GetIntegrationsResponse
s {$sel:items:GetIntegrationsResponse' :: Maybe [Integration]
items = Maybe [Integration]
a} :: GetIntegrationsResponse) ((Maybe [Integration] -> f (Maybe [Integration]))
-> GetIntegrationsResponse -> f GetIntegrationsResponse)
-> ((Maybe [Integration] -> f (Maybe [Integration]))
-> Maybe [Integration] -> f (Maybe [Integration]))
-> (Maybe [Integration] -> f (Maybe [Integration]))
-> GetIntegrationsResponse
-> f GetIntegrationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Integration] [Integration] [Integration] [Integration]
-> Iso
(Maybe [Integration])
(Maybe [Integration])
(Maybe [Integration])
(Maybe [Integration])
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 [Integration] [Integration] [Integration] [Integration]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getIntegrationsResponse_nextToken :: Lens.Lens' GetIntegrationsResponse (Prelude.Maybe Prelude.Text)
getIntegrationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetIntegrationsResponse -> f GetIntegrationsResponse
getIntegrationsResponse_nextToken = (GetIntegrationsResponse -> Maybe Text)
-> (GetIntegrationsResponse
-> Maybe Text -> GetIntegrationsResponse)
-> Lens' GetIntegrationsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetIntegrationsResponse' :: GetIntegrationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetIntegrationsResponse
s@GetIntegrationsResponse' {} Maybe Text
a -> GetIntegrationsResponse
s {$sel:nextToken:GetIntegrationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetIntegrationsResponse)
getIntegrationsResponse_httpStatus :: Lens.Lens' GetIntegrationsResponse Prelude.Int
getIntegrationsResponse_httpStatus :: (Int -> f Int)
-> GetIntegrationsResponse -> f GetIntegrationsResponse
getIntegrationsResponse_httpStatus = (GetIntegrationsResponse -> Int)
-> (GetIntegrationsResponse -> Int -> GetIntegrationsResponse)
-> Lens GetIntegrationsResponse GetIntegrationsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetIntegrationsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetIntegrationsResponse' :: GetIntegrationsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetIntegrationsResponse
s@GetIntegrationsResponse' {} Int
a -> GetIntegrationsResponse
s {$sel:httpStatus:GetIntegrationsResponse' :: Int
httpStatus = Int
a} :: GetIntegrationsResponse)
instance Prelude.NFData GetIntegrationsResponse