{-# 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.XRay.GetTraceGraph
(
GetTraceGraph (..),
newGetTraceGraph,
getTraceGraph_nextToken,
getTraceGraph_traceIds,
GetTraceGraphResponse (..),
newGetTraceGraphResponse,
getTraceGraphResponse_nextToken,
getTraceGraphResponse_services,
getTraceGraphResponse_httpStatus,
)
where
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
import Amazonka.XRay.Types
data GetTraceGraph = GetTraceGraph'
{
GetTraceGraph -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTraceGraph -> [Text]
traceIds :: [Prelude.Text]
}
deriving (GetTraceGraph -> GetTraceGraph -> Bool
(GetTraceGraph -> GetTraceGraph -> Bool)
-> (GetTraceGraph -> GetTraceGraph -> Bool) -> Eq GetTraceGraph
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTraceGraph -> GetTraceGraph -> Bool
$c/= :: GetTraceGraph -> GetTraceGraph -> Bool
== :: GetTraceGraph -> GetTraceGraph -> Bool
$c== :: GetTraceGraph -> GetTraceGraph -> Bool
Prelude.Eq, ReadPrec [GetTraceGraph]
ReadPrec GetTraceGraph
Int -> ReadS GetTraceGraph
ReadS [GetTraceGraph]
(Int -> ReadS GetTraceGraph)
-> ReadS [GetTraceGraph]
-> ReadPrec GetTraceGraph
-> ReadPrec [GetTraceGraph]
-> Read GetTraceGraph
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTraceGraph]
$creadListPrec :: ReadPrec [GetTraceGraph]
readPrec :: ReadPrec GetTraceGraph
$creadPrec :: ReadPrec GetTraceGraph
readList :: ReadS [GetTraceGraph]
$creadList :: ReadS [GetTraceGraph]
readsPrec :: Int -> ReadS GetTraceGraph
$creadsPrec :: Int -> ReadS GetTraceGraph
Prelude.Read, Int -> GetTraceGraph -> ShowS
[GetTraceGraph] -> ShowS
GetTraceGraph -> String
(Int -> GetTraceGraph -> ShowS)
-> (GetTraceGraph -> String)
-> ([GetTraceGraph] -> ShowS)
-> Show GetTraceGraph
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTraceGraph] -> ShowS
$cshowList :: [GetTraceGraph] -> ShowS
show :: GetTraceGraph -> String
$cshow :: GetTraceGraph -> String
showsPrec :: Int -> GetTraceGraph -> ShowS
$cshowsPrec :: Int -> GetTraceGraph -> ShowS
Prelude.Show, (forall x. GetTraceGraph -> Rep GetTraceGraph x)
-> (forall x. Rep GetTraceGraph x -> GetTraceGraph)
-> Generic GetTraceGraph
forall x. Rep GetTraceGraph x -> GetTraceGraph
forall x. GetTraceGraph -> Rep GetTraceGraph x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetTraceGraph x -> GetTraceGraph
$cfrom :: forall x. GetTraceGraph -> Rep GetTraceGraph x
Prelude.Generic)
newGetTraceGraph ::
GetTraceGraph
newGetTraceGraph :: GetTraceGraph
newGetTraceGraph =
GetTraceGraph' :: Maybe Text -> [Text] -> GetTraceGraph
GetTraceGraph'
{ $sel:nextToken:GetTraceGraph' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:traceIds:GetTraceGraph' :: [Text]
traceIds = [Text]
forall a. Monoid a => a
Prelude.mempty
}
getTraceGraph_nextToken :: Lens.Lens' GetTraceGraph (Prelude.Maybe Prelude.Text)
getTraceGraph_nextToken :: (Maybe Text -> f (Maybe Text)) -> GetTraceGraph -> f GetTraceGraph
getTraceGraph_nextToken = (GetTraceGraph -> Maybe Text)
-> (GetTraceGraph -> Maybe Text -> GetTraceGraph)
-> Lens GetTraceGraph GetTraceGraph (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTraceGraph' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTraceGraph' :: GetTraceGraph -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTraceGraph
s@GetTraceGraph' {} Maybe Text
a -> GetTraceGraph
s {$sel:nextToken:GetTraceGraph' :: Maybe Text
nextToken = Maybe Text
a} :: GetTraceGraph)
getTraceGraph_traceIds :: Lens.Lens' GetTraceGraph [Prelude.Text]
getTraceGraph_traceIds :: ([Text] -> f [Text]) -> GetTraceGraph -> f GetTraceGraph
getTraceGraph_traceIds = (GetTraceGraph -> [Text])
-> (GetTraceGraph -> [Text] -> GetTraceGraph)
-> Lens GetTraceGraph GetTraceGraph [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTraceGraph' {[Text]
traceIds :: [Text]
$sel:traceIds:GetTraceGraph' :: GetTraceGraph -> [Text]
traceIds} -> [Text]
traceIds) (\s :: GetTraceGraph
s@GetTraceGraph' {} [Text]
a -> GetTraceGraph
s {$sel:traceIds:GetTraceGraph' :: [Text]
traceIds = [Text]
a} :: GetTraceGraph) (([Text] -> f [Text]) -> GetTraceGraph -> f GetTraceGraph)
-> (([Text] -> f [Text]) -> [Text] -> f [Text])
-> ([Text] -> f [Text])
-> GetTraceGraph
-> f GetTraceGraph
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([Text] -> f [Text]) -> [Text] -> f [Text]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
instance Core.AWSPager GetTraceGraph where
page :: GetTraceGraph -> AWSResponse GetTraceGraph -> Maybe GetTraceGraph
page GetTraceGraph
rq AWSResponse GetTraceGraph
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetTraceGraph
GetTraceGraphResponse
rs
GetTraceGraphResponse
-> Getting (First Text) GetTraceGraphResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetTraceGraphResponse
-> Const (First Text) GetTraceGraphResponse
Lens' GetTraceGraphResponse (Maybe Text)
getTraceGraphResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> GetTraceGraphResponse
-> Const (First Text) GetTraceGraphResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetTraceGraphResponse 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 GetTraceGraph
forall a. Maybe a
Prelude.Nothing
| Maybe [ServiceInfo] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetTraceGraph
GetTraceGraphResponse
rs
GetTraceGraphResponse
-> Getting
(First [ServiceInfo]) GetTraceGraphResponse [ServiceInfo]
-> Maybe [ServiceInfo]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ServiceInfo]
-> Const (First [ServiceInfo]) (Maybe [ServiceInfo]))
-> GetTraceGraphResponse
-> Const (First [ServiceInfo]) GetTraceGraphResponse
Lens' GetTraceGraphResponse (Maybe [ServiceInfo])
getTraceGraphResponse_services ((Maybe [ServiceInfo]
-> Const (First [ServiceInfo]) (Maybe [ServiceInfo]))
-> GetTraceGraphResponse
-> Const (First [ServiceInfo]) GetTraceGraphResponse)
-> (([ServiceInfo] -> Const (First [ServiceInfo]) [ServiceInfo])
-> Maybe [ServiceInfo]
-> Const (First [ServiceInfo]) (Maybe [ServiceInfo]))
-> Getting
(First [ServiceInfo]) GetTraceGraphResponse [ServiceInfo]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ServiceInfo] -> Const (First [ServiceInfo]) [ServiceInfo])
-> Maybe [ServiceInfo]
-> Const (First [ServiceInfo]) (Maybe [ServiceInfo])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetTraceGraph
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetTraceGraph -> Maybe GetTraceGraph
forall a. a -> Maybe a
Prelude.Just (GetTraceGraph -> Maybe GetTraceGraph)
-> GetTraceGraph -> Maybe GetTraceGraph
forall a b. (a -> b) -> a -> b
Prelude.$
GetTraceGraph
rq
GetTraceGraph -> (GetTraceGraph -> GetTraceGraph) -> GetTraceGraph
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetTraceGraph -> Identity GetTraceGraph
Lens GetTraceGraph GetTraceGraph (Maybe Text) (Maybe Text)
getTraceGraph_nextToken
((Maybe Text -> Identity (Maybe Text))
-> GetTraceGraph -> Identity GetTraceGraph)
-> Maybe Text -> GetTraceGraph -> GetTraceGraph
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetTraceGraph
GetTraceGraphResponse
rs
GetTraceGraphResponse
-> Getting (First Text) GetTraceGraphResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetTraceGraphResponse
-> Const (First Text) GetTraceGraphResponse
Lens' GetTraceGraphResponse (Maybe Text)
getTraceGraphResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> GetTraceGraphResponse
-> Const (First Text) GetTraceGraphResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetTraceGraphResponse 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 GetTraceGraph where
type
AWSResponse GetTraceGraph =
GetTraceGraphResponse
request :: GetTraceGraph -> Request GetTraceGraph
request = Service -> GetTraceGraph -> Request GetTraceGraph
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy GetTraceGraph
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetTraceGraph)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetTraceGraph))
-> Logger
-> Service
-> Proxy GetTraceGraph
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetTraceGraph)))
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 [ServiceInfo] -> Int -> GetTraceGraphResponse
GetTraceGraphResponse'
(Maybe Text -> Maybe [ServiceInfo] -> Int -> GetTraceGraphResponse)
-> Either String (Maybe Text)
-> Either
String (Maybe [ServiceInfo] -> Int -> GetTraceGraphResponse)
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 [ServiceInfo] -> Int -> GetTraceGraphResponse)
-> Either String (Maybe [ServiceInfo])
-> Either String (Int -> GetTraceGraphResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [ServiceInfo]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Services" Either String (Maybe (Maybe [ServiceInfo]))
-> Maybe [ServiceInfo] -> Either String (Maybe [ServiceInfo])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ServiceInfo]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> GetTraceGraphResponse)
-> Either String Int -> Either String GetTraceGraphResponse
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 GetTraceGraph
instance Prelude.NFData GetTraceGraph
instance Core.ToHeaders GetTraceGraph where
toHeaders :: GetTraceGraph -> ResponseHeaders
toHeaders = ResponseHeaders -> GetTraceGraph -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToJSON GetTraceGraph where
toJSON :: GetTraceGraph -> Value
toJSON GetTraceGraph' {[Text]
Maybe Text
traceIds :: [Text]
nextToken :: Maybe Text
$sel:traceIds:GetTraceGraph' :: GetTraceGraph -> [Text]
$sel:nextToken:GetTraceGraph' :: GetTraceGraph -> 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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"TraceIds" Text -> [Text] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= [Text]
traceIds)
]
)
instance Core.ToPath GetTraceGraph where
toPath :: GetTraceGraph -> ByteString
toPath = ByteString -> GetTraceGraph -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/TraceGraph"
instance Core.ToQuery GetTraceGraph where
toQuery :: GetTraceGraph -> QueryString
toQuery = QueryString -> GetTraceGraph -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data GetTraceGraphResponse = GetTraceGraphResponse'
{
GetTraceGraphResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
GetTraceGraphResponse -> Maybe [ServiceInfo]
services :: Prelude.Maybe [ServiceInfo],
GetTraceGraphResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetTraceGraphResponse -> GetTraceGraphResponse -> Bool
(GetTraceGraphResponse -> GetTraceGraphResponse -> Bool)
-> (GetTraceGraphResponse -> GetTraceGraphResponse -> Bool)
-> Eq GetTraceGraphResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetTraceGraphResponse -> GetTraceGraphResponse -> Bool
$c/= :: GetTraceGraphResponse -> GetTraceGraphResponse -> Bool
== :: GetTraceGraphResponse -> GetTraceGraphResponse -> Bool
$c== :: GetTraceGraphResponse -> GetTraceGraphResponse -> Bool
Prelude.Eq, ReadPrec [GetTraceGraphResponse]
ReadPrec GetTraceGraphResponse
Int -> ReadS GetTraceGraphResponse
ReadS [GetTraceGraphResponse]
(Int -> ReadS GetTraceGraphResponse)
-> ReadS [GetTraceGraphResponse]
-> ReadPrec GetTraceGraphResponse
-> ReadPrec [GetTraceGraphResponse]
-> Read GetTraceGraphResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetTraceGraphResponse]
$creadListPrec :: ReadPrec [GetTraceGraphResponse]
readPrec :: ReadPrec GetTraceGraphResponse
$creadPrec :: ReadPrec GetTraceGraphResponse
readList :: ReadS [GetTraceGraphResponse]
$creadList :: ReadS [GetTraceGraphResponse]
readsPrec :: Int -> ReadS GetTraceGraphResponse
$creadsPrec :: Int -> ReadS GetTraceGraphResponse
Prelude.Read, Int -> GetTraceGraphResponse -> ShowS
[GetTraceGraphResponse] -> ShowS
GetTraceGraphResponse -> String
(Int -> GetTraceGraphResponse -> ShowS)
-> (GetTraceGraphResponse -> String)
-> ([GetTraceGraphResponse] -> ShowS)
-> Show GetTraceGraphResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetTraceGraphResponse] -> ShowS
$cshowList :: [GetTraceGraphResponse] -> ShowS
show :: GetTraceGraphResponse -> String
$cshow :: GetTraceGraphResponse -> String
showsPrec :: Int -> GetTraceGraphResponse -> ShowS
$cshowsPrec :: Int -> GetTraceGraphResponse -> ShowS
Prelude.Show, (forall x. GetTraceGraphResponse -> Rep GetTraceGraphResponse x)
-> (forall x. Rep GetTraceGraphResponse x -> GetTraceGraphResponse)
-> Generic GetTraceGraphResponse
forall x. Rep GetTraceGraphResponse x -> GetTraceGraphResponse
forall x. GetTraceGraphResponse -> Rep GetTraceGraphResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetTraceGraphResponse x -> GetTraceGraphResponse
$cfrom :: forall x. GetTraceGraphResponse -> Rep GetTraceGraphResponse x
Prelude.Generic)
newGetTraceGraphResponse ::
Prelude.Int ->
GetTraceGraphResponse
newGetTraceGraphResponse :: Int -> GetTraceGraphResponse
newGetTraceGraphResponse Int
pHttpStatus_ =
GetTraceGraphResponse' :: Maybe Text -> Maybe [ServiceInfo] -> Int -> GetTraceGraphResponse
GetTraceGraphResponse'
{ $sel:nextToken:GetTraceGraphResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:services:GetTraceGraphResponse' :: Maybe [ServiceInfo]
services = Maybe [ServiceInfo]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetTraceGraphResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getTraceGraphResponse_nextToken :: Lens.Lens' GetTraceGraphResponse (Prelude.Maybe Prelude.Text)
getTraceGraphResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> GetTraceGraphResponse -> f GetTraceGraphResponse
getTraceGraphResponse_nextToken = (GetTraceGraphResponse -> Maybe Text)
-> (GetTraceGraphResponse -> Maybe Text -> GetTraceGraphResponse)
-> Lens' GetTraceGraphResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTraceGraphResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:GetTraceGraphResponse' :: GetTraceGraphResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: GetTraceGraphResponse
s@GetTraceGraphResponse' {} Maybe Text
a -> GetTraceGraphResponse
s {$sel:nextToken:GetTraceGraphResponse' :: Maybe Text
nextToken = Maybe Text
a} :: GetTraceGraphResponse)
getTraceGraphResponse_services :: Lens.Lens' GetTraceGraphResponse (Prelude.Maybe [ServiceInfo])
getTraceGraphResponse_services :: (Maybe [ServiceInfo] -> f (Maybe [ServiceInfo]))
-> GetTraceGraphResponse -> f GetTraceGraphResponse
getTraceGraphResponse_services = (GetTraceGraphResponse -> Maybe [ServiceInfo])
-> (GetTraceGraphResponse
-> Maybe [ServiceInfo] -> GetTraceGraphResponse)
-> Lens' GetTraceGraphResponse (Maybe [ServiceInfo])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTraceGraphResponse' {Maybe [ServiceInfo]
services :: Maybe [ServiceInfo]
$sel:services:GetTraceGraphResponse' :: GetTraceGraphResponse -> Maybe [ServiceInfo]
services} -> Maybe [ServiceInfo]
services) (\s :: GetTraceGraphResponse
s@GetTraceGraphResponse' {} Maybe [ServiceInfo]
a -> GetTraceGraphResponse
s {$sel:services:GetTraceGraphResponse' :: Maybe [ServiceInfo]
services = Maybe [ServiceInfo]
a} :: GetTraceGraphResponse) ((Maybe [ServiceInfo] -> f (Maybe [ServiceInfo]))
-> GetTraceGraphResponse -> f GetTraceGraphResponse)
-> ((Maybe [ServiceInfo] -> f (Maybe [ServiceInfo]))
-> Maybe [ServiceInfo] -> f (Maybe [ServiceInfo]))
-> (Maybe [ServiceInfo] -> f (Maybe [ServiceInfo]))
-> GetTraceGraphResponse
-> f GetTraceGraphResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ServiceInfo] [ServiceInfo] [ServiceInfo] [ServiceInfo]
-> Iso
(Maybe [ServiceInfo])
(Maybe [ServiceInfo])
(Maybe [ServiceInfo])
(Maybe [ServiceInfo])
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 [ServiceInfo] [ServiceInfo] [ServiceInfo] [ServiceInfo]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getTraceGraphResponse_httpStatus :: Lens.Lens' GetTraceGraphResponse Prelude.Int
getTraceGraphResponse_httpStatus :: (Int -> f Int) -> GetTraceGraphResponse -> f GetTraceGraphResponse
getTraceGraphResponse_httpStatus = (GetTraceGraphResponse -> Int)
-> (GetTraceGraphResponse -> Int -> GetTraceGraphResponse)
-> Lens GetTraceGraphResponse GetTraceGraphResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetTraceGraphResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetTraceGraphResponse' :: GetTraceGraphResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetTraceGraphResponse
s@GetTraceGraphResponse' {} Int
a -> GetTraceGraphResponse
s {$sel:httpStatus:GetTraceGraphResponse' :: Int
httpStatus = Int
a} :: GetTraceGraphResponse)
instance Prelude.NFData GetTraceGraphResponse