{-# 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.ListAgentStatuses
(
ListAgentStatuses (..),
newListAgentStatuses,
listAgentStatuses_agentStatusTypes,
listAgentStatuses_maxResults,
listAgentStatuses_nextToken,
listAgentStatuses_instanceId,
ListAgentStatusesResponse (..),
newListAgentStatusesResponse,
listAgentStatusesResponse_agentStatusSummaryList,
listAgentStatusesResponse_nextToken,
listAgentStatusesResponse_httpStatus,
)
where
import Amazonka.Connect.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListAgentStatuses = ListAgentStatuses'
{
ListAgentStatuses -> Maybe [AgentStatusType]
agentStatusTypes :: Prelude.Maybe [AgentStatusType],
ListAgentStatuses -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListAgentStatuses -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAgentStatuses -> Text
instanceId :: Prelude.Text
}
deriving (ListAgentStatuses -> ListAgentStatuses -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAgentStatuses -> ListAgentStatuses -> Bool
$c/= :: ListAgentStatuses -> ListAgentStatuses -> Bool
== :: ListAgentStatuses -> ListAgentStatuses -> Bool
$c== :: ListAgentStatuses -> ListAgentStatuses -> Bool
Prelude.Eq, ReadPrec [ListAgentStatuses]
ReadPrec ListAgentStatuses
Int -> ReadS ListAgentStatuses
ReadS [ListAgentStatuses]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAgentStatuses]
$creadListPrec :: ReadPrec [ListAgentStatuses]
readPrec :: ReadPrec ListAgentStatuses
$creadPrec :: ReadPrec ListAgentStatuses
readList :: ReadS [ListAgentStatuses]
$creadList :: ReadS [ListAgentStatuses]
readsPrec :: Int -> ReadS ListAgentStatuses
$creadsPrec :: Int -> ReadS ListAgentStatuses
Prelude.Read, Int -> ListAgentStatuses -> ShowS
[ListAgentStatuses] -> ShowS
ListAgentStatuses -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAgentStatuses] -> ShowS
$cshowList :: [ListAgentStatuses] -> ShowS
show :: ListAgentStatuses -> String
$cshow :: ListAgentStatuses -> String
showsPrec :: Int -> ListAgentStatuses -> ShowS
$cshowsPrec :: Int -> ListAgentStatuses -> ShowS
Prelude.Show, forall x. Rep ListAgentStatuses x -> ListAgentStatuses
forall x. ListAgentStatuses -> Rep ListAgentStatuses x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListAgentStatuses x -> ListAgentStatuses
$cfrom :: forall x. ListAgentStatuses -> Rep ListAgentStatuses x
Prelude.Generic)
newListAgentStatuses ::
Prelude.Text ->
ListAgentStatuses
newListAgentStatuses :: Text -> ListAgentStatuses
newListAgentStatuses Text
pInstanceId_ =
ListAgentStatuses'
{ $sel:agentStatusTypes:ListAgentStatuses' :: Maybe [AgentStatusType]
agentStatusTypes =
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListAgentStatuses' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAgentStatuses' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:instanceId:ListAgentStatuses' :: Text
instanceId = Text
pInstanceId_
}
listAgentStatuses_agentStatusTypes :: Lens.Lens' ListAgentStatuses (Prelude.Maybe [AgentStatusType])
listAgentStatuses_agentStatusTypes :: Lens' ListAgentStatuses (Maybe [AgentStatusType])
listAgentStatuses_agentStatusTypes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAgentStatuses' {Maybe [AgentStatusType]
agentStatusTypes :: Maybe [AgentStatusType]
$sel:agentStatusTypes:ListAgentStatuses' :: ListAgentStatuses -> Maybe [AgentStatusType]
agentStatusTypes} -> Maybe [AgentStatusType]
agentStatusTypes) (\s :: ListAgentStatuses
s@ListAgentStatuses' {} Maybe [AgentStatusType]
a -> ListAgentStatuses
s {$sel:agentStatusTypes:ListAgentStatuses' :: Maybe [AgentStatusType]
agentStatusTypes = Maybe [AgentStatusType]
a} :: ListAgentStatuses) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listAgentStatuses_maxResults :: Lens.Lens' ListAgentStatuses (Prelude.Maybe Prelude.Natural)
listAgentStatuses_maxResults :: Lens' ListAgentStatuses (Maybe Natural)
listAgentStatuses_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAgentStatuses' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAgentStatuses' :: ListAgentStatuses -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAgentStatuses
s@ListAgentStatuses' {} Maybe Natural
a -> ListAgentStatuses
s {$sel:maxResults:ListAgentStatuses' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAgentStatuses)
listAgentStatuses_nextToken :: Lens.Lens' ListAgentStatuses (Prelude.Maybe Prelude.Text)
listAgentStatuses_nextToken :: Lens' ListAgentStatuses (Maybe Text)
listAgentStatuses_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAgentStatuses' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAgentStatuses' :: ListAgentStatuses -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAgentStatuses
s@ListAgentStatuses' {} Maybe Text
a -> ListAgentStatuses
s {$sel:nextToken:ListAgentStatuses' :: Maybe Text
nextToken = Maybe Text
a} :: ListAgentStatuses)
listAgentStatuses_instanceId :: Lens.Lens' ListAgentStatuses Prelude.Text
listAgentStatuses_instanceId :: Lens' ListAgentStatuses Text
listAgentStatuses_instanceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAgentStatuses' {Text
instanceId :: Text
$sel:instanceId:ListAgentStatuses' :: ListAgentStatuses -> Text
instanceId} -> Text
instanceId) (\s :: ListAgentStatuses
s@ListAgentStatuses' {} Text
a -> ListAgentStatuses
s {$sel:instanceId:ListAgentStatuses' :: Text
instanceId = Text
a} :: ListAgentStatuses)
instance Core.AWSPager ListAgentStatuses where
page :: ListAgentStatuses
-> AWSResponse ListAgentStatuses -> Maybe ListAgentStatuses
page ListAgentStatuses
rq AWSResponse ListAgentStatuses
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAgentStatuses
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAgentStatusesResponse (Maybe Text)
listAgentStatusesResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListAgentStatuses
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAgentStatusesResponse (Maybe [AgentStatusSummary])
listAgentStatusesResponse_agentStatusSummaryList
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListAgentStatuses
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListAgentStatuses (Maybe Text)
listAgentStatuses_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListAgentStatuses
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListAgentStatusesResponse (Maybe Text)
listAgentStatusesResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListAgentStatuses where
type
AWSResponse ListAgentStatuses =
ListAgentStatusesResponse
request :: (Service -> Service)
-> ListAgentStatuses -> Request ListAgentStatuses
request Service -> Service
overrides =
forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListAgentStatuses
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAgentStatuses)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [AgentStatusSummary]
-> Maybe Text -> Int -> ListAgentStatusesResponse
ListAgentStatusesResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"AgentStatusSummaryList"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListAgentStatuses where
hashWithSalt :: Int -> ListAgentStatuses -> Int
hashWithSalt Int
_salt ListAgentStatuses' {Maybe Natural
Maybe [AgentStatusType]
Maybe Text
Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
agentStatusTypes :: Maybe [AgentStatusType]
$sel:instanceId:ListAgentStatuses' :: ListAgentStatuses -> Text
$sel:nextToken:ListAgentStatuses' :: ListAgentStatuses -> Maybe Text
$sel:maxResults:ListAgentStatuses' :: ListAgentStatuses -> Maybe Natural
$sel:agentStatusTypes:ListAgentStatuses' :: ListAgentStatuses -> Maybe [AgentStatusType]
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [AgentStatusType]
agentStatusTypes
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
instanceId
instance Prelude.NFData ListAgentStatuses where
rnf :: ListAgentStatuses -> ()
rnf ListAgentStatuses' {Maybe Natural
Maybe [AgentStatusType]
Maybe Text
Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
agentStatusTypes :: Maybe [AgentStatusType]
$sel:instanceId:ListAgentStatuses' :: ListAgentStatuses -> Text
$sel:nextToken:ListAgentStatuses' :: ListAgentStatuses -> Maybe Text
$sel:maxResults:ListAgentStatuses' :: ListAgentStatuses -> Maybe Natural
$sel:agentStatusTypes:ListAgentStatuses' :: ListAgentStatuses -> Maybe [AgentStatusType]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [AgentStatusType]
agentStatusTypes
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
instanceId
instance Data.ToHeaders ListAgentStatuses where
toHeaders :: ListAgentStatuses -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToPath ListAgentStatuses where
toPath :: ListAgentStatuses -> ByteString
toPath ListAgentStatuses' {Maybe Natural
Maybe [AgentStatusType]
Maybe Text
Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
agentStatusTypes :: Maybe [AgentStatusType]
$sel:instanceId:ListAgentStatuses' :: ListAgentStatuses -> Text
$sel:nextToken:ListAgentStatuses' :: ListAgentStatuses -> Maybe Text
$sel:maxResults:ListAgentStatuses' :: ListAgentStatuses -> Maybe Natural
$sel:agentStatusTypes:ListAgentStatuses' :: ListAgentStatuses -> Maybe [AgentStatusType]
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/agent-status/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
instanceId]
instance Data.ToQuery ListAgentStatuses where
toQuery :: ListAgentStatuses -> QueryString
toQuery ListAgentStatuses' {Maybe Natural
Maybe [AgentStatusType]
Maybe Text
Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
agentStatusTypes :: Maybe [AgentStatusType]
$sel:instanceId:ListAgentStatuses' :: ListAgentStatuses -> Text
$sel:nextToken:ListAgentStatuses' :: ListAgentStatuses -> Maybe Text
$sel:maxResults:ListAgentStatuses' :: ListAgentStatuses -> Maybe Natural
$sel:agentStatusTypes:ListAgentStatuses' :: ListAgentStatuses -> Maybe [AgentStatusType]
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"AgentStatusTypes"
forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: forall a. ToQuery a => a -> QueryString
Data.toQuery
( forall a.
(IsList a, ToQuery (Item a)) =>
ByteString -> a -> QueryString
Data.toQueryList ByteString
"member"
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [AgentStatusType]
agentStatusTypes
),
ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
]
data ListAgentStatusesResponse = ListAgentStatusesResponse'
{
ListAgentStatusesResponse -> Maybe [AgentStatusSummary]
agentStatusSummaryList :: Prelude.Maybe [AgentStatusSummary],
ListAgentStatusesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAgentStatusesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAgentStatusesResponse -> ListAgentStatusesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAgentStatusesResponse -> ListAgentStatusesResponse -> Bool
$c/= :: ListAgentStatusesResponse -> ListAgentStatusesResponse -> Bool
== :: ListAgentStatusesResponse -> ListAgentStatusesResponse -> Bool
$c== :: ListAgentStatusesResponse -> ListAgentStatusesResponse -> Bool
Prelude.Eq, ReadPrec [ListAgentStatusesResponse]
ReadPrec ListAgentStatusesResponse
Int -> ReadS ListAgentStatusesResponse
ReadS [ListAgentStatusesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAgentStatusesResponse]
$creadListPrec :: ReadPrec [ListAgentStatusesResponse]
readPrec :: ReadPrec ListAgentStatusesResponse
$creadPrec :: ReadPrec ListAgentStatusesResponse
readList :: ReadS [ListAgentStatusesResponse]
$creadList :: ReadS [ListAgentStatusesResponse]
readsPrec :: Int -> ReadS ListAgentStatusesResponse
$creadsPrec :: Int -> ReadS ListAgentStatusesResponse
Prelude.Read, Int -> ListAgentStatusesResponse -> ShowS
[ListAgentStatusesResponse] -> ShowS
ListAgentStatusesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAgentStatusesResponse] -> ShowS
$cshowList :: [ListAgentStatusesResponse] -> ShowS
show :: ListAgentStatusesResponse -> String
$cshow :: ListAgentStatusesResponse -> String
showsPrec :: Int -> ListAgentStatusesResponse -> ShowS
$cshowsPrec :: Int -> ListAgentStatusesResponse -> ShowS
Prelude.Show, forall x.
Rep ListAgentStatusesResponse x -> ListAgentStatusesResponse
forall x.
ListAgentStatusesResponse -> Rep ListAgentStatusesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAgentStatusesResponse x -> ListAgentStatusesResponse
$cfrom :: forall x.
ListAgentStatusesResponse -> Rep ListAgentStatusesResponse x
Prelude.Generic)
newListAgentStatusesResponse ::
Prelude.Int ->
ListAgentStatusesResponse
newListAgentStatusesResponse :: Int -> ListAgentStatusesResponse
newListAgentStatusesResponse Int
pHttpStatus_ =
ListAgentStatusesResponse'
{ $sel:agentStatusSummaryList:ListAgentStatusesResponse' :: Maybe [AgentStatusSummary]
agentStatusSummaryList =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAgentStatusesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAgentStatusesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAgentStatusesResponse_agentStatusSummaryList :: Lens.Lens' ListAgentStatusesResponse (Prelude.Maybe [AgentStatusSummary])
listAgentStatusesResponse_agentStatusSummaryList :: Lens' ListAgentStatusesResponse (Maybe [AgentStatusSummary])
listAgentStatusesResponse_agentStatusSummaryList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAgentStatusesResponse' {Maybe [AgentStatusSummary]
agentStatusSummaryList :: Maybe [AgentStatusSummary]
$sel:agentStatusSummaryList:ListAgentStatusesResponse' :: ListAgentStatusesResponse -> Maybe [AgentStatusSummary]
agentStatusSummaryList} -> Maybe [AgentStatusSummary]
agentStatusSummaryList) (\s :: ListAgentStatusesResponse
s@ListAgentStatusesResponse' {} Maybe [AgentStatusSummary]
a -> ListAgentStatusesResponse
s {$sel:agentStatusSummaryList:ListAgentStatusesResponse' :: Maybe [AgentStatusSummary]
agentStatusSummaryList = Maybe [AgentStatusSummary]
a} :: ListAgentStatusesResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listAgentStatusesResponse_nextToken :: Lens.Lens' ListAgentStatusesResponse (Prelude.Maybe Prelude.Text)
listAgentStatusesResponse_nextToken :: Lens' ListAgentStatusesResponse (Maybe Text)
listAgentStatusesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAgentStatusesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAgentStatusesResponse' :: ListAgentStatusesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAgentStatusesResponse
s@ListAgentStatusesResponse' {} Maybe Text
a -> ListAgentStatusesResponse
s {$sel:nextToken:ListAgentStatusesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAgentStatusesResponse)
listAgentStatusesResponse_httpStatus :: Lens.Lens' ListAgentStatusesResponse Prelude.Int
listAgentStatusesResponse_httpStatus :: Lens' ListAgentStatusesResponse Int
listAgentStatusesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAgentStatusesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAgentStatusesResponse' :: ListAgentStatusesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAgentStatusesResponse
s@ListAgentStatusesResponse' {} Int
a -> ListAgentStatusesResponse
s {$sel:httpStatus:ListAgentStatusesResponse' :: Int
httpStatus = Int
a} :: ListAgentStatusesResponse)
instance Prelude.NFData ListAgentStatusesResponse where
rnf :: ListAgentStatusesResponse -> ()
rnf ListAgentStatusesResponse' {Int
Maybe [AgentStatusSummary]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
agentStatusSummaryList :: Maybe [AgentStatusSummary]
$sel:httpStatus:ListAgentStatusesResponse' :: ListAgentStatusesResponse -> Int
$sel:nextToken:ListAgentStatusesResponse' :: ListAgentStatusesResponse -> Maybe Text
$sel:agentStatusSummaryList:ListAgentStatusesResponse' :: ListAgentStatusesResponse -> Maybe [AgentStatusSummary]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [AgentStatusSummary]
agentStatusSummaryList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus