{-# 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.Discovery.GetDiscoverySummary
(
GetDiscoverySummary (..),
newGetDiscoverySummary,
GetDiscoverySummaryResponse (..),
newGetDiscoverySummaryResponse,
getDiscoverySummaryResponse_servers,
getDiscoverySummaryResponse_serversMappedtoTags,
getDiscoverySummaryResponse_serversMappedToApplications,
getDiscoverySummaryResponse_connectorSummary,
getDiscoverySummaryResponse_agentSummary,
getDiscoverySummaryResponse_applications,
getDiscoverySummaryResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.Discovery.Types
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 GetDiscoverySummary = GetDiscoverySummary'
{
}
deriving (GetDiscoverySummary -> GetDiscoverySummary -> Bool
(GetDiscoverySummary -> GetDiscoverySummary -> Bool)
-> (GetDiscoverySummary -> GetDiscoverySummary -> Bool)
-> Eq GetDiscoverySummary
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDiscoverySummary -> GetDiscoverySummary -> Bool
$c/= :: GetDiscoverySummary -> GetDiscoverySummary -> Bool
== :: GetDiscoverySummary -> GetDiscoverySummary -> Bool
$c== :: GetDiscoverySummary -> GetDiscoverySummary -> Bool
Prelude.Eq, ReadPrec [GetDiscoverySummary]
ReadPrec GetDiscoverySummary
Int -> ReadS GetDiscoverySummary
ReadS [GetDiscoverySummary]
(Int -> ReadS GetDiscoverySummary)
-> ReadS [GetDiscoverySummary]
-> ReadPrec GetDiscoverySummary
-> ReadPrec [GetDiscoverySummary]
-> Read GetDiscoverySummary
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDiscoverySummary]
$creadListPrec :: ReadPrec [GetDiscoverySummary]
readPrec :: ReadPrec GetDiscoverySummary
$creadPrec :: ReadPrec GetDiscoverySummary
readList :: ReadS [GetDiscoverySummary]
$creadList :: ReadS [GetDiscoverySummary]
readsPrec :: Int -> ReadS GetDiscoverySummary
$creadsPrec :: Int -> ReadS GetDiscoverySummary
Prelude.Read, Int -> GetDiscoverySummary -> ShowS
[GetDiscoverySummary] -> ShowS
GetDiscoverySummary -> String
(Int -> GetDiscoverySummary -> ShowS)
-> (GetDiscoverySummary -> String)
-> ([GetDiscoverySummary] -> ShowS)
-> Show GetDiscoverySummary
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDiscoverySummary] -> ShowS
$cshowList :: [GetDiscoverySummary] -> ShowS
show :: GetDiscoverySummary -> String
$cshow :: GetDiscoverySummary -> String
showsPrec :: Int -> GetDiscoverySummary -> ShowS
$cshowsPrec :: Int -> GetDiscoverySummary -> ShowS
Prelude.Show, (forall x. GetDiscoverySummary -> Rep GetDiscoverySummary x)
-> (forall x. Rep GetDiscoverySummary x -> GetDiscoverySummary)
-> Generic GetDiscoverySummary
forall x. Rep GetDiscoverySummary x -> GetDiscoverySummary
forall x. GetDiscoverySummary -> Rep GetDiscoverySummary x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetDiscoverySummary x -> GetDiscoverySummary
$cfrom :: forall x. GetDiscoverySummary -> Rep GetDiscoverySummary x
Prelude.Generic)
newGetDiscoverySummary ::
GetDiscoverySummary
newGetDiscoverySummary :: GetDiscoverySummary
newGetDiscoverySummary = GetDiscoverySummary
GetDiscoverySummary'
instance Core.AWSRequest GetDiscoverySummary where
type
AWSResponse GetDiscoverySummary =
GetDiscoverySummaryResponse
request :: GetDiscoverySummary -> Request GetDiscoverySummary
request = Service -> GetDiscoverySummary -> Request GetDiscoverySummary
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetDiscoverySummary
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDiscoverySummary)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetDiscoverySummary))
-> Logger
-> Service
-> Proxy GetDiscoverySummary
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDiscoverySummary)))
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 Integer
-> Maybe Integer
-> Maybe Integer
-> Maybe CustomerConnectorInfo
-> Maybe CustomerAgentInfo
-> Maybe Integer
-> Int
-> GetDiscoverySummaryResponse
GetDiscoverySummaryResponse'
(Maybe Integer
-> Maybe Integer
-> Maybe Integer
-> Maybe CustomerConnectorInfo
-> Maybe CustomerAgentInfo
-> Maybe Integer
-> Int
-> GetDiscoverySummaryResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Integer
-> Maybe Integer
-> Maybe CustomerConnectorInfo
-> Maybe CustomerAgentInfo
-> Maybe Integer
-> Int
-> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Key -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"servers")
Either
String
(Maybe Integer
-> Maybe Integer
-> Maybe CustomerConnectorInfo
-> Maybe CustomerAgentInfo
-> Maybe Integer
-> Int
-> GetDiscoverySummaryResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe Integer
-> Maybe CustomerConnectorInfo
-> Maybe CustomerAgentInfo
-> Maybe Integer
-> Int
-> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"serversMappedtoTags")
Either
String
(Maybe Integer
-> Maybe CustomerConnectorInfo
-> Maybe CustomerAgentInfo
-> Maybe Integer
-> Int
-> GetDiscoverySummaryResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe CustomerConnectorInfo
-> Maybe CustomerAgentInfo
-> Maybe Integer
-> Int
-> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"serversMappedToApplications")
Either
String
(Maybe CustomerConnectorInfo
-> Maybe CustomerAgentInfo
-> Maybe Integer
-> Int
-> GetDiscoverySummaryResponse)
-> Either String (Maybe CustomerConnectorInfo)
-> Either
String
(Maybe CustomerAgentInfo
-> Maybe Integer -> Int -> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe CustomerConnectorInfo)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"connectorSummary")
Either
String
(Maybe CustomerAgentInfo
-> Maybe Integer -> Int -> GetDiscoverySummaryResponse)
-> Either String (Maybe CustomerAgentInfo)
-> Either
String (Maybe Integer -> Int -> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe CustomerAgentInfo)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"agentSummary")
Either String (Maybe Integer -> Int -> GetDiscoverySummaryResponse)
-> Either String (Maybe Integer)
-> Either String (Int -> GetDiscoverySummaryResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Key -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Core..?> Key
"applications")
Either String (Int -> GetDiscoverySummaryResponse)
-> Either String Int -> Either String GetDiscoverySummaryResponse
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 GetDiscoverySummary
instance Prelude.NFData GetDiscoverySummary
instance Core.ToHeaders GetDiscoverySummary where
toHeaders :: GetDiscoverySummary -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetDiscoverySummary -> 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
"AWSPoseidonService_V2015_11_01.GetDiscoverySummary" ::
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 GetDiscoverySummary where
toJSON :: GetDiscoverySummary -> Value
toJSON = Value -> GetDiscoverySummary -> Value
forall a b. a -> b -> a
Prelude.const (Object -> Value
Core.Object Object
forall a. Monoid a => a
Prelude.mempty)
instance Core.ToPath GetDiscoverySummary where
toPath :: GetDiscoverySummary -> ByteString
toPath = ByteString -> GetDiscoverySummary -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery GetDiscoverySummary where
toQuery :: GetDiscoverySummary -> QueryString
toQuery = QueryString -> GetDiscoverySummary -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetDiscoverySummaryResponse = GetDiscoverySummaryResponse'
{
GetDiscoverySummaryResponse -> Maybe Integer
servers :: Prelude.Maybe Prelude.Integer,
GetDiscoverySummaryResponse -> Maybe Integer
serversMappedtoTags :: Prelude.Maybe Prelude.Integer,
GetDiscoverySummaryResponse -> Maybe Integer
serversMappedToApplications :: Prelude.Maybe Prelude.Integer,
GetDiscoverySummaryResponse -> Maybe CustomerConnectorInfo
connectorSummary :: Prelude.Maybe CustomerConnectorInfo,
GetDiscoverySummaryResponse -> Maybe CustomerAgentInfo
agentSummary :: Prelude.Maybe CustomerAgentInfo,
GetDiscoverySummaryResponse -> Maybe Integer
applications :: Prelude.Maybe Prelude.Integer,
GetDiscoverySummaryResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetDiscoverySummaryResponse -> GetDiscoverySummaryResponse -> Bool
(GetDiscoverySummaryResponse
-> GetDiscoverySummaryResponse -> Bool)
-> (GetDiscoverySummaryResponse
-> GetDiscoverySummaryResponse -> Bool)
-> Eq GetDiscoverySummaryResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDiscoverySummaryResponse -> GetDiscoverySummaryResponse -> Bool
$c/= :: GetDiscoverySummaryResponse -> GetDiscoverySummaryResponse -> Bool
== :: GetDiscoverySummaryResponse -> GetDiscoverySummaryResponse -> Bool
$c== :: GetDiscoverySummaryResponse -> GetDiscoverySummaryResponse -> Bool
Prelude.Eq, ReadPrec [GetDiscoverySummaryResponse]
ReadPrec GetDiscoverySummaryResponse
Int -> ReadS GetDiscoverySummaryResponse
ReadS [GetDiscoverySummaryResponse]
(Int -> ReadS GetDiscoverySummaryResponse)
-> ReadS [GetDiscoverySummaryResponse]
-> ReadPrec GetDiscoverySummaryResponse
-> ReadPrec [GetDiscoverySummaryResponse]
-> Read GetDiscoverySummaryResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDiscoverySummaryResponse]
$creadListPrec :: ReadPrec [GetDiscoverySummaryResponse]
readPrec :: ReadPrec GetDiscoverySummaryResponse
$creadPrec :: ReadPrec GetDiscoverySummaryResponse
readList :: ReadS [GetDiscoverySummaryResponse]
$creadList :: ReadS [GetDiscoverySummaryResponse]
readsPrec :: Int -> ReadS GetDiscoverySummaryResponse
$creadsPrec :: Int -> ReadS GetDiscoverySummaryResponse
Prelude.Read, Int -> GetDiscoverySummaryResponse -> ShowS
[GetDiscoverySummaryResponse] -> ShowS
GetDiscoverySummaryResponse -> String
(Int -> GetDiscoverySummaryResponse -> ShowS)
-> (GetDiscoverySummaryResponse -> String)
-> ([GetDiscoverySummaryResponse] -> ShowS)
-> Show GetDiscoverySummaryResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDiscoverySummaryResponse] -> ShowS
$cshowList :: [GetDiscoverySummaryResponse] -> ShowS
show :: GetDiscoverySummaryResponse -> String
$cshow :: GetDiscoverySummaryResponse -> String
showsPrec :: Int -> GetDiscoverySummaryResponse -> ShowS
$cshowsPrec :: Int -> GetDiscoverySummaryResponse -> ShowS
Prelude.Show, (forall x.
GetDiscoverySummaryResponse -> Rep GetDiscoverySummaryResponse x)
-> (forall x.
Rep GetDiscoverySummaryResponse x -> GetDiscoverySummaryResponse)
-> Generic GetDiscoverySummaryResponse
forall x.
Rep GetDiscoverySummaryResponse x -> GetDiscoverySummaryResponse
forall x.
GetDiscoverySummaryResponse -> Rep GetDiscoverySummaryResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDiscoverySummaryResponse x -> GetDiscoverySummaryResponse
$cfrom :: forall x.
GetDiscoverySummaryResponse -> Rep GetDiscoverySummaryResponse x
Prelude.Generic)
newGetDiscoverySummaryResponse ::
Prelude.Int ->
GetDiscoverySummaryResponse
newGetDiscoverySummaryResponse :: Int -> GetDiscoverySummaryResponse
newGetDiscoverySummaryResponse Int
pHttpStatus_ =
GetDiscoverySummaryResponse' :: Maybe Integer
-> Maybe Integer
-> Maybe Integer
-> Maybe CustomerConnectorInfo
-> Maybe CustomerAgentInfo
-> Maybe Integer
-> Int
-> GetDiscoverySummaryResponse
GetDiscoverySummaryResponse'
{ $sel:servers:GetDiscoverySummaryResponse' :: Maybe Integer
servers =
Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:serversMappedtoTags:GetDiscoverySummaryResponse' :: Maybe Integer
serversMappedtoTags = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:serversMappedToApplications:GetDiscoverySummaryResponse' :: Maybe Integer
serversMappedToApplications = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:connectorSummary:GetDiscoverySummaryResponse' :: Maybe CustomerConnectorInfo
connectorSummary = Maybe CustomerConnectorInfo
forall a. Maybe a
Prelude.Nothing,
$sel:agentSummary:GetDiscoverySummaryResponse' :: Maybe CustomerAgentInfo
agentSummary = Maybe CustomerAgentInfo
forall a. Maybe a
Prelude.Nothing,
$sel:applications:GetDiscoverySummaryResponse' :: Maybe Integer
applications = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetDiscoverySummaryResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getDiscoverySummaryResponse_servers :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe Prelude.Integer)
getDiscoverySummaryResponse_servers :: (Maybe Integer -> f (Maybe Integer))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_servers = (GetDiscoverySummaryResponse -> Maybe Integer)
-> (GetDiscoverySummaryResponse
-> Maybe Integer -> GetDiscoverySummaryResponse)
-> Lens
GetDiscoverySummaryResponse
GetDiscoverySummaryResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe Integer
servers :: Maybe Integer
$sel:servers:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe Integer
servers} -> Maybe Integer
servers) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe Integer
a -> GetDiscoverySummaryResponse
s {$sel:servers:GetDiscoverySummaryResponse' :: Maybe Integer
servers = Maybe Integer
a} :: GetDiscoverySummaryResponse)
getDiscoverySummaryResponse_serversMappedtoTags :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe Prelude.Integer)
getDiscoverySummaryResponse_serversMappedtoTags :: (Maybe Integer -> f (Maybe Integer))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_serversMappedtoTags = (GetDiscoverySummaryResponse -> Maybe Integer)
-> (GetDiscoverySummaryResponse
-> Maybe Integer -> GetDiscoverySummaryResponse)
-> Lens
GetDiscoverySummaryResponse
GetDiscoverySummaryResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe Integer
serversMappedtoTags :: Maybe Integer
$sel:serversMappedtoTags:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe Integer
serversMappedtoTags} -> Maybe Integer
serversMappedtoTags) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe Integer
a -> GetDiscoverySummaryResponse
s {$sel:serversMappedtoTags:GetDiscoverySummaryResponse' :: Maybe Integer
serversMappedtoTags = Maybe Integer
a} :: GetDiscoverySummaryResponse)
getDiscoverySummaryResponse_serversMappedToApplications :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe Prelude.Integer)
getDiscoverySummaryResponse_serversMappedToApplications :: (Maybe Integer -> f (Maybe Integer))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_serversMappedToApplications = (GetDiscoverySummaryResponse -> Maybe Integer)
-> (GetDiscoverySummaryResponse
-> Maybe Integer -> GetDiscoverySummaryResponse)
-> Lens
GetDiscoverySummaryResponse
GetDiscoverySummaryResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe Integer
serversMappedToApplications :: Maybe Integer
$sel:serversMappedToApplications:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe Integer
serversMappedToApplications} -> Maybe Integer
serversMappedToApplications) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe Integer
a -> GetDiscoverySummaryResponse
s {$sel:serversMappedToApplications:GetDiscoverySummaryResponse' :: Maybe Integer
serversMappedToApplications = Maybe Integer
a} :: GetDiscoverySummaryResponse)
getDiscoverySummaryResponse_connectorSummary :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe CustomerConnectorInfo)
getDiscoverySummaryResponse_connectorSummary :: (Maybe CustomerConnectorInfo -> f (Maybe CustomerConnectorInfo))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_connectorSummary = (GetDiscoverySummaryResponse -> Maybe CustomerConnectorInfo)
-> (GetDiscoverySummaryResponse
-> Maybe CustomerConnectorInfo -> GetDiscoverySummaryResponse)
-> Lens
GetDiscoverySummaryResponse
GetDiscoverySummaryResponse
(Maybe CustomerConnectorInfo)
(Maybe CustomerConnectorInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe CustomerConnectorInfo
connectorSummary :: Maybe CustomerConnectorInfo
$sel:connectorSummary:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe CustomerConnectorInfo
connectorSummary} -> Maybe CustomerConnectorInfo
connectorSummary) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe CustomerConnectorInfo
a -> GetDiscoverySummaryResponse
s {$sel:connectorSummary:GetDiscoverySummaryResponse' :: Maybe CustomerConnectorInfo
connectorSummary = Maybe CustomerConnectorInfo
a} :: GetDiscoverySummaryResponse)
getDiscoverySummaryResponse_agentSummary :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe CustomerAgentInfo)
getDiscoverySummaryResponse_agentSummary :: (Maybe CustomerAgentInfo -> f (Maybe CustomerAgentInfo))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_agentSummary = (GetDiscoverySummaryResponse -> Maybe CustomerAgentInfo)
-> (GetDiscoverySummaryResponse
-> Maybe CustomerAgentInfo -> GetDiscoverySummaryResponse)
-> Lens
GetDiscoverySummaryResponse
GetDiscoverySummaryResponse
(Maybe CustomerAgentInfo)
(Maybe CustomerAgentInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe CustomerAgentInfo
agentSummary :: Maybe CustomerAgentInfo
$sel:agentSummary:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe CustomerAgentInfo
agentSummary} -> Maybe CustomerAgentInfo
agentSummary) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe CustomerAgentInfo
a -> GetDiscoverySummaryResponse
s {$sel:agentSummary:GetDiscoverySummaryResponse' :: Maybe CustomerAgentInfo
agentSummary = Maybe CustomerAgentInfo
a} :: GetDiscoverySummaryResponse)
getDiscoverySummaryResponse_applications :: Lens.Lens' GetDiscoverySummaryResponse (Prelude.Maybe Prelude.Integer)
getDiscoverySummaryResponse_applications :: (Maybe Integer -> f (Maybe Integer))
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_applications = (GetDiscoverySummaryResponse -> Maybe Integer)
-> (GetDiscoverySummaryResponse
-> Maybe Integer -> GetDiscoverySummaryResponse)
-> Lens
GetDiscoverySummaryResponse
GetDiscoverySummaryResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Maybe Integer
applications :: Maybe Integer
$sel:applications:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Maybe Integer
applications} -> Maybe Integer
applications) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Maybe Integer
a -> GetDiscoverySummaryResponse
s {$sel:applications:GetDiscoverySummaryResponse' :: Maybe Integer
applications = Maybe Integer
a} :: GetDiscoverySummaryResponse)
getDiscoverySummaryResponse_httpStatus :: Lens.Lens' GetDiscoverySummaryResponse Prelude.Int
getDiscoverySummaryResponse_httpStatus :: (Int -> f Int)
-> GetDiscoverySummaryResponse -> f GetDiscoverySummaryResponse
getDiscoverySummaryResponse_httpStatus = (GetDiscoverySummaryResponse -> Int)
-> (GetDiscoverySummaryResponse
-> Int -> GetDiscoverySummaryResponse)
-> Lens
GetDiscoverySummaryResponse GetDiscoverySummaryResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDiscoverySummaryResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetDiscoverySummaryResponse' :: GetDiscoverySummaryResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetDiscoverySummaryResponse
s@GetDiscoverySummaryResponse' {} Int
a -> GetDiscoverySummaryResponse
s {$sel:httpStatus:GetDiscoverySummaryResponse' :: Int
httpStatus = Int
a} :: GetDiscoverySummaryResponse)
instance Prelude.NFData GetDiscoverySummaryResponse