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