{-# 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.ListSentimentDetectionJobs
(
ListSentimentDetectionJobs (..),
newListSentimentDetectionJobs,
listSentimentDetectionJobs_filter,
listSentimentDetectionJobs_maxResults,
listSentimentDetectionJobs_nextToken,
ListSentimentDetectionJobsResponse (..),
newListSentimentDetectionJobsResponse,
listSentimentDetectionJobsResponse_nextToken,
listSentimentDetectionJobsResponse_sentimentDetectionJobPropertiesList,
listSentimentDetectionJobsResponse_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 ListSentimentDetectionJobs = ListSentimentDetectionJobs'
{
ListSentimentDetectionJobs -> Maybe SentimentDetectionJobFilter
filter' :: Prelude.Maybe SentimentDetectionJobFilter,
ListSentimentDetectionJobs -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListSentimentDetectionJobs -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
}
deriving (ListSentimentDetectionJobs -> ListSentimentDetectionJobs -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSentimentDetectionJobs -> ListSentimentDetectionJobs -> Bool
$c/= :: ListSentimentDetectionJobs -> ListSentimentDetectionJobs -> Bool
== :: ListSentimentDetectionJobs -> ListSentimentDetectionJobs -> Bool
$c== :: ListSentimentDetectionJobs -> ListSentimentDetectionJobs -> Bool
Prelude.Eq, ReadPrec [ListSentimentDetectionJobs]
ReadPrec ListSentimentDetectionJobs
Int -> ReadS ListSentimentDetectionJobs
ReadS [ListSentimentDetectionJobs]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSentimentDetectionJobs]
$creadListPrec :: ReadPrec [ListSentimentDetectionJobs]
readPrec :: ReadPrec ListSentimentDetectionJobs
$creadPrec :: ReadPrec ListSentimentDetectionJobs
readList :: ReadS [ListSentimentDetectionJobs]
$creadList :: ReadS [ListSentimentDetectionJobs]
readsPrec :: Int -> ReadS ListSentimentDetectionJobs
$creadsPrec :: Int -> ReadS ListSentimentDetectionJobs
Prelude.Read, Int -> ListSentimentDetectionJobs -> ShowS
[ListSentimentDetectionJobs] -> ShowS
ListSentimentDetectionJobs -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSentimentDetectionJobs] -> ShowS
$cshowList :: [ListSentimentDetectionJobs] -> ShowS
show :: ListSentimentDetectionJobs -> String
$cshow :: ListSentimentDetectionJobs -> String
showsPrec :: Int -> ListSentimentDetectionJobs -> ShowS
$cshowsPrec :: Int -> ListSentimentDetectionJobs -> ShowS
Prelude.Show, forall x.
Rep ListSentimentDetectionJobs x -> ListSentimentDetectionJobs
forall x.
ListSentimentDetectionJobs -> Rep ListSentimentDetectionJobs x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSentimentDetectionJobs x -> ListSentimentDetectionJobs
$cfrom :: forall x.
ListSentimentDetectionJobs -> Rep ListSentimentDetectionJobs x
Prelude.Generic)
newListSentimentDetectionJobs ::
ListSentimentDetectionJobs
newListSentimentDetectionJobs :: ListSentimentDetectionJobs
newListSentimentDetectionJobs =
ListSentimentDetectionJobs'
{ $sel:filter':ListSentimentDetectionJobs' :: Maybe SentimentDetectionJobFilter
filter' =
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListSentimentDetectionJobs' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListSentimentDetectionJobs' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
}
listSentimentDetectionJobs_filter :: Lens.Lens' ListSentimentDetectionJobs (Prelude.Maybe SentimentDetectionJobFilter)
listSentimentDetectionJobs_filter :: Lens'
ListSentimentDetectionJobs (Maybe SentimentDetectionJobFilter)
listSentimentDetectionJobs_filter = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSentimentDetectionJobs' {Maybe SentimentDetectionJobFilter
filter' :: Maybe SentimentDetectionJobFilter
$sel:filter':ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe SentimentDetectionJobFilter
filter'} -> Maybe SentimentDetectionJobFilter
filter') (\s :: ListSentimentDetectionJobs
s@ListSentimentDetectionJobs' {} Maybe SentimentDetectionJobFilter
a -> ListSentimentDetectionJobs
s {$sel:filter':ListSentimentDetectionJobs' :: Maybe SentimentDetectionJobFilter
filter' = Maybe SentimentDetectionJobFilter
a} :: ListSentimentDetectionJobs)
listSentimentDetectionJobs_maxResults :: Lens.Lens' ListSentimentDetectionJobs (Prelude.Maybe Prelude.Natural)
listSentimentDetectionJobs_maxResults :: Lens' ListSentimentDetectionJobs (Maybe Natural)
listSentimentDetectionJobs_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSentimentDetectionJobs' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListSentimentDetectionJobs
s@ListSentimentDetectionJobs' {} Maybe Natural
a -> ListSentimentDetectionJobs
s {$sel:maxResults:ListSentimentDetectionJobs' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListSentimentDetectionJobs)
listSentimentDetectionJobs_nextToken :: Lens.Lens' ListSentimentDetectionJobs (Prelude.Maybe Prelude.Text)
listSentimentDetectionJobs_nextToken :: Lens' ListSentimentDetectionJobs (Maybe Text)
listSentimentDetectionJobs_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSentimentDetectionJobs' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSentimentDetectionJobs
s@ListSentimentDetectionJobs' {} Maybe Text
a -> ListSentimentDetectionJobs
s {$sel:nextToken:ListSentimentDetectionJobs' :: Maybe Text
nextToken = Maybe Text
a} :: ListSentimentDetectionJobs)
instance Core.AWSPager ListSentimentDetectionJobs where
page :: ListSentimentDetectionJobs
-> AWSResponse ListSentimentDetectionJobs
-> Maybe ListSentimentDetectionJobs
page ListSentimentDetectionJobs
rq AWSResponse ListSentimentDetectionJobs
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListSentimentDetectionJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSentimentDetectionJobsResponse (Maybe Text)
listSentimentDetectionJobsResponse_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 ListSentimentDetectionJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
ListSentimentDetectionJobsResponse
(Maybe [SentimentDetectionJobProperties])
listSentimentDetectionJobsResponse_sentimentDetectionJobPropertiesList
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.$ ListSentimentDetectionJobs
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListSentimentDetectionJobs (Maybe Text)
listSentimentDetectionJobs_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListSentimentDetectionJobs
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListSentimentDetectionJobsResponse (Maybe Text)
listSentimentDetectionJobsResponse_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 ListSentimentDetectionJobs where
type
AWSResponse ListSentimentDetectionJobs =
ListSentimentDetectionJobsResponse
request :: (Service -> Service)
-> ListSentimentDetectionJobs -> Request ListSentimentDetectionJobs
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 ListSentimentDetectionJobs
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListSentimentDetectionJobs)))
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 Text
-> Maybe [SentimentDetectionJobProperties]
-> Int
-> ListSentimentDetectionJobsResponse
ListSentimentDetectionJobsResponse'
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
"NextToken")
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
"SentimentDetectionJobPropertiesList"
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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable ListSentimentDetectionJobs where
hashWithSalt :: Int -> ListSentimentDetectionJobs -> Int
hashWithSalt Int
_salt ListSentimentDetectionJobs' {Maybe Natural
Maybe Text
Maybe SentimentDetectionJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe SentimentDetectionJobFilter
$sel:nextToken:ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe Text
$sel:maxResults:ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe Natural
$sel:filter':ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe SentimentDetectionJobFilter
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe SentimentDetectionJobFilter
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 ListSentimentDetectionJobs where
rnf :: ListSentimentDetectionJobs -> ()
rnf ListSentimentDetectionJobs' {Maybe Natural
Maybe Text
Maybe SentimentDetectionJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe SentimentDetectionJobFilter
$sel:nextToken:ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe Text
$sel:maxResults:ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe Natural
$sel:filter':ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe SentimentDetectionJobFilter
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe SentimentDetectionJobFilter
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 ListSentimentDetectionJobs where
toHeaders :: ListSentimentDetectionJobs -> 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.ListSentimentDetectionJobs" ::
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 ListSentimentDetectionJobs where
toJSON :: ListSentimentDetectionJobs -> Value
toJSON ListSentimentDetectionJobs' {Maybe Natural
Maybe Text
Maybe SentimentDetectionJobFilter
nextToken :: Maybe Text
maxResults :: Maybe Natural
filter' :: Maybe SentimentDetectionJobFilter
$sel:nextToken:ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe Text
$sel:maxResults:ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe Natural
$sel:filter':ListSentimentDetectionJobs' :: ListSentimentDetectionJobs -> Maybe SentimentDetectionJobFilter
..} =
[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 SentimentDetectionJobFilter
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 ListSentimentDetectionJobs where
toPath :: ListSentimentDetectionJobs -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance Data.ToQuery ListSentimentDetectionJobs where
toQuery :: ListSentimentDetectionJobs -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListSentimentDetectionJobsResponse = ListSentimentDetectionJobsResponse'
{
ListSentimentDetectionJobsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListSentimentDetectionJobsResponse
-> Maybe [SentimentDetectionJobProperties]
sentimentDetectionJobPropertiesList :: Prelude.Maybe [SentimentDetectionJobProperties],
ListSentimentDetectionJobsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListSentimentDetectionJobsResponse
-> ListSentimentDetectionJobsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListSentimentDetectionJobsResponse
-> ListSentimentDetectionJobsResponse -> Bool
$c/= :: ListSentimentDetectionJobsResponse
-> ListSentimentDetectionJobsResponse -> Bool
== :: ListSentimentDetectionJobsResponse
-> ListSentimentDetectionJobsResponse -> Bool
$c== :: ListSentimentDetectionJobsResponse
-> ListSentimentDetectionJobsResponse -> Bool
Prelude.Eq, ReadPrec [ListSentimentDetectionJobsResponse]
ReadPrec ListSentimentDetectionJobsResponse
Int -> ReadS ListSentimentDetectionJobsResponse
ReadS [ListSentimentDetectionJobsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListSentimentDetectionJobsResponse]
$creadListPrec :: ReadPrec [ListSentimentDetectionJobsResponse]
readPrec :: ReadPrec ListSentimentDetectionJobsResponse
$creadPrec :: ReadPrec ListSentimentDetectionJobsResponse
readList :: ReadS [ListSentimentDetectionJobsResponse]
$creadList :: ReadS [ListSentimentDetectionJobsResponse]
readsPrec :: Int -> ReadS ListSentimentDetectionJobsResponse
$creadsPrec :: Int -> ReadS ListSentimentDetectionJobsResponse
Prelude.Read, Int -> ListSentimentDetectionJobsResponse -> ShowS
[ListSentimentDetectionJobsResponse] -> ShowS
ListSentimentDetectionJobsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListSentimentDetectionJobsResponse] -> ShowS
$cshowList :: [ListSentimentDetectionJobsResponse] -> ShowS
show :: ListSentimentDetectionJobsResponse -> String
$cshow :: ListSentimentDetectionJobsResponse -> String
showsPrec :: Int -> ListSentimentDetectionJobsResponse -> ShowS
$cshowsPrec :: Int -> ListSentimentDetectionJobsResponse -> ShowS
Prelude.Show, forall x.
Rep ListSentimentDetectionJobsResponse x
-> ListSentimentDetectionJobsResponse
forall x.
ListSentimentDetectionJobsResponse
-> Rep ListSentimentDetectionJobsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListSentimentDetectionJobsResponse x
-> ListSentimentDetectionJobsResponse
$cfrom :: forall x.
ListSentimentDetectionJobsResponse
-> Rep ListSentimentDetectionJobsResponse x
Prelude.Generic)
newListSentimentDetectionJobsResponse ::
Prelude.Int ->
ListSentimentDetectionJobsResponse
newListSentimentDetectionJobsResponse :: Int -> ListSentimentDetectionJobsResponse
newListSentimentDetectionJobsResponse Int
pHttpStatus_ =
ListSentimentDetectionJobsResponse'
{ $sel:nextToken:ListSentimentDetectionJobsResponse' :: Maybe Text
nextToken =
forall a. Maybe a
Prelude.Nothing,
$sel:sentimentDetectionJobPropertiesList:ListSentimentDetectionJobsResponse' :: Maybe [SentimentDetectionJobProperties]
sentimentDetectionJobPropertiesList =
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListSentimentDetectionJobsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listSentimentDetectionJobsResponse_nextToken :: Lens.Lens' ListSentimentDetectionJobsResponse (Prelude.Maybe Prelude.Text)
listSentimentDetectionJobsResponse_nextToken :: Lens' ListSentimentDetectionJobsResponse (Maybe Text)
listSentimentDetectionJobsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSentimentDetectionJobsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListSentimentDetectionJobsResponse' :: ListSentimentDetectionJobsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListSentimentDetectionJobsResponse
s@ListSentimentDetectionJobsResponse' {} Maybe Text
a -> ListSentimentDetectionJobsResponse
s {$sel:nextToken:ListSentimentDetectionJobsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListSentimentDetectionJobsResponse)
listSentimentDetectionJobsResponse_sentimentDetectionJobPropertiesList :: Lens.Lens' ListSentimentDetectionJobsResponse (Prelude.Maybe [SentimentDetectionJobProperties])
listSentimentDetectionJobsResponse_sentimentDetectionJobPropertiesList :: Lens'
ListSentimentDetectionJobsResponse
(Maybe [SentimentDetectionJobProperties])
listSentimentDetectionJobsResponse_sentimentDetectionJobPropertiesList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSentimentDetectionJobsResponse' {Maybe [SentimentDetectionJobProperties]
sentimentDetectionJobPropertiesList :: Maybe [SentimentDetectionJobProperties]
$sel:sentimentDetectionJobPropertiesList:ListSentimentDetectionJobsResponse' :: ListSentimentDetectionJobsResponse
-> Maybe [SentimentDetectionJobProperties]
sentimentDetectionJobPropertiesList} -> Maybe [SentimentDetectionJobProperties]
sentimentDetectionJobPropertiesList) (\s :: ListSentimentDetectionJobsResponse
s@ListSentimentDetectionJobsResponse' {} Maybe [SentimentDetectionJobProperties]
a -> ListSentimentDetectionJobsResponse
s {$sel:sentimentDetectionJobPropertiesList:ListSentimentDetectionJobsResponse' :: Maybe [SentimentDetectionJobProperties]
sentimentDetectionJobPropertiesList = Maybe [SentimentDetectionJobProperties]
a} :: ListSentimentDetectionJobsResponse) 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
listSentimentDetectionJobsResponse_httpStatus :: Lens.Lens' ListSentimentDetectionJobsResponse Prelude.Int
listSentimentDetectionJobsResponse_httpStatus :: Lens' ListSentimentDetectionJobsResponse Int
listSentimentDetectionJobsResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListSentimentDetectionJobsResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListSentimentDetectionJobsResponse' :: ListSentimentDetectionJobsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListSentimentDetectionJobsResponse
s@ListSentimentDetectionJobsResponse' {} Int
a -> ListSentimentDetectionJobsResponse
s {$sel:httpStatus:ListSentimentDetectionJobsResponse' :: Int
httpStatus = Int
a} :: ListSentimentDetectionJobsResponse)
instance
Prelude.NFData
ListSentimentDetectionJobsResponse
where
rnf :: ListSentimentDetectionJobsResponse -> ()
rnf ListSentimentDetectionJobsResponse' {Int
Maybe [SentimentDetectionJobProperties]
Maybe Text
httpStatus :: Int
sentimentDetectionJobPropertiesList :: Maybe [SentimentDetectionJobProperties]
nextToken :: Maybe Text
$sel:httpStatus:ListSentimentDetectionJobsResponse' :: ListSentimentDetectionJobsResponse -> Int
$sel:sentimentDetectionJobPropertiesList:ListSentimentDetectionJobsResponse' :: ListSentimentDetectionJobsResponse
-> Maybe [SentimentDetectionJobProperties]
$sel:nextToken:ListSentimentDetectionJobsResponse' :: ListSentimentDetectionJobsResponse -> Maybe Text
..} =
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 Maybe [SentimentDetectionJobProperties]
sentimentDetectionJobPropertiesList
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus