{-# 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.ApplicationInsights.ListProblems
(
ListProblems (..),
newListProblems,
listProblems_resourceGroupName,
listProblems_startTime,
listProblems_nextToken,
listProblems_endTime,
listProblems_maxResults,
ListProblemsResponse (..),
newListProblemsResponse,
listProblemsResponse_nextToken,
listProblemsResponse_problemList,
listProblemsResponse_httpStatus,
)
where
import Amazonka.ApplicationInsights.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 ListProblems = ListProblems'
{
ListProblems -> Maybe Text
resourceGroupName :: Prelude.Maybe Prelude.Text,
ListProblems -> Maybe POSIX
startTime :: Prelude.Maybe Core.POSIX,
ListProblems -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListProblems -> Maybe POSIX
endTime :: Prelude.Maybe Core.POSIX,
ListProblems -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
}
deriving (ListProblems -> ListProblems -> Bool
(ListProblems -> ListProblems -> Bool)
-> (ListProblems -> ListProblems -> Bool) -> Eq ListProblems
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProblems -> ListProblems -> Bool
$c/= :: ListProblems -> ListProblems -> Bool
== :: ListProblems -> ListProblems -> Bool
$c== :: ListProblems -> ListProblems -> Bool
Prelude.Eq, ReadPrec [ListProblems]
ReadPrec ListProblems
Int -> ReadS ListProblems
ReadS [ListProblems]
(Int -> ReadS ListProblems)
-> ReadS [ListProblems]
-> ReadPrec ListProblems
-> ReadPrec [ListProblems]
-> Read ListProblems
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProblems]
$creadListPrec :: ReadPrec [ListProblems]
readPrec :: ReadPrec ListProblems
$creadPrec :: ReadPrec ListProblems
readList :: ReadS [ListProblems]
$creadList :: ReadS [ListProblems]
readsPrec :: Int -> ReadS ListProblems
$creadsPrec :: Int -> ReadS ListProblems
Prelude.Read, Int -> ListProblems -> ShowS
[ListProblems] -> ShowS
ListProblems -> String
(Int -> ListProblems -> ShowS)
-> (ListProblems -> String)
-> ([ListProblems] -> ShowS)
-> Show ListProblems
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProblems] -> ShowS
$cshowList :: [ListProblems] -> ShowS
show :: ListProblems -> String
$cshow :: ListProblems -> String
showsPrec :: Int -> ListProblems -> ShowS
$cshowsPrec :: Int -> ListProblems -> ShowS
Prelude.Show, (forall x. ListProblems -> Rep ListProblems x)
-> (forall x. Rep ListProblems x -> ListProblems)
-> Generic ListProblems
forall x. Rep ListProblems x -> ListProblems
forall x. ListProblems -> Rep ListProblems x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListProblems x -> ListProblems
$cfrom :: forall x. ListProblems -> Rep ListProblems x
Prelude.Generic)
newListProblems ::
ListProblems
newListProblems :: ListProblems
newListProblems =
ListProblems' :: Maybe Text
-> Maybe POSIX
-> Maybe Text
-> Maybe POSIX
-> Maybe Natural
-> ListProblems
ListProblems'
{ $sel:resourceGroupName:ListProblems' :: Maybe Text
resourceGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:startTime:ListProblems' :: Maybe POSIX
startTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListProblems' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:endTime:ListProblems' :: Maybe POSIX
endTime = Maybe POSIX
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListProblems' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
}
listProblems_resourceGroupName :: Lens.Lens' ListProblems (Prelude.Maybe Prelude.Text)
listProblems_resourceGroupName :: (Maybe Text -> f (Maybe Text)) -> ListProblems -> f ListProblems
listProblems_resourceGroupName = (ListProblems -> Maybe Text)
-> (ListProblems -> Maybe Text -> ListProblems)
-> Lens ListProblems ListProblems (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProblems' {Maybe Text
resourceGroupName :: Maybe Text
$sel:resourceGroupName:ListProblems' :: ListProblems -> Maybe Text
resourceGroupName} -> Maybe Text
resourceGroupName) (\s :: ListProblems
s@ListProblems' {} Maybe Text
a -> ListProblems
s {$sel:resourceGroupName:ListProblems' :: Maybe Text
resourceGroupName = Maybe Text
a} :: ListProblems)
listProblems_startTime :: Lens.Lens' ListProblems (Prelude.Maybe Prelude.UTCTime)
listProblems_startTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListProblems -> f ListProblems
listProblems_startTime = (ListProblems -> Maybe POSIX)
-> (ListProblems -> Maybe POSIX -> ListProblems)
-> Lens ListProblems ListProblems (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProblems' {Maybe POSIX
startTime :: Maybe POSIX
$sel:startTime:ListProblems' :: ListProblems -> Maybe POSIX
startTime} -> Maybe POSIX
startTime) (\s :: ListProblems
s@ListProblems' {} Maybe POSIX
a -> ListProblems
s {$sel:startTime:ListProblems' :: Maybe POSIX
startTime = Maybe POSIX
a} :: ListProblems) ((Maybe POSIX -> f (Maybe POSIX))
-> ListProblems -> f ListProblems)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListProblems
-> f ListProblems
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
listProblems_nextToken :: Lens.Lens' ListProblems (Prelude.Maybe Prelude.Text)
listProblems_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListProblems -> f ListProblems
listProblems_nextToken = (ListProblems -> Maybe Text)
-> (ListProblems -> Maybe Text -> ListProblems)
-> Lens ListProblems ListProblems (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProblems' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProblems' :: ListProblems -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProblems
s@ListProblems' {} Maybe Text
a -> ListProblems
s {$sel:nextToken:ListProblems' :: Maybe Text
nextToken = Maybe Text
a} :: ListProblems)
listProblems_endTime :: Lens.Lens' ListProblems (Prelude.Maybe Prelude.UTCTime)
listProblems_endTime :: (Maybe UTCTime -> f (Maybe UTCTime))
-> ListProblems -> f ListProblems
listProblems_endTime = (ListProblems -> Maybe POSIX)
-> (ListProblems -> Maybe POSIX -> ListProblems)
-> Lens ListProblems ListProblems (Maybe POSIX) (Maybe POSIX)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProblems' {Maybe POSIX
endTime :: Maybe POSIX
$sel:endTime:ListProblems' :: ListProblems -> Maybe POSIX
endTime} -> Maybe POSIX
endTime) (\s :: ListProblems
s@ListProblems' {} Maybe POSIX
a -> ListProblems
s {$sel:endTime:ListProblems' :: Maybe POSIX
endTime = Maybe POSIX
a} :: ListProblems) ((Maybe POSIX -> f (Maybe POSIX))
-> ListProblems -> f ListProblems)
-> ((Maybe UTCTime -> f (Maybe UTCTime))
-> Maybe POSIX -> f (Maybe POSIX))
-> (Maybe UTCTime -> f (Maybe UTCTime))
-> ListProblems
-> f ListProblems
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso POSIX POSIX UTCTime UTCTime
-> Iso (Maybe POSIX) (Maybe POSIX) (Maybe UTCTime) (Maybe UTCTime)
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 POSIX POSIX UTCTime UTCTime
forall (a :: Format). Iso' (Time a) UTCTime
Core._Time
listProblems_maxResults :: Lens.Lens' ListProblems (Prelude.Maybe Prelude.Natural)
listProblems_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListProblems -> f ListProblems
listProblems_maxResults = (ListProblems -> Maybe Natural)
-> (ListProblems -> Maybe Natural -> ListProblems)
-> Lens ListProblems ListProblems (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProblems' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListProblems' :: ListProblems -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListProblems
s@ListProblems' {} Maybe Natural
a -> ListProblems
s {$sel:maxResults:ListProblems' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListProblems)
instance Core.AWSRequest ListProblems where
type AWSResponse ListProblems = ListProblemsResponse
request :: ListProblems -> Request ListProblems
request = Service -> ListProblems -> Request ListProblems
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy ListProblems
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListProblems)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListProblems))
-> Logger
-> Service
-> Proxy ListProblems
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListProblems)))
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 [Problem] -> Int -> ListProblemsResponse
ListProblemsResponse'
(Maybe Text -> Maybe [Problem] -> Int -> ListProblemsResponse)
-> Either String (Maybe Text)
-> Either String (Maybe [Problem] -> Int -> ListProblemsResponse)
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 [Problem] -> Int -> ListProblemsResponse)
-> Either String (Maybe [Problem])
-> Either String (Int -> ListProblemsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [Problem]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ProblemList" Either String (Maybe (Maybe [Problem]))
-> Maybe [Problem] -> Either String (Maybe [Problem])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [Problem]
forall a. Monoid a => a
Prelude.mempty)
Either String (Int -> ListProblemsResponse)
-> Either String Int -> Either String ListProblemsResponse
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 ListProblems
instance Prelude.NFData ListProblems
instance Core.ToHeaders ListProblems where
toHeaders :: ListProblems -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListProblems -> 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
"EC2WindowsBarleyService.ListProblems" ::
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 ListProblems where
toJSON :: ListProblems -> Value
toJSON ListProblems' {Maybe Natural
Maybe Text
Maybe POSIX
maxResults :: Maybe Natural
endTime :: Maybe POSIX
nextToken :: Maybe Text
startTime :: Maybe POSIX
resourceGroupName :: Maybe Text
$sel:maxResults:ListProblems' :: ListProblems -> Maybe Natural
$sel:endTime:ListProblems' :: ListProblems -> Maybe POSIX
$sel:nextToken:ListProblems' :: ListProblems -> Maybe Text
$sel:startTime:ListProblems' :: ListProblems -> Maybe POSIX
$sel:resourceGroupName:ListProblems' :: ListProblems -> Maybe Text
..} =
[Pair] -> Value
Core.object
( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Text
"ResourceGroupName" 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
resourceGroupName,
(Text
"StartTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
startTime,
(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,
(Text
"EndTime" Text -> POSIX -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (POSIX -> Pair) -> Maybe POSIX -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe POSIX
endTime,
(Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
]
)
instance Core.ToPath ListProblems where
toPath :: ListProblems -> ByteString
toPath = ByteString -> ListProblems -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Core.ToQuery ListProblems where
toQuery :: ListProblems -> QueryString
toQuery = QueryString -> ListProblems -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data ListProblemsResponse = ListProblemsResponse'
{
ListProblemsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListProblemsResponse -> Maybe [Problem]
problemList :: Prelude.Maybe [Problem],
ListProblemsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListProblemsResponse -> ListProblemsResponse -> Bool
(ListProblemsResponse -> ListProblemsResponse -> Bool)
-> (ListProblemsResponse -> ListProblemsResponse -> Bool)
-> Eq ListProblemsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProblemsResponse -> ListProblemsResponse -> Bool
$c/= :: ListProblemsResponse -> ListProblemsResponse -> Bool
== :: ListProblemsResponse -> ListProblemsResponse -> Bool
$c== :: ListProblemsResponse -> ListProblemsResponse -> Bool
Prelude.Eq, ReadPrec [ListProblemsResponse]
ReadPrec ListProblemsResponse
Int -> ReadS ListProblemsResponse
ReadS [ListProblemsResponse]
(Int -> ReadS ListProblemsResponse)
-> ReadS [ListProblemsResponse]
-> ReadPrec ListProblemsResponse
-> ReadPrec [ListProblemsResponse]
-> Read ListProblemsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProblemsResponse]
$creadListPrec :: ReadPrec [ListProblemsResponse]
readPrec :: ReadPrec ListProblemsResponse
$creadPrec :: ReadPrec ListProblemsResponse
readList :: ReadS [ListProblemsResponse]
$creadList :: ReadS [ListProblemsResponse]
readsPrec :: Int -> ReadS ListProblemsResponse
$creadsPrec :: Int -> ReadS ListProblemsResponse
Prelude.Read, Int -> ListProblemsResponse -> ShowS
[ListProblemsResponse] -> ShowS
ListProblemsResponse -> String
(Int -> ListProblemsResponse -> ShowS)
-> (ListProblemsResponse -> String)
-> ([ListProblemsResponse] -> ShowS)
-> Show ListProblemsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProblemsResponse] -> ShowS
$cshowList :: [ListProblemsResponse] -> ShowS
show :: ListProblemsResponse -> String
$cshow :: ListProblemsResponse -> String
showsPrec :: Int -> ListProblemsResponse -> ShowS
$cshowsPrec :: Int -> ListProblemsResponse -> ShowS
Prelude.Show, (forall x. ListProblemsResponse -> Rep ListProblemsResponse x)
-> (forall x. Rep ListProblemsResponse x -> ListProblemsResponse)
-> Generic ListProblemsResponse
forall x. Rep ListProblemsResponse x -> ListProblemsResponse
forall x. ListProblemsResponse -> Rep ListProblemsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListProblemsResponse x -> ListProblemsResponse
$cfrom :: forall x. ListProblemsResponse -> Rep ListProblemsResponse x
Prelude.Generic)
newListProblemsResponse ::
Prelude.Int ->
ListProblemsResponse
newListProblemsResponse :: Int -> ListProblemsResponse
newListProblemsResponse Int
pHttpStatus_ =
ListProblemsResponse' :: Maybe Text -> Maybe [Problem] -> Int -> ListProblemsResponse
ListProblemsResponse'
{ $sel:nextToken:ListProblemsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:problemList:ListProblemsResponse' :: Maybe [Problem]
problemList = Maybe [Problem]
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListProblemsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listProblemsResponse_nextToken :: Lens.Lens' ListProblemsResponse (Prelude.Maybe Prelude.Text)
listProblemsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListProblemsResponse -> f ListProblemsResponse
listProblemsResponse_nextToken = (ListProblemsResponse -> Maybe Text)
-> (ListProblemsResponse -> Maybe Text -> ListProblemsResponse)
-> Lens
ListProblemsResponse ListProblemsResponse (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProblemsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProblemsResponse' :: ListProblemsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProblemsResponse
s@ListProblemsResponse' {} Maybe Text
a -> ListProblemsResponse
s {$sel:nextToken:ListProblemsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListProblemsResponse)
listProblemsResponse_problemList :: Lens.Lens' ListProblemsResponse (Prelude.Maybe [Problem])
listProblemsResponse_problemList :: (Maybe [Problem] -> f (Maybe [Problem]))
-> ListProblemsResponse -> f ListProblemsResponse
listProblemsResponse_problemList = (ListProblemsResponse -> Maybe [Problem])
-> (ListProblemsResponse
-> Maybe [Problem] -> ListProblemsResponse)
-> Lens
ListProblemsResponse
ListProblemsResponse
(Maybe [Problem])
(Maybe [Problem])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProblemsResponse' {Maybe [Problem]
problemList :: Maybe [Problem]
$sel:problemList:ListProblemsResponse' :: ListProblemsResponse -> Maybe [Problem]
problemList} -> Maybe [Problem]
problemList) (\s :: ListProblemsResponse
s@ListProblemsResponse' {} Maybe [Problem]
a -> ListProblemsResponse
s {$sel:problemList:ListProblemsResponse' :: Maybe [Problem]
problemList = Maybe [Problem]
a} :: ListProblemsResponse) ((Maybe [Problem] -> f (Maybe [Problem]))
-> ListProblemsResponse -> f ListProblemsResponse)
-> ((Maybe [Problem] -> f (Maybe [Problem]))
-> Maybe [Problem] -> f (Maybe [Problem]))
-> (Maybe [Problem] -> f (Maybe [Problem]))
-> ListProblemsResponse
-> f ListProblemsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Problem] [Problem] [Problem] [Problem]
-> Iso
(Maybe [Problem])
(Maybe [Problem])
(Maybe [Problem])
(Maybe [Problem])
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 [Problem] [Problem] [Problem] [Problem]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listProblemsResponse_httpStatus :: Lens.Lens' ListProblemsResponse Prelude.Int
listProblemsResponse_httpStatus :: (Int -> f Int) -> ListProblemsResponse -> f ListProblemsResponse
listProblemsResponse_httpStatus = (ListProblemsResponse -> Int)
-> (ListProblemsResponse -> Int -> ListProblemsResponse)
-> Lens ListProblemsResponse ListProblemsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProblemsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListProblemsResponse' :: ListProblemsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListProblemsResponse
s@ListProblemsResponse' {} Int
a -> ListProblemsResponse
s {$sel:httpStatus:ListProblemsResponse' :: Int
httpStatus = Int
a} :: ListProblemsResponse)
instance Prelude.NFData ListProblemsResponse