{-# 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.Connect.ListLexBots
(
ListLexBots (..),
newListLexBots,
listLexBots_nextToken,
listLexBots_maxResults,
listLexBots_instanceId,
ListLexBotsResponse (..),
newListLexBotsResponse,
listLexBotsResponse_nextToken,
listLexBotsResponse_lexBots,
listLexBotsResponse_httpStatus,
)
where
import Amazonka.Connect.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 ListLexBots = ListLexBots'
{
ListLexBots -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListLexBots -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListLexBots -> Text
instanceId :: Prelude.Text
}
deriving (ListLexBots -> ListLexBots -> Bool
(ListLexBots -> ListLexBots -> Bool)
-> (ListLexBots -> ListLexBots -> Bool) -> Eq ListLexBots
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLexBots -> ListLexBots -> Bool
$c/= :: ListLexBots -> ListLexBots -> Bool
== :: ListLexBots -> ListLexBots -> Bool
$c== :: ListLexBots -> ListLexBots -> Bool
Prelude.Eq, ReadPrec [ListLexBots]
ReadPrec ListLexBots
Int -> ReadS ListLexBots
ReadS [ListLexBots]
(Int -> ReadS ListLexBots)
-> ReadS [ListLexBots]
-> ReadPrec ListLexBots
-> ReadPrec [ListLexBots]
-> Read ListLexBots
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLexBots]
$creadListPrec :: ReadPrec [ListLexBots]
readPrec :: ReadPrec ListLexBots
$creadPrec :: ReadPrec ListLexBots
readList :: ReadS [ListLexBots]
$creadList :: ReadS [ListLexBots]
readsPrec :: Int -> ReadS ListLexBots
$creadsPrec :: Int -> ReadS ListLexBots
Prelude.Read, Int -> ListLexBots -> ShowS
[ListLexBots] -> ShowS
ListLexBots -> String
(Int -> ListLexBots -> ShowS)
-> (ListLexBots -> String)
-> ([ListLexBots] -> ShowS)
-> Show ListLexBots
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLexBots] -> ShowS
$cshowList :: [ListLexBots] -> ShowS
show :: ListLexBots -> String
$cshow :: ListLexBots -> String
showsPrec :: Int -> ListLexBots -> ShowS
$cshowsPrec :: Int -> ListLexBots -> ShowS
Prelude.Show, (forall x. ListLexBots -> Rep ListLexBots x)
-> (forall x. Rep ListLexBots x -> ListLexBots)
-> Generic ListLexBots
forall x. Rep ListLexBots x -> ListLexBots
forall x. ListLexBots -> Rep ListLexBots x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLexBots x -> ListLexBots
$cfrom :: forall x. ListLexBots -> Rep ListLexBots x
Prelude.Generic)
newListLexBots ::
Prelude.Text ->
ListLexBots
newListLexBots :: Text -> ListLexBots
newListLexBots Text
pInstanceId_ =
ListLexBots' :: Maybe Text -> Maybe Natural -> Text -> ListLexBots
ListLexBots'
{ $sel:nextToken:ListLexBots' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListLexBots' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:instanceId:ListLexBots' :: Text
instanceId = Text
pInstanceId_
}
listLexBots_nextToken :: Lens.Lens' ListLexBots (Prelude.Maybe Prelude.Text)
listLexBots_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListLexBots -> f ListLexBots
listLexBots_nextToken = (ListLexBots -> Maybe Text)
-> (ListLexBots -> Maybe Text -> ListLexBots)
-> Lens ListLexBots ListLexBots (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLexBots' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLexBots' :: ListLexBots -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLexBots
s@ListLexBots' {} Maybe Text
a -> ListLexBots
s {$sel:nextToken:ListLexBots' :: Maybe Text
nextToken = Maybe Text
a} :: ListLexBots)
listLexBots_maxResults :: Lens.Lens' ListLexBots (Prelude.Maybe Prelude.Natural)
listLexBots_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListLexBots -> f ListLexBots
listLexBots_maxResults = (ListLexBots -> Maybe Natural)
-> (ListLexBots -> Maybe Natural -> ListLexBots)
-> Lens ListLexBots ListLexBots (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLexBots' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListLexBots' :: ListLexBots -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListLexBots
s@ListLexBots' {} Maybe Natural
a -> ListLexBots
s {$sel:maxResults:ListLexBots' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListLexBots)
listLexBots_instanceId :: Lens.Lens' ListLexBots Prelude.Text
listLexBots_instanceId :: (Text -> f Text) -> ListLexBots -> f ListLexBots
listLexBots_instanceId = (ListLexBots -> Text)
-> (ListLexBots -> Text -> ListLexBots)
-> Lens ListLexBots ListLexBots Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLexBots' {Text
instanceId :: Text
$sel:instanceId:ListLexBots' :: ListLexBots -> Text
instanceId} -> Text
instanceId) (\s :: ListLexBots
s@ListLexBots' {} Text
a -> ListLexBots
s {$sel:instanceId:ListLexBots' :: Text
instanceId = Text
a} :: ListLexBots)
instance Core.AWSPager ListLexBots where
page :: ListLexBots -> AWSResponse ListLexBots -> Maybe ListLexBots
page ListLexBots
rq AWSResponse ListLexBots
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListLexBots
ListLexBotsResponse
rs
ListLexBotsResponse
-> Getting (First Text) ListLexBotsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListLexBotsResponse -> Const (First Text) ListLexBotsResponse
Lens' ListLexBotsResponse (Maybe Text)
listLexBotsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListLexBotsResponse -> Const (First Text) ListLexBotsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListLexBotsResponse 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 ListLexBots
forall a. Maybe a
Prelude.Nothing
| Maybe [LexBot] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListLexBots
ListLexBotsResponse
rs
ListLexBotsResponse
-> Getting (First [LexBot]) ListLexBotsResponse [LexBot]
-> Maybe [LexBot]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [LexBot] -> Const (First [LexBot]) (Maybe [LexBot]))
-> ListLexBotsResponse
-> Const (First [LexBot]) ListLexBotsResponse
Lens' ListLexBotsResponse (Maybe [LexBot])
listLexBotsResponse_lexBots ((Maybe [LexBot] -> Const (First [LexBot]) (Maybe [LexBot]))
-> ListLexBotsResponse
-> Const (First [LexBot]) ListLexBotsResponse)
-> (([LexBot] -> Const (First [LexBot]) [LexBot])
-> Maybe [LexBot] -> Const (First [LexBot]) (Maybe [LexBot]))
-> Getting (First [LexBot]) ListLexBotsResponse [LexBot]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([LexBot] -> Const (First [LexBot]) [LexBot])
-> Maybe [LexBot] -> Const (First [LexBot]) (Maybe [LexBot])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListLexBots
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListLexBots -> Maybe ListLexBots
forall a. a -> Maybe a
Prelude.Just (ListLexBots -> Maybe ListLexBots)
-> ListLexBots -> Maybe ListLexBots
forall a b. (a -> b) -> a -> b
Prelude.$
ListLexBots
rq
ListLexBots -> (ListLexBots -> ListLexBots) -> ListLexBots
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListLexBots -> Identity ListLexBots
Lens ListLexBots ListLexBots (Maybe Text) (Maybe Text)
listLexBots_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListLexBots -> Identity ListLexBots)
-> Maybe Text -> ListLexBots -> ListLexBots
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListLexBots
ListLexBotsResponse
rs
ListLexBotsResponse
-> Getting (First Text) ListLexBotsResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListLexBotsResponse -> Const (First Text) ListLexBotsResponse
Lens' ListLexBotsResponse (Maybe Text)
listLexBotsResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListLexBotsResponse -> Const (First Text) ListLexBotsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListLexBotsResponse 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 ListLexBots where
type AWSResponse ListLexBots = ListLexBotsResponse
request :: ListLexBots -> Request ListLexBots
request = Service -> ListLexBots -> Request ListLexBots
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListLexBots
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListLexBots)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListLexBots))
-> Logger
-> Service
-> Proxy ListLexBots
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListLexBots)))
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 [LexBot] -> Int -> ListLexBotsResponse
ListLexBotsResponse'
(Maybe Text -> Maybe [LexBot] -> Int -> ListLexBotsResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [LexBot] -> Int -> ListLexBotsResponse)
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 [LexBot] -> Int -> ListLexBotsResponse)
-> Either String (Maybe [LexBot])
-> Either String (Int -> ListLexBotsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [LexBot]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LexBots" Either String (Maybe (Maybe [LexBot]))
-> Maybe [LexBot] -> Either String (Maybe [LexBot])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LexBot]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListLexBotsResponse)
-> Either String Int -> Either String ListLexBotsResponse
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 ListLexBots
instance Prelude.NFData ListLexBots
instance Core.ToHeaders ListLexBots where
toHeaders :: ListLexBots -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListLexBots -> 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 ListLexBots where
toPath :: ListLexBots -> ByteString
toPath ListLexBots' {Maybe Natural
Maybe Text
Text
instanceId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:instanceId:ListLexBots' :: ListLexBots -> Text
$sel:maxResults:ListLexBots' :: ListLexBots -> Maybe Natural
$sel:nextToken:ListLexBots' :: ListLexBots -> Maybe Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/instance/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
instanceId, ByteString
"/lex-bots"]
instance Core.ToQuery ListLexBots where
toQuery :: ListLexBots -> QueryString
toQuery ListLexBots' {Maybe Natural
Maybe Text
Text
instanceId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:instanceId:ListLexBots' :: ListLexBots -> Text
$sel:maxResults:ListLexBots' :: ListLexBots -> Maybe Natural
$sel:nextToken:ListLexBots' :: ListLexBots -> 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 Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListLexBotsResponse = ListLexBotsResponse'
{
ListLexBotsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListLexBotsResponse -> Maybe [LexBot]
lexBots :: Prelude.Maybe [LexBot],
ListLexBotsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListLexBotsResponse -> ListLexBotsResponse -> Bool
(ListLexBotsResponse -> ListLexBotsResponse -> Bool)
-> (ListLexBotsResponse -> ListLexBotsResponse -> Bool)
-> Eq ListLexBotsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLexBotsResponse -> ListLexBotsResponse -> Bool
$c/= :: ListLexBotsResponse -> ListLexBotsResponse -> Bool
== :: ListLexBotsResponse -> ListLexBotsResponse -> Bool
$c== :: ListLexBotsResponse -> ListLexBotsResponse -> Bool
Prelude.Eq, ReadPrec [ListLexBotsResponse]
ReadPrec ListLexBotsResponse
Int -> ReadS ListLexBotsResponse
ReadS [ListLexBotsResponse]
(Int -> ReadS ListLexBotsResponse)
-> ReadS [ListLexBotsResponse]
-> ReadPrec ListLexBotsResponse
-> ReadPrec [ListLexBotsResponse]
-> Read ListLexBotsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLexBotsResponse]
$creadListPrec :: ReadPrec [ListLexBotsResponse]
readPrec :: ReadPrec ListLexBotsResponse
$creadPrec :: ReadPrec ListLexBotsResponse
readList :: ReadS [ListLexBotsResponse]
$creadList :: ReadS [ListLexBotsResponse]
readsPrec :: Int -> ReadS ListLexBotsResponse
$creadsPrec :: Int -> ReadS ListLexBotsResponse
Prelude.Read, Int -> ListLexBotsResponse -> ShowS
[ListLexBotsResponse] -> ShowS
ListLexBotsResponse -> String
(Int -> ListLexBotsResponse -> ShowS)
-> (ListLexBotsResponse -> String)
-> ([ListLexBotsResponse] -> ShowS)
-> Show ListLexBotsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLexBotsResponse] -> ShowS
$cshowList :: [ListLexBotsResponse] -> ShowS
show :: ListLexBotsResponse -> String
$cshow :: ListLexBotsResponse -> String
showsPrec :: Int -> ListLexBotsResponse -> ShowS
$cshowsPrec :: Int -> ListLexBotsResponse -> ShowS
Prelude.Show, (forall x. ListLexBotsResponse -> Rep ListLexBotsResponse x)
-> (forall x. Rep ListLexBotsResponse x -> ListLexBotsResponse)
-> Generic ListLexBotsResponse
forall x. Rep ListLexBotsResponse x -> ListLexBotsResponse
forall x. ListLexBotsResponse -> Rep ListLexBotsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListLexBotsResponse x -> ListLexBotsResponse
$cfrom :: forall x. ListLexBotsResponse -> Rep ListLexBotsResponse x
Prelude.Generic)
newListLexBotsResponse ::
Prelude.Int ->
ListLexBotsResponse
newListLexBotsResponse :: Int -> ListLexBotsResponse
newListLexBotsResponse Int
pHttpStatus_ =
ListLexBotsResponse' :: Maybe Text -> Maybe [LexBot] -> Int -> ListLexBotsResponse
ListLexBotsResponse'
{ $sel:nextToken:ListLexBotsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:lexBots:ListLexBotsResponse' :: Maybe [LexBot]
lexBots = Maybe [LexBot]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListLexBotsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listLexBotsResponse_nextToken :: Lens.Lens' ListLexBotsResponse (Prelude.Maybe Prelude.Text)
listLexBotsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListLexBotsResponse -> f ListLexBotsResponse
listLexBotsResponse_nextToken = (ListLexBotsResponse -> Maybe Text)
-> (ListLexBotsResponse -> Maybe Text -> ListLexBotsResponse)
-> Lens' ListLexBotsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLexBotsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLexBotsResponse' :: ListLexBotsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLexBotsResponse
s@ListLexBotsResponse' {} Maybe Text
a -> ListLexBotsResponse
s {$sel:nextToken:ListLexBotsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListLexBotsResponse)
listLexBotsResponse_lexBots :: Lens.Lens' ListLexBotsResponse (Prelude.Maybe [LexBot])
listLexBotsResponse_lexBots :: (Maybe [LexBot] -> f (Maybe [LexBot]))
-> ListLexBotsResponse -> f ListLexBotsResponse
listLexBotsResponse_lexBots = (ListLexBotsResponse -> Maybe [LexBot])
-> (ListLexBotsResponse -> Maybe [LexBot] -> ListLexBotsResponse)
-> Lens' ListLexBotsResponse (Maybe [LexBot])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLexBotsResponse' {Maybe [LexBot]
lexBots :: Maybe [LexBot]
$sel:lexBots:ListLexBotsResponse' :: ListLexBotsResponse -> Maybe [LexBot]
lexBots} -> Maybe [LexBot]
lexBots) (\s :: ListLexBotsResponse
s@ListLexBotsResponse' {} Maybe [LexBot]
a -> ListLexBotsResponse
s {$sel:lexBots:ListLexBotsResponse' :: Maybe [LexBot]
lexBots = Maybe [LexBot]
a} :: ListLexBotsResponse) ((Maybe [LexBot] -> f (Maybe [LexBot]))
-> ListLexBotsResponse -> f ListLexBotsResponse)
-> ((Maybe [LexBot] -> f (Maybe [LexBot]))
-> Maybe [LexBot] -> f (Maybe [LexBot]))
-> (Maybe [LexBot] -> f (Maybe [LexBot]))
-> ListLexBotsResponse
-> f ListLexBotsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [LexBot] [LexBot] [LexBot] [LexBot]
-> Iso
(Maybe [LexBot]) (Maybe [LexBot]) (Maybe [LexBot]) (Maybe [LexBot])
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 [LexBot] [LexBot] [LexBot] [LexBot]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listLexBotsResponse_httpStatus :: Lens.Lens' ListLexBotsResponse Prelude.Int
listLexBotsResponse_httpStatus :: (Int -> f Int) -> ListLexBotsResponse -> f ListLexBotsResponse
listLexBotsResponse_httpStatus = (ListLexBotsResponse -> Int)
-> (ListLexBotsResponse -> Int -> ListLexBotsResponse)
-> Lens ListLexBotsResponse ListLexBotsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLexBotsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListLexBotsResponse' :: ListLexBotsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListLexBotsResponse
s@ListLexBotsResponse' {} Int
a -> ListLexBotsResponse
s {$sel:httpStatus:ListLexBotsResponse' :: Int
httpStatus = Int
a} :: ListLexBotsResponse)
instance Prelude.NFData ListLexBotsResponse