{-# 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.MGN.DescribeJobLogItems
(
DescribeJobLogItems (..),
newDescribeJobLogItems,
describeJobLogItems_nextToken,
describeJobLogItems_maxResults,
describeJobLogItems_jobID,
DescribeJobLogItemsResponse (..),
newDescribeJobLogItemsResponse,
describeJobLogItemsResponse_items,
describeJobLogItemsResponse_nextToken,
describeJobLogItemsResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.MGN.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeJobLogItems = DescribeJobLogItems'
{
DescribeJobLogItems -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeJobLogItems -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
DescribeJobLogItems -> Text
jobID :: Prelude.Text
}
deriving (DescribeJobLogItems -> DescribeJobLogItems -> Bool
(DescribeJobLogItems -> DescribeJobLogItems -> Bool)
-> (DescribeJobLogItems -> DescribeJobLogItems -> Bool)
-> Eq DescribeJobLogItems
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeJobLogItems -> DescribeJobLogItems -> Bool
$c/= :: DescribeJobLogItems -> DescribeJobLogItems -> Bool
== :: DescribeJobLogItems -> DescribeJobLogItems -> Bool
$c== :: DescribeJobLogItems -> DescribeJobLogItems -> Bool
Prelude.Eq, ReadPrec [DescribeJobLogItems]
ReadPrec DescribeJobLogItems
Int -> ReadS DescribeJobLogItems
ReadS [DescribeJobLogItems]
(Int -> ReadS DescribeJobLogItems)
-> ReadS [DescribeJobLogItems]
-> ReadPrec DescribeJobLogItems
-> ReadPrec [DescribeJobLogItems]
-> Read DescribeJobLogItems
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeJobLogItems]
$creadListPrec :: ReadPrec [DescribeJobLogItems]
readPrec :: ReadPrec DescribeJobLogItems
$creadPrec :: ReadPrec DescribeJobLogItems
readList :: ReadS [DescribeJobLogItems]
$creadList :: ReadS [DescribeJobLogItems]
readsPrec :: Int -> ReadS DescribeJobLogItems
$creadsPrec :: Int -> ReadS DescribeJobLogItems
Prelude.Read, Int -> DescribeJobLogItems -> ShowS
[DescribeJobLogItems] -> ShowS
DescribeJobLogItems -> String
(Int -> DescribeJobLogItems -> ShowS)
-> (DescribeJobLogItems -> String)
-> ([DescribeJobLogItems] -> ShowS)
-> Show DescribeJobLogItems
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeJobLogItems] -> ShowS
$cshowList :: [DescribeJobLogItems] -> ShowS
show :: DescribeJobLogItems -> String
$cshow :: DescribeJobLogItems -> String
showsPrec :: Int -> DescribeJobLogItems -> ShowS
$cshowsPrec :: Int -> DescribeJobLogItems -> ShowS
Prelude.Show, (forall x. DescribeJobLogItems -> Rep DescribeJobLogItems x)
-> (forall x. Rep DescribeJobLogItems x -> DescribeJobLogItems)
-> Generic DescribeJobLogItems
forall x. Rep DescribeJobLogItems x -> DescribeJobLogItems
forall x. DescribeJobLogItems -> Rep DescribeJobLogItems x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeJobLogItems x -> DescribeJobLogItems
$cfrom :: forall x. DescribeJobLogItems -> Rep DescribeJobLogItems x
Prelude.Generic)
newDescribeJobLogItems ::
Prelude.Text ->
DescribeJobLogItems
newDescribeJobLogItems :: Text -> DescribeJobLogItems
newDescribeJobLogItems Text
pJobID_ =
DescribeJobLogItems' :: Maybe Text -> Maybe Natural -> Text -> DescribeJobLogItems
DescribeJobLogItems'
{ $sel:nextToken:DescribeJobLogItems' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:DescribeJobLogItems' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:jobID:DescribeJobLogItems' :: Text
jobID = Text
pJobID_
}
describeJobLogItems_nextToken :: Lens.Lens' DescribeJobLogItems (Prelude.Maybe Prelude.Text)
describeJobLogItems_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeJobLogItems -> f DescribeJobLogItems
describeJobLogItems_nextToken = (DescribeJobLogItems -> Maybe Text)
-> (DescribeJobLogItems -> Maybe Text -> DescribeJobLogItems)
-> Lens
DescribeJobLogItems DescribeJobLogItems (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobLogItems' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeJobLogItems' :: DescribeJobLogItems -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeJobLogItems
s@DescribeJobLogItems' {} Maybe Text
a -> DescribeJobLogItems
s {$sel:nextToken:DescribeJobLogItems' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeJobLogItems)
describeJobLogItems_maxResults :: Lens.Lens' DescribeJobLogItems (Prelude.Maybe Prelude.Natural)
describeJobLogItems_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> DescribeJobLogItems -> f DescribeJobLogItems
describeJobLogItems_maxResults = (DescribeJobLogItems -> Maybe Natural)
-> (DescribeJobLogItems -> Maybe Natural -> DescribeJobLogItems)
-> Lens
DescribeJobLogItems
DescribeJobLogItems
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobLogItems' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeJobLogItems' :: DescribeJobLogItems -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeJobLogItems
s@DescribeJobLogItems' {} Maybe Natural
a -> DescribeJobLogItems
s {$sel:maxResults:DescribeJobLogItems' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeJobLogItems)
describeJobLogItems_jobID :: Lens.Lens' DescribeJobLogItems Prelude.Text
describeJobLogItems_jobID :: (Text -> f Text) -> DescribeJobLogItems -> f DescribeJobLogItems
describeJobLogItems_jobID = (DescribeJobLogItems -> Text)
-> (DescribeJobLogItems -> Text -> DescribeJobLogItems)
-> Lens DescribeJobLogItems DescribeJobLogItems Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobLogItems' {Text
jobID :: Text
$sel:jobID:DescribeJobLogItems' :: DescribeJobLogItems -> Text
jobID} -> Text
jobID) (\s :: DescribeJobLogItems
s@DescribeJobLogItems' {} Text
a -> DescribeJobLogItems
s {$sel:jobID:DescribeJobLogItems' :: Text
jobID = Text
a} :: DescribeJobLogItems)
instance Core.AWSPager DescribeJobLogItems where
page :: DescribeJobLogItems
-> AWSResponse DescribeJobLogItems -> Maybe DescribeJobLogItems
page DescribeJobLogItems
rq AWSResponse DescribeJobLogItems
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeJobLogItems
DescribeJobLogItemsResponse
rs
DescribeJobLogItemsResponse
-> Getting (First Text) DescribeJobLogItemsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeJobLogItemsResponse
-> Const (First Text) DescribeJobLogItemsResponse
Lens' DescribeJobLogItemsResponse (Maybe Text)
describeJobLogItemsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeJobLogItemsResponse
-> Const (First Text) DescribeJobLogItemsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeJobLogItemsResponse 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 DescribeJobLogItems
forall a. Maybe a
Prelude.Nothing
| Maybe [JobLog] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeJobLogItems
DescribeJobLogItemsResponse
rs
DescribeJobLogItemsResponse
-> Getting (First [JobLog]) DescribeJobLogItemsResponse [JobLog]
-> Maybe [JobLog]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [JobLog] -> Const (First [JobLog]) (Maybe [JobLog]))
-> DescribeJobLogItemsResponse
-> Const (First [JobLog]) DescribeJobLogItemsResponse
Lens' DescribeJobLogItemsResponse (Maybe [JobLog])
describeJobLogItemsResponse_items
((Maybe [JobLog] -> Const (First [JobLog]) (Maybe [JobLog]))
-> DescribeJobLogItemsResponse
-> Const (First [JobLog]) DescribeJobLogItemsResponse)
-> (([JobLog] -> Const (First [JobLog]) [JobLog])
-> Maybe [JobLog] -> Const (First [JobLog]) (Maybe [JobLog]))
-> Getting (First [JobLog]) DescribeJobLogItemsResponse [JobLog]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([JobLog] -> Const (First [JobLog]) [JobLog])
-> Maybe [JobLog] -> Const (First [JobLog]) (Maybe [JobLog])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe DescribeJobLogItems
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
DescribeJobLogItems -> Maybe DescribeJobLogItems
forall a. a -> Maybe a
Prelude.Just (DescribeJobLogItems -> Maybe DescribeJobLogItems)
-> DescribeJobLogItems -> Maybe DescribeJobLogItems
forall a b. (a -> b) -> a -> b
Prelude.$
DescribeJobLogItems
rq
DescribeJobLogItems
-> (DescribeJobLogItems -> DescribeJobLogItems)
-> DescribeJobLogItems
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> DescribeJobLogItems -> Identity DescribeJobLogItems
Lens
DescribeJobLogItems DescribeJobLogItems (Maybe Text) (Maybe Text)
describeJobLogItems_nextToken
((Maybe Text -> Identity (Maybe Text))
-> DescribeJobLogItems -> Identity DescribeJobLogItems)
-> Maybe Text -> DescribeJobLogItems -> DescribeJobLogItems
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeJobLogItems
DescribeJobLogItemsResponse
rs
DescribeJobLogItemsResponse
-> Getting (First Text) DescribeJobLogItemsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeJobLogItemsResponse
-> Const (First Text) DescribeJobLogItemsResponse
Lens' DescribeJobLogItemsResponse (Maybe Text)
describeJobLogItemsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> DescribeJobLogItemsResponse
-> Const (First Text) DescribeJobLogItemsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) DescribeJobLogItemsResponse 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 DescribeJobLogItems where
type
AWSResponse DescribeJobLogItems =
DescribeJobLogItemsResponse
request :: DescribeJobLogItems -> Request DescribeJobLogItems
request = Service -> DescribeJobLogItems -> Request DescribeJobLogItems
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeJobLogItems
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeJobLogItems)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeJobLogItems))
-> Logger
-> Service
-> Proxy DescribeJobLogItems
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeJobLogItems)))
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 [JobLog] -> Maybe Text -> Int -> DescribeJobLogItemsResponse
DescribeJobLogItemsResponse'
(Maybe [JobLog]
-> Maybe Text -> Int -> DescribeJobLogItemsResponse)
-> Either String (Maybe [JobLog])
-> Either String (Maybe Text -> Int -> DescribeJobLogItemsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [JobLog]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"items" Either String (Maybe (Maybe [JobLog]))
-> Maybe [JobLog] -> Either String (Maybe [JobLog])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [JobLog]
forall a. Monoid a => a
Prelude.mempty)
Either String (Maybe Text -> Int -> DescribeJobLogItemsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> DescribeJobLogItemsResponse)
forall (f :: * -> *) a b. Applicative f => 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 (Int -> DescribeJobLogItemsResponse)
-> Either String Int -> Either String DescribeJobLogItemsResponse
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 DescribeJobLogItems
instance Prelude.NFData DescribeJobLogItems
instance Core.ToHeaders DescribeJobLogItems where
toHeaders :: DescribeJobLogItems -> ResponseHeaders
toHeaders =
ResponseHeaders -> DescribeJobLogItems -> 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.ToJSON DescribeJobLogItems where
toJSON :: DescribeJobLogItems -> Value
toJSON DescribeJobLogItems' {Maybe Natural
Maybe Text
Text
jobID :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:jobID:DescribeJobLogItems' :: DescribeJobLogItems -> Text
$sel:maxResults:DescribeJobLogItems' :: DescribeJobLogItems -> Maybe Natural
$sel:nextToken:DescribeJobLogItems' :: DescribeJobLogItems -> 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,
(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,
Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just (Text
"jobID" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
jobID)
]
)
instance Core.ToPath DescribeJobLogItems where
toPath :: DescribeJobLogItems -> ByteString
toPath = ByteString -> DescribeJobLogItems -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/DescribeJobLogItems"
instance Core.ToQuery DescribeJobLogItems where
toQuery :: DescribeJobLogItems -> QueryString
toQuery = QueryString -> DescribeJobLogItems -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeJobLogItemsResponse = DescribeJobLogItemsResponse'
{
DescribeJobLogItemsResponse -> Maybe [JobLog]
items :: Prelude.Maybe [JobLog],
DescribeJobLogItemsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeJobLogItemsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeJobLogItemsResponse -> DescribeJobLogItemsResponse -> Bool
(DescribeJobLogItemsResponse
-> DescribeJobLogItemsResponse -> Bool)
-> (DescribeJobLogItemsResponse
-> DescribeJobLogItemsResponse -> Bool)
-> Eq DescribeJobLogItemsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeJobLogItemsResponse -> DescribeJobLogItemsResponse -> Bool
$c/= :: DescribeJobLogItemsResponse -> DescribeJobLogItemsResponse -> Bool
== :: DescribeJobLogItemsResponse -> DescribeJobLogItemsResponse -> Bool
$c== :: DescribeJobLogItemsResponse -> DescribeJobLogItemsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeJobLogItemsResponse]
ReadPrec DescribeJobLogItemsResponse
Int -> ReadS DescribeJobLogItemsResponse
ReadS [DescribeJobLogItemsResponse]
(Int -> ReadS DescribeJobLogItemsResponse)
-> ReadS [DescribeJobLogItemsResponse]
-> ReadPrec DescribeJobLogItemsResponse
-> ReadPrec [DescribeJobLogItemsResponse]
-> Read DescribeJobLogItemsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeJobLogItemsResponse]
$creadListPrec :: ReadPrec [DescribeJobLogItemsResponse]
readPrec :: ReadPrec DescribeJobLogItemsResponse
$creadPrec :: ReadPrec DescribeJobLogItemsResponse
readList :: ReadS [DescribeJobLogItemsResponse]
$creadList :: ReadS [DescribeJobLogItemsResponse]
readsPrec :: Int -> ReadS DescribeJobLogItemsResponse
$creadsPrec :: Int -> ReadS DescribeJobLogItemsResponse
Prelude.Read, Int -> DescribeJobLogItemsResponse -> ShowS
[DescribeJobLogItemsResponse] -> ShowS
DescribeJobLogItemsResponse -> String
(Int -> DescribeJobLogItemsResponse -> ShowS)
-> (DescribeJobLogItemsResponse -> String)
-> ([DescribeJobLogItemsResponse] -> ShowS)
-> Show DescribeJobLogItemsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeJobLogItemsResponse] -> ShowS
$cshowList :: [DescribeJobLogItemsResponse] -> ShowS
show :: DescribeJobLogItemsResponse -> String
$cshow :: DescribeJobLogItemsResponse -> String
showsPrec :: Int -> DescribeJobLogItemsResponse -> ShowS
$cshowsPrec :: Int -> DescribeJobLogItemsResponse -> ShowS
Prelude.Show, (forall x.
DescribeJobLogItemsResponse -> Rep DescribeJobLogItemsResponse x)
-> (forall x.
Rep DescribeJobLogItemsResponse x -> DescribeJobLogItemsResponse)
-> Generic DescribeJobLogItemsResponse
forall x.
Rep DescribeJobLogItemsResponse x -> DescribeJobLogItemsResponse
forall x.
DescribeJobLogItemsResponse -> Rep DescribeJobLogItemsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeJobLogItemsResponse x -> DescribeJobLogItemsResponse
$cfrom :: forall x.
DescribeJobLogItemsResponse -> Rep DescribeJobLogItemsResponse x
Prelude.Generic)
newDescribeJobLogItemsResponse ::
Prelude.Int ->
DescribeJobLogItemsResponse
newDescribeJobLogItemsResponse :: Int -> DescribeJobLogItemsResponse
newDescribeJobLogItemsResponse Int
pHttpStatus_ =
DescribeJobLogItemsResponse' :: Maybe [JobLog] -> Maybe Text -> Int -> DescribeJobLogItemsResponse
DescribeJobLogItemsResponse'
{ $sel:items:DescribeJobLogItemsResponse' :: Maybe [JobLog]
items =
Maybe [JobLog]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeJobLogItemsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeJobLogItemsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeJobLogItemsResponse_items :: Lens.Lens' DescribeJobLogItemsResponse (Prelude.Maybe [JobLog])
describeJobLogItemsResponse_items :: (Maybe [JobLog] -> f (Maybe [JobLog]))
-> DescribeJobLogItemsResponse -> f DescribeJobLogItemsResponse
describeJobLogItemsResponse_items = (DescribeJobLogItemsResponse -> Maybe [JobLog])
-> (DescribeJobLogItemsResponse
-> Maybe [JobLog] -> DescribeJobLogItemsResponse)
-> Lens' DescribeJobLogItemsResponse (Maybe [JobLog])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobLogItemsResponse' {Maybe [JobLog]
items :: Maybe [JobLog]
$sel:items:DescribeJobLogItemsResponse' :: DescribeJobLogItemsResponse -> Maybe [JobLog]
items} -> Maybe [JobLog]
items) (\s :: DescribeJobLogItemsResponse
s@DescribeJobLogItemsResponse' {} Maybe [JobLog]
a -> DescribeJobLogItemsResponse
s {$sel:items:DescribeJobLogItemsResponse' :: Maybe [JobLog]
items = Maybe [JobLog]
a} :: DescribeJobLogItemsResponse) ((Maybe [JobLog] -> f (Maybe [JobLog]))
-> DescribeJobLogItemsResponse -> f DescribeJobLogItemsResponse)
-> ((Maybe [JobLog] -> f (Maybe [JobLog]))
-> Maybe [JobLog] -> f (Maybe [JobLog]))
-> (Maybe [JobLog] -> f (Maybe [JobLog]))
-> DescribeJobLogItemsResponse
-> f DescribeJobLogItemsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [JobLog] [JobLog] [JobLog] [JobLog]
-> Iso
(Maybe [JobLog]) (Maybe [JobLog]) (Maybe [JobLog]) (Maybe [JobLog])
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 [JobLog] [JobLog] [JobLog] [JobLog]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
describeJobLogItemsResponse_nextToken :: Lens.Lens' DescribeJobLogItemsResponse (Prelude.Maybe Prelude.Text)
describeJobLogItemsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> DescribeJobLogItemsResponse -> f DescribeJobLogItemsResponse
describeJobLogItemsResponse_nextToken = (DescribeJobLogItemsResponse -> Maybe Text)
-> (DescribeJobLogItemsResponse
-> Maybe Text -> DescribeJobLogItemsResponse)
-> Lens' DescribeJobLogItemsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobLogItemsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeJobLogItemsResponse' :: DescribeJobLogItemsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeJobLogItemsResponse
s@DescribeJobLogItemsResponse' {} Maybe Text
a -> DescribeJobLogItemsResponse
s {$sel:nextToken:DescribeJobLogItemsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeJobLogItemsResponse)
describeJobLogItemsResponse_httpStatus :: Lens.Lens' DescribeJobLogItemsResponse Prelude.Int
describeJobLogItemsResponse_httpStatus :: (Int -> f Int)
-> DescribeJobLogItemsResponse -> f DescribeJobLogItemsResponse
describeJobLogItemsResponse_httpStatus = (DescribeJobLogItemsResponse -> Int)
-> (DescribeJobLogItemsResponse
-> Int -> DescribeJobLogItemsResponse)
-> Lens
DescribeJobLogItemsResponse DescribeJobLogItemsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeJobLogItemsResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeJobLogItemsResponse' :: DescribeJobLogItemsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeJobLogItemsResponse
s@DescribeJobLogItemsResponse' {} Int
a -> DescribeJobLogItemsResponse
s {$sel:httpStatus:DescribeJobLogItemsResponse' :: Int
httpStatus = Int
a} :: DescribeJobLogItemsResponse)
instance Prelude.NFData DescribeJobLogItemsResponse