{-# 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.Comprehend.ListDominantLanguageDetectionJobs
(
ListDominantLanguageDetectionJobs (..),
newListDominantLanguageDetectionJobs,
listDominantLanguageDetectionJobs_filter,
listDominantLanguageDetectionJobs_maxResults,
listDominantLanguageDetectionJobs_nextToken,
ListDominantLanguageDetectionJobsResponse (..),
newListDominantLanguageDetectionJobsResponse,
listDominantLanguageDetectionJobsResponse_dominantLanguageDetectionJobPropertiesList,
listDominantLanguageDetectionJobsResponse_nextToken,
listDominantLanguageDetectionJobsResponse_httpStatus,
)
where
import Amazonka.Comprehend.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListDominantLanguageDetectionJobs = ListDominantLanguageDetectionJobs'
{
ListDominantLanguageDetectionJobs
-> Maybe DominantLanguageDetectionJobFilter
filter' :: Prelude.Maybe DominantLanguageDetectionJobFilter,
ListDominantLanguageDetectionJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListDominantLanguageDetectionJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (ListDominantLanguageDetectionJobs
-> ListDominantLanguageDetectionJobs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDominantLanguageDetectionJobs
-> ListDominantLanguageDetectionJobs -> Bool
$c/= :: ListDominantLanguageDetectionJobs
-> ListDominantLanguageDetectionJobs -> Bool
== :: ListDominantLanguageDetectionJobs
-> ListDominantLanguageDetectionJobs -> Bool
$c== :: ListDominantLanguageDetectionJobs
-> ListDominantLanguageDetectionJobs -> Bool
Prelude.Eq, ReadPrec [ListDominantLanguageDetectionJobs]
ReadPrec ListDominantLanguageDetectionJobs
Int -> ReadS ListDominantLanguageDetectionJobs
ReadS [ListDominantLanguageDetectionJobs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDominantLanguageDetectionJobs]
$creadListPrec :: ReadPrec [ListDominantLanguageDetectionJobs]
readPrec :: ReadPrec ListDominantLanguageDetectionJobs
$creadPrec :: ReadPrec ListDominantLanguageDetectionJobs
readList :: ReadS [ListDominantLanguageDetectionJobs]
$creadList :: ReadS [ListDominantLanguageDetectionJobs]
readsPrec :: Int -> ReadS ListDominantLanguageDetectionJobs
$creadsPrec :: Int -> ReadS ListDominantLanguageDetectionJobs
Prelude.Read, Int -> ListDominantLanguageDetectionJobs -> ShowS
[ListDominantLanguageDetectionJobs] -> ShowS
ListDominantLanguageDetectionJobs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDominantLanguageDetectionJobs] -> ShowS
$cshowList :: [ListDominantLanguageDetectionJobs] -> ShowS
show :: ListDominantLanguageDetectionJobs -> String
$cshow :: ListDominantLanguageDetectionJobs -> String
showsPrec :: Int -> ListDominantLanguageDetectionJobs -> ShowS
$cshowsPrec :: Int -> ListDominantLanguageDetectionJobs -> ShowS
Prelude.Show, forall x.
Rep ListDominantLanguageDetectionJobs x
-> ListDominantLanguageDetectionJobs
forall x.
ListDominantLanguageDetectionJobs
-> Rep ListDominantLanguageDetectionJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDominantLanguageDetectionJobs x
-> ListDominantLanguageDetectionJobs
$cfrom :: forall x.
ListDominantLanguageDetectionJobs
-> Rep ListDominantLanguageDetectionJobs x
Prelude.Generic)
newListDominantLanguageDetectionJobs ::
ListDominantLanguageDetectionJobs
newListDominantLanguageDetectionJobs :: ListDominantLanguageDetectionJobs
newListDominantLanguageDetectionJobs =
ListDominantLanguageDetectionJobs'
{ $sel:filter':ListDominantLanguageDetectionJobs' :: Maybe DominantLanguageDetectionJobFilter
filter' =
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListDominantLanguageDetectionJobs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListDominantLanguageDetectionJobs' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
}
listDominantLanguageDetectionJobs_filter :: Lens.Lens' ListDominantLanguageDetectionJobs (Prelude.Maybe DominantLanguageDetectionJobFilter)
listDominantLanguageDetectionJobs_filter :: Lens'
ListDominantLanguageDetectionJobs
(Maybe DominantLanguageDetectionJobFilter)
listDominantLanguageDetectionJobs_filter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDominantLanguageDetectionJobs' {Maybe DominantLanguageDetectionJobFilter
filter' :: Maybe DominantLanguageDetectionJobFilter
$sel:filter':ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs
-> Maybe DominantLanguageDetectionJobFilter
filter'} -> Maybe DominantLanguageDetectionJobFilter
filter') (\s :: ListDominantLanguageDetectionJobs
s@ListDominantLanguageDetectionJobs' {} Maybe DominantLanguageDetectionJobFilter
a -> ListDominantLanguageDetectionJobs
s {$sel:filter':ListDominantLanguageDetectionJobs' :: Maybe DominantLanguageDetectionJobFilter
filter' = Maybe DominantLanguageDetectionJobFilter
a} :: ListDominantLanguageDetectionJobs)
listDominantLanguageDetectionJobs_maxResults :: Lens.Lens' ListDominantLanguageDetectionJobs (Prelude.Maybe Prelude.Natural)
listDominantLanguageDetectionJobs_maxResults :: Lens' ListDominantLanguageDetectionJobs (Maybe Natural)
listDominantLanguageDetectionJobs_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDominantLanguageDetectionJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDominantLanguageDetectionJobs
s@ListDominantLanguageDetectionJobs' {} Maybe Natural
a -> ListDominantLanguageDetectionJobs
s {$sel:maxResults:ListDominantLanguageDetectionJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDominantLanguageDetectionJobs)
listDominantLanguageDetectionJobs_nextToken :: Lens.Lens' ListDominantLanguageDetectionJobs (Prelude.Maybe Prelude.Text)
listDominantLanguageDetectionJobs_nextToken :: Lens' ListDominantLanguageDetectionJobs (Maybe Text)
listDominantLanguageDetectionJobs_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDominantLanguageDetectionJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDominantLanguageDetectionJobs
s@ListDominantLanguageDetectionJobs' {} Maybe Text
a -> ListDominantLanguageDetectionJobs
s {$sel:nextToken:ListDominantLanguageDetectionJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListDominantLanguageDetectionJobs)
instance
Core.AWSPager
ListDominantLanguageDetectionJobs
where
page :: ListDominantLanguageDetectionJobs
-> AWSResponse ListDominantLanguageDetectionJobs
-> Maybe ListDominantLanguageDetectionJobs
page ListDominantLanguageDetectionJobs
rq AWSResponse ListDominantLanguageDetectionJobs
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDominantLanguageDetectionJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListDominantLanguageDetectionJobsResponse (Maybe Text)
listDominantLanguageDetectionJobsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDominantLanguageDetectionJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
ListDominantLanguageDetectionJobsResponse
(Maybe [DominantLanguageDetectionJobProperties])
listDominantLanguageDetectionJobsResponse_dominantLanguageDetectionJobPropertiesList
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ ListDominantLanguageDetectionJobs
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListDominantLanguageDetectionJobs (Maybe Text)
listDominantLanguageDetectionJobs_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDominantLanguageDetectionJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListDominantLanguageDetectionJobsResponse (Maybe Text)
listDominantLanguageDetectionJobsResponse_nextToken
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance
Core.AWSRequest
ListDominantLanguageDetectionJobs
where
type
AWSResponse ListDominantLanguageDetectionJobs =
ListDominantLanguageDetectionJobsResponse
request :: (Service -> Service)
-> ListDominantLanguageDetectionJobs
-> Request ListDominantLanguageDetectionJobs
request Service -> Service
overrides =
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListDominantLanguageDetectionJobs
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse (AWSResponse ListDominantLanguageDetectionJobs)))
response =
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe [DominantLanguageDetectionJobProperties]
-> Maybe Text -> Int -> ListDominantLanguageDetectionJobsResponse
ListDominantLanguageDetectionJobsResponse'
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"DominantLanguageDetectionJobPropertiesList"
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance
Prelude.Hashable
ListDominantLanguageDetectionJobs
where
hashWithSalt :: Int -> ListDominantLanguageDetectionJobs -> Int
hashWithSalt
Int
_salt
ListDominantLanguageDetectionJobs' {Maybe Natural
Maybe Text
Maybe DominantLanguageDetectionJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe DominantLanguageDetectionJobFilter
$sel:nextToken:ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs -> Maybe Text
$sel:maxResults:ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs -> Maybe Natural
$sel:filter':ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs
-> Maybe DominantLanguageDetectionJobFilter
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe DominantLanguageDetectionJobFilter
filter'
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
instance
Prelude.NFData
ListDominantLanguageDetectionJobs
where
rnf :: ListDominantLanguageDetectionJobs -> ()
rnf ListDominantLanguageDetectionJobs' {Maybe Natural
Maybe Text
Maybe DominantLanguageDetectionJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe DominantLanguageDetectionJobFilter
$sel:nextToken:ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs -> Maybe Text
$sel:maxResults:ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs -> Maybe Natural
$sel:filter':ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs
-> Maybe DominantLanguageDetectionJobFilter
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe DominantLanguageDetectionJobFilter
filter'
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
maxResults
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
instance
Data.ToHeaders
ListDominantLanguageDetectionJobs
where
toHeaders :: ListDominantLanguageDetectionJobs -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"X-Amz-Target"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"Comprehend_20171127.ListDominantLanguageDetectionJobs" ::
Prelude.ByteString
),
HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance
Data.ToJSON
ListDominantLanguageDetectionJobs
where
toJSON :: ListDominantLanguageDetectionJobs -> Value
toJSON ListDominantLanguageDetectionJobs' {Maybe Natural
Maybe Text
Maybe DominantLanguageDetectionJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe DominantLanguageDetectionJobFilter
$sel:nextToken:ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs -> Maybe Text
$sel:maxResults:ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs -> Maybe Natural
$sel:filter':ListDominantLanguageDetectionJobs' :: ListDominantLanguageDetectionJobs
-> Maybe DominantLanguageDetectionJobFilter
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"Filter" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe DominantLanguageDetectionJobFilter
filter',
(Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults,
(Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken
]
)
instance
Data.ToPath
ListDominantLanguageDetectionJobs
where
toPath :: ListDominantLanguageDetectionJobs -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
ListDominantLanguageDetectionJobs
where
toQuery :: ListDominantLanguageDetectionJobs -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListDominantLanguageDetectionJobsResponse = ListDominantLanguageDetectionJobsResponse'
{
ListDominantLanguageDetectionJobsResponse
-> Maybe [DominantLanguageDetectionJobProperties]
dominantLanguageDetectionJobPropertiesList :: Prelude.Maybe [DominantLanguageDetectionJobProperties],
ListDominantLanguageDetectionJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDominantLanguageDetectionJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListDominantLanguageDetectionJobsResponse
-> ListDominantLanguageDetectionJobsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDominantLanguageDetectionJobsResponse
-> ListDominantLanguageDetectionJobsResponse -> Bool
$c/= :: ListDominantLanguageDetectionJobsResponse
-> ListDominantLanguageDetectionJobsResponse -> Bool
== :: ListDominantLanguageDetectionJobsResponse
-> ListDominantLanguageDetectionJobsResponse -> Bool
$c== :: ListDominantLanguageDetectionJobsResponse
-> ListDominantLanguageDetectionJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListDominantLanguageDetectionJobsResponse]
ReadPrec ListDominantLanguageDetectionJobsResponse
Int -> ReadS ListDominantLanguageDetectionJobsResponse
ReadS [ListDominantLanguageDetectionJobsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDominantLanguageDetectionJobsResponse]
$creadListPrec :: ReadPrec [ListDominantLanguageDetectionJobsResponse]
readPrec :: ReadPrec ListDominantLanguageDetectionJobsResponse
$creadPrec :: ReadPrec ListDominantLanguageDetectionJobsResponse
readList :: ReadS [ListDominantLanguageDetectionJobsResponse]
$creadList :: ReadS [ListDominantLanguageDetectionJobsResponse]
readsPrec :: Int -> ReadS ListDominantLanguageDetectionJobsResponse
$creadsPrec :: Int -> ReadS ListDominantLanguageDetectionJobsResponse
Prelude.Read, Int -> ListDominantLanguageDetectionJobsResponse -> ShowS
[ListDominantLanguageDetectionJobsResponse] -> ShowS
ListDominantLanguageDetectionJobsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDominantLanguageDetectionJobsResponse] -> ShowS
$cshowList :: [ListDominantLanguageDetectionJobsResponse] -> ShowS
show :: ListDominantLanguageDetectionJobsResponse -> String
$cshow :: ListDominantLanguageDetectionJobsResponse -> String
showsPrec :: Int -> ListDominantLanguageDetectionJobsResponse -> ShowS
$cshowsPrec :: Int -> ListDominantLanguageDetectionJobsResponse -> ShowS
Prelude.Show, forall x.
Rep ListDominantLanguageDetectionJobsResponse x
-> ListDominantLanguageDetectionJobsResponse
forall x.
ListDominantLanguageDetectionJobsResponse
-> Rep ListDominantLanguageDetectionJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDominantLanguageDetectionJobsResponse x
-> ListDominantLanguageDetectionJobsResponse
$cfrom :: forall x.
ListDominantLanguageDetectionJobsResponse
-> Rep ListDominantLanguageDetectionJobsResponse x
Prelude.Generic)
newListDominantLanguageDetectionJobsResponse ::
Prelude.Int ->
ListDominantLanguageDetectionJobsResponse
newListDominantLanguageDetectionJobsResponse :: Int -> ListDominantLanguageDetectionJobsResponse
newListDominantLanguageDetectionJobsResponse
Int
pHttpStatus_ =
ListDominantLanguageDetectionJobsResponse'
{ $sel:dominantLanguageDetectionJobPropertiesList:ListDominantLanguageDetectionJobsResponse' :: Maybe [DominantLanguageDetectionJobProperties]
dominantLanguageDetectionJobPropertiesList =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListDominantLanguageDetectionJobsResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListDominantLanguageDetectionJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listDominantLanguageDetectionJobsResponse_dominantLanguageDetectionJobPropertiesList :: Lens.Lens' ListDominantLanguageDetectionJobsResponse (Prelude.Maybe [DominantLanguageDetectionJobProperties])
listDominantLanguageDetectionJobsResponse_dominantLanguageDetectionJobPropertiesList :: Lens'
ListDominantLanguageDetectionJobsResponse
(Maybe [DominantLanguageDetectionJobProperties])
listDominantLanguageDetectionJobsResponse_dominantLanguageDetectionJobPropertiesList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDominantLanguageDetectionJobsResponse' {Maybe [DominantLanguageDetectionJobProperties]
dominantLanguageDetectionJobPropertiesList :: Maybe [DominantLanguageDetectionJobProperties]
$sel:dominantLanguageDetectionJobPropertiesList:ListDominantLanguageDetectionJobsResponse' :: ListDominantLanguageDetectionJobsResponse
-> Maybe [DominantLanguageDetectionJobProperties]
dominantLanguageDetectionJobPropertiesList} -> Maybe [DominantLanguageDetectionJobProperties]
dominantLanguageDetectionJobPropertiesList) (\s :: ListDominantLanguageDetectionJobsResponse
s@ListDominantLanguageDetectionJobsResponse' {} Maybe [DominantLanguageDetectionJobProperties]
a -> ListDominantLanguageDetectionJobsResponse
s {$sel:dominantLanguageDetectionJobPropertiesList:ListDominantLanguageDetectionJobsResponse' :: Maybe [DominantLanguageDetectionJobProperties]
dominantLanguageDetectionJobPropertiesList = Maybe [DominantLanguageDetectionJobProperties]
a} :: ListDominantLanguageDetectionJobsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listDominantLanguageDetectionJobsResponse_nextToken :: Lens.Lens' ListDominantLanguageDetectionJobsResponse (Prelude.Maybe Prelude.Text)
listDominantLanguageDetectionJobsResponse_nextToken :: Lens' ListDominantLanguageDetectionJobsResponse (Maybe Text)
listDominantLanguageDetectionJobsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDominantLanguageDetectionJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDominantLanguageDetectionJobsResponse' :: ListDominantLanguageDetectionJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDominantLanguageDetectionJobsResponse
s@ListDominantLanguageDetectionJobsResponse' {} Maybe Text
a -> ListDominantLanguageDetectionJobsResponse
s {$sel:nextToken:ListDominantLanguageDetectionJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDominantLanguageDetectionJobsResponse)
listDominantLanguageDetectionJobsResponse_httpStatus :: Lens.Lens' ListDominantLanguageDetectionJobsResponse Prelude.Int
listDominantLanguageDetectionJobsResponse_httpStatus :: Lens' ListDominantLanguageDetectionJobsResponse Int
listDominantLanguageDetectionJobsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDominantLanguageDetectionJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListDominantLanguageDetectionJobsResponse' :: ListDominantLanguageDetectionJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListDominantLanguageDetectionJobsResponse
s@ListDominantLanguageDetectionJobsResponse' {} Int
a -> ListDominantLanguageDetectionJobsResponse
s {$sel:httpStatus:ListDominantLanguageDetectionJobsResponse' :: Int
httpStatus = Int
a} :: ListDominantLanguageDetectionJobsResponse)
instance
Prelude.NFData
ListDominantLanguageDetectionJobsResponse
where
rnf :: ListDominantLanguageDetectionJobsResponse -> ()
rnf ListDominantLanguageDetectionJobsResponse' {Int
Maybe [DominantLanguageDetectionJobProperties]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
dominantLanguageDetectionJobPropertiesList :: Maybe [DominantLanguageDetectionJobProperties]
$sel:httpStatus:ListDominantLanguageDetectionJobsResponse' :: ListDominantLanguageDetectionJobsResponse -> Int
$sel:nextToken:ListDominantLanguageDetectionJobsResponse' :: ListDominantLanguageDetectionJobsResponse -> Maybe Text
$sel:dominantLanguageDetectionJobPropertiesList:ListDominantLanguageDetectionJobsResponse' :: ListDominantLanguageDetectionJobsResponse
-> Maybe [DominantLanguageDetectionJobProperties]
..} =
forall a. NFData a => a -> ()
Prelude.rnf
Maybe [DominantLanguageDetectionJobProperties]
dominantLanguageDetectionJobPropertiesList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus