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