{-# 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.CodePipeline.ListWebhooks
(
ListWebhooks (..),
newListWebhooks,
listWebhooks_nextToken,
listWebhooks_maxResults,
ListWebhooksResponse (..),
newListWebhooksResponse,
listWebhooksResponse_nextToken,
listWebhooksResponse_webhooks,
listWebhooksResponse_httpStatus,
)
where
import Amazonka.CodePipeline.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 ListWebhooks = ListWebhooks'
{
ListWebhooks -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListWebhooks -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListWebhooks -> ListWebhooks -> Bool
(ListWebhooks -> ListWebhooks -> Bool)
-> (ListWebhooks -> ListWebhooks -> Bool) -> Eq ListWebhooks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWebhooks -> ListWebhooks -> Bool
$c/= :: ListWebhooks -> ListWebhooks -> Bool
== :: ListWebhooks -> ListWebhooks -> Bool
$c== :: ListWebhooks -> ListWebhooks -> Bool
Prelude.Eq, ReadPrec [ListWebhooks]
ReadPrec ListWebhooks
Int -> ReadS ListWebhooks
ReadS [ListWebhooks]
(Int -> ReadS ListWebhooks)
-> ReadS [ListWebhooks]
-> ReadPrec ListWebhooks
-> ReadPrec [ListWebhooks]
-> Read ListWebhooks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWebhooks]
$creadListPrec :: ReadPrec [ListWebhooks]
readPrec :: ReadPrec ListWebhooks
$creadPrec :: ReadPrec ListWebhooks
readList :: ReadS [ListWebhooks]
$creadList :: ReadS [ListWebhooks]
readsPrec :: Int -> ReadS ListWebhooks
$creadsPrec :: Int -> ReadS ListWebhooks
Prelude.Read, Int -> ListWebhooks -> ShowS
[ListWebhooks] -> ShowS
ListWebhooks -> String
(Int -> ListWebhooks -> ShowS)
-> (ListWebhooks -> String)
-> ([ListWebhooks] -> ShowS)
-> Show ListWebhooks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWebhooks] -> ShowS
$cshowList :: [ListWebhooks] -> ShowS
show :: ListWebhooks -> String
$cshow :: ListWebhooks -> String
showsPrec :: Int -> ListWebhooks -> ShowS
$cshowsPrec :: Int -> ListWebhooks -> ShowS
Prelude.Show, (forall x. ListWebhooks -> Rep ListWebhooks x)
-> (forall x. Rep ListWebhooks x -> ListWebhooks)
-> Generic ListWebhooks
forall x. Rep ListWebhooks x -> ListWebhooks
forall x. ListWebhooks -> Rep ListWebhooks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListWebhooks x -> ListWebhooks
$cfrom :: forall x. ListWebhooks -> Rep ListWebhooks x
Prelude.Generic)
newListWebhooks ::
ListWebhooks
newListWebhooks :: ListWebhooks
newListWebhooks =
ListWebhooks' :: Maybe Text -> Maybe Natural -> ListWebhooks
ListWebhooks'
{ $sel:nextToken:ListWebhooks' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListWebhooks' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listWebhooks_nextToken :: Lens.Lens' ListWebhooks (Prelude.Maybe Prelude.Text)
listWebhooks_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListWebhooks -> f ListWebhooks
listWebhooks_nextToken = (ListWebhooks -> Maybe Text)
-> (ListWebhooks -> Maybe Text -> ListWebhooks)
-> Lens ListWebhooks ListWebhooks (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWebhooks' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWebhooks' :: ListWebhooks -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWebhooks
s@ListWebhooks' {} Maybe Text
a -> ListWebhooks
s {$sel:nextToken:ListWebhooks' :: Maybe Text
nextToken = Maybe Text
a} :: ListWebhooks)
listWebhooks_maxResults :: Lens.Lens' ListWebhooks (Prelude.Maybe Prelude.Natural)
listWebhooks_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListWebhooks -> f ListWebhooks
listWebhooks_maxResults = (ListWebhooks -> Maybe Natural)
-> (ListWebhooks -> Maybe Natural -> ListWebhooks)
-> Lens ListWebhooks ListWebhooks (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWebhooks' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListWebhooks' :: ListWebhooks -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListWebhooks
s@ListWebhooks' {} Maybe Natural
a -> ListWebhooks
s {$sel:maxResults:ListWebhooks' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListWebhooks)
instance Core.AWSPager ListWebhooks where
page :: ListWebhooks -> AWSResponse ListWebhooks -> Maybe ListWebhooks
page ListWebhooks
rq AWSResponse ListWebhooks
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListWebhooks
ListWebhooksResponse
rs
ListWebhooksResponse
-> Getting (First Text) ListWebhooksResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListWebhooksResponse -> Const (First Text) ListWebhooksResponse
Lens' ListWebhooksResponse (Maybe Text)
listWebhooksResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListWebhooksResponse -> Const (First Text) ListWebhooksResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListWebhooksResponse 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 ListWebhooks
forall a. Maybe a
Prelude.Nothing
| Maybe [ListWebhookItem] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListWebhooks
ListWebhooksResponse
rs
ListWebhooksResponse
-> Getting
(First [ListWebhookItem]) ListWebhooksResponse [ListWebhookItem]
-> Maybe [ListWebhookItem]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ListWebhookItem]
-> Const (First [ListWebhookItem]) (Maybe [ListWebhookItem]))
-> ListWebhooksResponse
-> Const (First [ListWebhookItem]) ListWebhooksResponse
Lens' ListWebhooksResponse (Maybe [ListWebhookItem])
listWebhooksResponse_webhooks ((Maybe [ListWebhookItem]
-> Const (First [ListWebhookItem]) (Maybe [ListWebhookItem]))
-> ListWebhooksResponse
-> Const (First [ListWebhookItem]) ListWebhooksResponse)
-> (([ListWebhookItem]
-> Const (First [ListWebhookItem]) [ListWebhookItem])
-> Maybe [ListWebhookItem]
-> Const (First [ListWebhookItem]) (Maybe [ListWebhookItem]))
-> Getting
(First [ListWebhookItem]) ListWebhooksResponse [ListWebhookItem]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ListWebhookItem]
-> Const (First [ListWebhookItem]) [ListWebhookItem])
-> Maybe [ListWebhookItem]
-> Const (First [ListWebhookItem]) (Maybe [ListWebhookItem])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListWebhooks
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListWebhooks -> Maybe ListWebhooks
forall a. a -> Maybe a
Prelude.Just (ListWebhooks -> Maybe ListWebhooks)
-> ListWebhooks -> Maybe ListWebhooks
forall a b. (a -> b) -> a -> b
Prelude.$
ListWebhooks
rq
ListWebhooks -> (ListWebhooks -> ListWebhooks) -> ListWebhooks
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListWebhooks -> Identity ListWebhooks
Lens ListWebhooks ListWebhooks (Maybe Text) (Maybe Text)
listWebhooks_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListWebhooks -> Identity ListWebhooks)
-> Maybe Text -> ListWebhooks -> ListWebhooks
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListWebhooks
ListWebhooksResponse
rs
ListWebhooksResponse
-> Getting (First Text) ListWebhooksResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListWebhooksResponse -> Const (First Text) ListWebhooksResponse
Lens' ListWebhooksResponse (Maybe Text)
listWebhooksResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListWebhooksResponse -> Const (First Text) ListWebhooksResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListWebhooksResponse 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 ListWebhooks where
type AWSResponse ListWebhooks = ListWebhooksResponse
request :: ListWebhooks -> Request ListWebhooks
request = Service -> ListWebhooks -> Request ListWebhooks
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListWebhooks
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListWebhooks)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListWebhooks))
-> Logger
-> Service
-> Proxy ListWebhooks
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListWebhooks)))
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 [ListWebhookItem] -> Int -> ListWebhooksResponse
ListWebhooksResponse'
(Maybe Text
-> Maybe [ListWebhookItem] -> Int -> ListWebhooksResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [ListWebhookItem] -> Int -> ListWebhooksResponse)
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 [ListWebhookItem] -> Int -> ListWebhooksResponse)
-> Either String (Maybe [ListWebhookItem])
-> Either String (Int -> ListWebhooksResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [ListWebhookItem]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"webhooks" Either String (Maybe (Maybe [ListWebhookItem]))
-> Maybe [ListWebhookItem]
-> Either String (Maybe [ListWebhookItem])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ListWebhookItem]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListWebhooksResponse)
-> Either String Int -> Either String ListWebhooksResponse
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 ListWebhooks
instance Prelude.NFData ListWebhooks
instance Core.ToHeaders ListWebhooks where
toHeaders :: ListWebhooks -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListWebhooks -> 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
"CodePipeline_20150709.ListWebhooks" ::
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 ListWebhooks where
toJSON :: ListWebhooks -> Value
toJSON ListWebhooks' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListWebhooks' :: ListWebhooks -> Maybe Natural
$sel:nextToken:ListWebhooks' :: ListWebhooks -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"NextToken" 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
nextToken,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListWebhooks where
toPath :: ListWebhooks -> ByteString
toPath = ByteString -> ListWebhooks -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListWebhooks where
toQuery :: ListWebhooks -> QueryString
toQuery = QueryString -> ListWebhooks -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListWebhooksResponse = ListWebhooksResponse'
{
ListWebhooksResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListWebhooksResponse -> Maybe [ListWebhookItem]
webhooks :: Prelude.Maybe [ListWebhookItem],
ListWebhooksResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListWebhooksResponse -> ListWebhooksResponse -> Bool
(ListWebhooksResponse -> ListWebhooksResponse -> Bool)
-> (ListWebhooksResponse -> ListWebhooksResponse -> Bool)
-> Eq ListWebhooksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListWebhooksResponse -> ListWebhooksResponse -> Bool
$c/= :: ListWebhooksResponse -> ListWebhooksResponse -> Bool
== :: ListWebhooksResponse -> ListWebhooksResponse -> Bool
$c== :: ListWebhooksResponse -> ListWebhooksResponse -> Bool
Prelude.Eq, ReadPrec [ListWebhooksResponse]
ReadPrec ListWebhooksResponse
Int -> ReadS ListWebhooksResponse
ReadS [ListWebhooksResponse]
(Int -> ReadS ListWebhooksResponse)
-> ReadS [ListWebhooksResponse]
-> ReadPrec ListWebhooksResponse
-> ReadPrec [ListWebhooksResponse]
-> Read ListWebhooksResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListWebhooksResponse]
$creadListPrec :: ReadPrec [ListWebhooksResponse]
readPrec :: ReadPrec ListWebhooksResponse
$creadPrec :: ReadPrec ListWebhooksResponse
readList :: ReadS [ListWebhooksResponse]
$creadList :: ReadS [ListWebhooksResponse]
readsPrec :: Int -> ReadS ListWebhooksResponse
$creadsPrec :: Int -> ReadS ListWebhooksResponse
Prelude.Read, Int -> ListWebhooksResponse -> ShowS
[ListWebhooksResponse] -> ShowS
ListWebhooksResponse -> String
(Int -> ListWebhooksResponse -> ShowS)
-> (ListWebhooksResponse -> String)
-> ([ListWebhooksResponse] -> ShowS)
-> Show ListWebhooksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListWebhooksResponse] -> ShowS
$cshowList :: [ListWebhooksResponse] -> ShowS
show :: ListWebhooksResponse -> String
$cshow :: ListWebhooksResponse -> String
showsPrec :: Int -> ListWebhooksResponse -> ShowS
$cshowsPrec :: Int -> ListWebhooksResponse -> ShowS
Prelude.Show, (forall x. ListWebhooksResponse -> Rep ListWebhooksResponse x)
-> (forall x. Rep ListWebhooksResponse x -> ListWebhooksResponse)
-> Generic ListWebhooksResponse
forall x. Rep ListWebhooksResponse x -> ListWebhooksResponse
forall x. ListWebhooksResponse -> Rep ListWebhooksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListWebhooksResponse x -> ListWebhooksResponse
$cfrom :: forall x. ListWebhooksResponse -> Rep ListWebhooksResponse x
Prelude.Generic)
newListWebhooksResponse ::
Prelude.Int ->
ListWebhooksResponse
newListWebhooksResponse :: Int -> ListWebhooksResponse
newListWebhooksResponse Int
pHttpStatus_ =
ListWebhooksResponse' :: Maybe Text
-> Maybe [ListWebhookItem] -> Int -> ListWebhooksResponse
ListWebhooksResponse'
{ $sel:nextToken:ListWebhooksResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:webhooks:ListWebhooksResponse' :: Maybe [ListWebhookItem]
webhooks = Maybe [ListWebhookItem]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListWebhooksResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listWebhooksResponse_nextToken :: Lens.Lens' ListWebhooksResponse (Prelude.Maybe Prelude.Text)
listWebhooksResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListWebhooksResponse -> f ListWebhooksResponse
listWebhooksResponse_nextToken = (ListWebhooksResponse -> Maybe Text)
-> (ListWebhooksResponse -> Maybe Text -> ListWebhooksResponse)
-> Lens' ListWebhooksResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWebhooksResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListWebhooksResponse' :: ListWebhooksResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListWebhooksResponse
s@ListWebhooksResponse' {} Maybe Text
a -> ListWebhooksResponse
s {$sel:nextToken:ListWebhooksResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListWebhooksResponse)
listWebhooksResponse_webhooks :: Lens.Lens' ListWebhooksResponse (Prelude.Maybe [ListWebhookItem])
listWebhooksResponse_webhooks :: (Maybe [ListWebhookItem] -> f (Maybe [ListWebhookItem]))
-> ListWebhooksResponse -> f ListWebhooksResponse
listWebhooksResponse_webhooks = (ListWebhooksResponse -> Maybe [ListWebhookItem])
-> (ListWebhooksResponse
-> Maybe [ListWebhookItem] -> ListWebhooksResponse)
-> Lens' ListWebhooksResponse (Maybe [ListWebhookItem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWebhooksResponse' {Maybe [ListWebhookItem]
webhooks :: Maybe [ListWebhookItem]
$sel:webhooks:ListWebhooksResponse' :: ListWebhooksResponse -> Maybe [ListWebhookItem]
webhooks} -> Maybe [ListWebhookItem]
webhooks) (\s :: ListWebhooksResponse
s@ListWebhooksResponse' {} Maybe [ListWebhookItem]
a -> ListWebhooksResponse
s {$sel:webhooks:ListWebhooksResponse' :: Maybe [ListWebhookItem]
webhooks = Maybe [ListWebhookItem]
a} :: ListWebhooksResponse) ((Maybe [ListWebhookItem] -> f (Maybe [ListWebhookItem]))
-> ListWebhooksResponse -> f ListWebhooksResponse)
-> ((Maybe [ListWebhookItem] -> f (Maybe [ListWebhookItem]))
-> Maybe [ListWebhookItem] -> f (Maybe [ListWebhookItem]))
-> (Maybe [ListWebhookItem] -> f (Maybe [ListWebhookItem]))
-> ListWebhooksResponse
-> f ListWebhooksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ListWebhookItem]
[ListWebhookItem]
[ListWebhookItem]
[ListWebhookItem]
-> Iso
(Maybe [ListWebhookItem])
(Maybe [ListWebhookItem])
(Maybe [ListWebhookItem])
(Maybe [ListWebhookItem])
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
[ListWebhookItem]
[ListWebhookItem]
[ListWebhookItem]
[ListWebhookItem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listWebhooksResponse_httpStatus :: Lens.Lens' ListWebhooksResponse Prelude.Int
listWebhooksResponse_httpStatus :: (Int -> f Int) -> ListWebhooksResponse -> f ListWebhooksResponse
listWebhooksResponse_httpStatus = (ListWebhooksResponse -> Int)
-> (ListWebhooksResponse -> Int -> ListWebhooksResponse)
-> Lens ListWebhooksResponse ListWebhooksResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListWebhooksResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListWebhooksResponse' :: ListWebhooksResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListWebhooksResponse
s@ListWebhooksResponse' {} Int
a -> ListWebhooksResponse
s {$sel:httpStatus:ListWebhooksResponse' :: Int
httpStatus = Int
a} :: ListWebhooksResponse)
instance Prelude.NFData ListWebhooksResponse