{-# 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.LexV2Models.ListAggregatedUtterances
(
ListAggregatedUtterances (..),
newListAggregatedUtterances,
listAggregatedUtterances_botAliasId,
listAggregatedUtterances_botVersion,
listAggregatedUtterances_filters,
listAggregatedUtterances_maxResults,
listAggregatedUtterances_nextToken,
listAggregatedUtterances_sortBy,
listAggregatedUtterances_botId,
listAggregatedUtterances_localeId,
listAggregatedUtterances_aggregationDuration,
ListAggregatedUtterancesResponse (..),
newListAggregatedUtterancesResponse,
listAggregatedUtterancesResponse_aggregatedUtterancesSummaries,
listAggregatedUtterancesResponse_aggregationDuration,
listAggregatedUtterancesResponse_aggregationLastRefreshedDateTime,
listAggregatedUtterancesResponse_aggregationWindowEndTime,
listAggregatedUtterancesResponse_aggregationWindowStartTime,
listAggregatedUtterancesResponse_botAliasId,
listAggregatedUtterancesResponse_botId,
listAggregatedUtterancesResponse_botVersion,
listAggregatedUtterancesResponse_localeId,
listAggregatedUtterancesResponse_nextToken,
listAggregatedUtterancesResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import qualified Amazonka.Data as Data
import Amazonka.LexV2Models.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data ListAggregatedUtterances = ListAggregatedUtterances'
{
ListAggregatedUtterances -> Maybe Text
botAliasId :: Prelude.Maybe Prelude.Text,
ListAggregatedUtterances -> Maybe Text
botVersion :: Prelude.Maybe Prelude.Text,
ListAggregatedUtterances
-> Maybe (NonEmpty AggregatedUtterancesFilter)
filters :: Prelude.Maybe (Prelude.NonEmpty AggregatedUtterancesFilter),
ListAggregatedUtterances -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListAggregatedUtterances -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAggregatedUtterances -> Maybe AggregatedUtterancesSortBy
sortBy :: Prelude.Maybe AggregatedUtterancesSortBy,
ListAggregatedUtterances -> Text
botId :: Prelude.Text,
ListAggregatedUtterances -> Text
localeId :: Prelude.Text,
ListAggregatedUtterances -> UtteranceAggregationDuration
aggregationDuration :: UtteranceAggregationDuration
}
deriving (ListAggregatedUtterances -> ListAggregatedUtterances -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAggregatedUtterances -> ListAggregatedUtterances -> Bool
$c/= :: ListAggregatedUtterances -> ListAggregatedUtterances -> Bool
== :: ListAggregatedUtterances -> ListAggregatedUtterances -> Bool
$c== :: ListAggregatedUtterances -> ListAggregatedUtterances -> Bool
Prelude.Eq, ReadPrec [ListAggregatedUtterances]
ReadPrec ListAggregatedUtterances
Int -> ReadS ListAggregatedUtterances
ReadS [ListAggregatedUtterances]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAggregatedUtterances]
$creadListPrec :: ReadPrec [ListAggregatedUtterances]
readPrec :: ReadPrec ListAggregatedUtterances
$creadPrec :: ReadPrec ListAggregatedUtterances
readList :: ReadS [ListAggregatedUtterances]
$creadList :: ReadS [ListAggregatedUtterances]
readsPrec :: Int -> ReadS ListAggregatedUtterances
$creadsPrec :: Int -> ReadS ListAggregatedUtterances
Prelude.Read, Int -> ListAggregatedUtterances -> ShowS
[ListAggregatedUtterances] -> ShowS
ListAggregatedUtterances -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAggregatedUtterances] -> ShowS
$cshowList :: [ListAggregatedUtterances] -> ShowS
show :: ListAggregatedUtterances -> String
$cshow :: ListAggregatedUtterances -> String
showsPrec :: Int -> ListAggregatedUtterances -> ShowS
$cshowsPrec :: Int -> ListAggregatedUtterances -> ShowS
Prelude.Show, forall x.
Rep ListAggregatedUtterances x -> ListAggregatedUtterances
forall x.
ListAggregatedUtterances -> Rep ListAggregatedUtterances x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAggregatedUtterances x -> ListAggregatedUtterances
$cfrom :: forall x.
ListAggregatedUtterances -> Rep ListAggregatedUtterances x
Prelude.Generic)
newListAggregatedUtterances ::
Prelude.Text ->
Prelude.Text ->
UtteranceAggregationDuration ->
ListAggregatedUtterances
newListAggregatedUtterances :: Text
-> Text -> UtteranceAggregationDuration -> ListAggregatedUtterances
newListAggregatedUtterances
Text
pBotId_
Text
pLocaleId_
UtteranceAggregationDuration
pAggregationDuration_ =
ListAggregatedUtterances'
{ $sel:botAliasId:ListAggregatedUtterances' :: Maybe Text
botAliasId =
forall a. Maybe a
Prelude.Nothing,
$sel:botVersion:ListAggregatedUtterances' :: Maybe Text
botVersion = forall a. Maybe a
Prelude.Nothing,
$sel:filters:ListAggregatedUtterances' :: Maybe (NonEmpty AggregatedUtterancesFilter)
filters = forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListAggregatedUtterances' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAggregatedUtterances' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:sortBy:ListAggregatedUtterances' :: Maybe AggregatedUtterancesSortBy
sortBy = forall a. Maybe a
Prelude.Nothing,
$sel:botId:ListAggregatedUtterances' :: Text
botId = Text
pBotId_,
$sel:localeId:ListAggregatedUtterances' :: Text
localeId = Text
pLocaleId_,
$sel:aggregationDuration:ListAggregatedUtterances' :: UtteranceAggregationDuration
aggregationDuration = UtteranceAggregationDuration
pAggregationDuration_
}
listAggregatedUtterances_botAliasId :: Lens.Lens' ListAggregatedUtterances (Prelude.Maybe Prelude.Text)
listAggregatedUtterances_botAliasId :: Lens' ListAggregatedUtterances (Maybe Text)
listAggregatedUtterances_botAliasId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterances' {Maybe Text
botAliasId :: Maybe Text
$sel:botAliasId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
botAliasId} -> Maybe Text
botAliasId) (\s :: ListAggregatedUtterances
s@ListAggregatedUtterances' {} Maybe Text
a -> ListAggregatedUtterances
s {$sel:botAliasId:ListAggregatedUtterances' :: Maybe Text
botAliasId = Maybe Text
a} :: ListAggregatedUtterances)
listAggregatedUtterances_botVersion :: Lens.Lens' ListAggregatedUtterances (Prelude.Maybe Prelude.Text)
listAggregatedUtterances_botVersion :: Lens' ListAggregatedUtterances (Maybe Text)
listAggregatedUtterances_botVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterances' {Maybe Text
botVersion :: Maybe Text
$sel:botVersion:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
botVersion} -> Maybe Text
botVersion) (\s :: ListAggregatedUtterances
s@ListAggregatedUtterances' {} Maybe Text
a -> ListAggregatedUtterances
s {$sel:botVersion:ListAggregatedUtterances' :: Maybe Text
botVersion = Maybe Text
a} :: ListAggregatedUtterances)
listAggregatedUtterances_filters :: Lens.Lens' ListAggregatedUtterances (Prelude.Maybe (Prelude.NonEmpty AggregatedUtterancesFilter))
listAggregatedUtterances_filters :: Lens'
ListAggregatedUtterances
(Maybe (NonEmpty AggregatedUtterancesFilter))
listAggregatedUtterances_filters = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterances' {Maybe (NonEmpty AggregatedUtterancesFilter)
filters :: Maybe (NonEmpty AggregatedUtterancesFilter)
$sel:filters:ListAggregatedUtterances' :: ListAggregatedUtterances
-> Maybe (NonEmpty AggregatedUtterancesFilter)
filters} -> Maybe (NonEmpty AggregatedUtterancesFilter)
filters) (\s :: ListAggregatedUtterances
s@ListAggregatedUtterances' {} Maybe (NonEmpty AggregatedUtterancesFilter)
a -> ListAggregatedUtterances
s {$sel:filters:ListAggregatedUtterances' :: Maybe (NonEmpty AggregatedUtterancesFilter)
filters = Maybe (NonEmpty AggregatedUtterancesFilter)
a} :: ListAggregatedUtterances) 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
listAggregatedUtterances_maxResults :: Lens.Lens' ListAggregatedUtterances (Prelude.Maybe Prelude.Natural)
listAggregatedUtterances_maxResults :: Lens' ListAggregatedUtterances (Maybe Natural)
listAggregatedUtterances_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterances' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListAggregatedUtterances
s@ListAggregatedUtterances' {} Maybe Natural
a -> ListAggregatedUtterances
s {$sel:maxResults:ListAggregatedUtterances' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListAggregatedUtterances)
listAggregatedUtterances_nextToken :: Lens.Lens' ListAggregatedUtterances (Prelude.Maybe Prelude.Text)
listAggregatedUtterances_nextToken :: Lens' ListAggregatedUtterances (Maybe Text)
listAggregatedUtterances_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterances' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAggregatedUtterances
s@ListAggregatedUtterances' {} Maybe Text
a -> ListAggregatedUtterances
s {$sel:nextToken:ListAggregatedUtterances' :: Maybe Text
nextToken = Maybe Text
a} :: ListAggregatedUtterances)
listAggregatedUtterances_sortBy :: Lens.Lens' ListAggregatedUtterances (Prelude.Maybe AggregatedUtterancesSortBy)
listAggregatedUtterances_sortBy :: Lens' ListAggregatedUtterances (Maybe AggregatedUtterancesSortBy)
listAggregatedUtterances_sortBy = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterances' {Maybe AggregatedUtterancesSortBy
sortBy :: Maybe AggregatedUtterancesSortBy
$sel:sortBy:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe AggregatedUtterancesSortBy
sortBy} -> Maybe AggregatedUtterancesSortBy
sortBy) (\s :: ListAggregatedUtterances
s@ListAggregatedUtterances' {} Maybe AggregatedUtterancesSortBy
a -> ListAggregatedUtterances
s {$sel:sortBy:ListAggregatedUtterances' :: Maybe AggregatedUtterancesSortBy
sortBy = Maybe AggregatedUtterancesSortBy
a} :: ListAggregatedUtterances)
listAggregatedUtterances_botId :: Lens.Lens' ListAggregatedUtterances Prelude.Text
listAggregatedUtterances_botId :: Lens' ListAggregatedUtterances Text
listAggregatedUtterances_botId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterances' {Text
botId :: Text
$sel:botId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Text
botId} -> Text
botId) (\s :: ListAggregatedUtterances
s@ListAggregatedUtterances' {} Text
a -> ListAggregatedUtterances
s {$sel:botId:ListAggregatedUtterances' :: Text
botId = Text
a} :: ListAggregatedUtterances)
listAggregatedUtterances_localeId :: Lens.Lens' ListAggregatedUtterances Prelude.Text
listAggregatedUtterances_localeId :: Lens' ListAggregatedUtterances Text
listAggregatedUtterances_localeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterances' {Text
localeId :: Text
$sel:localeId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Text
localeId} -> Text
localeId) (\s :: ListAggregatedUtterances
s@ListAggregatedUtterances' {} Text
a -> ListAggregatedUtterances
s {$sel:localeId:ListAggregatedUtterances' :: Text
localeId = Text
a} :: ListAggregatedUtterances)
listAggregatedUtterances_aggregationDuration :: Lens.Lens' ListAggregatedUtterances UtteranceAggregationDuration
listAggregatedUtterances_aggregationDuration :: Lens' ListAggregatedUtterances UtteranceAggregationDuration
listAggregatedUtterances_aggregationDuration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterances' {UtteranceAggregationDuration
aggregationDuration :: UtteranceAggregationDuration
$sel:aggregationDuration:ListAggregatedUtterances' :: ListAggregatedUtterances -> UtteranceAggregationDuration
aggregationDuration} -> UtteranceAggregationDuration
aggregationDuration) (\s :: ListAggregatedUtterances
s@ListAggregatedUtterances' {} UtteranceAggregationDuration
a -> ListAggregatedUtterances
s {$sel:aggregationDuration:ListAggregatedUtterances' :: UtteranceAggregationDuration
aggregationDuration = UtteranceAggregationDuration
a} :: ListAggregatedUtterances)
instance Core.AWSRequest ListAggregatedUtterances where
type
AWSResponse ListAggregatedUtterances =
ListAggregatedUtterancesResponse
request :: (Service -> Service)
-> ListAggregatedUtterances -> Request ListAggregatedUtterances
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 ListAggregatedUtterances
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListAggregatedUtterances)))
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 [AggregatedUtterancesSummary]
-> Maybe UtteranceAggregationDuration
-> Maybe POSIX
-> Maybe POSIX
-> Maybe POSIX
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Maybe Text
-> Int
-> ListAggregatedUtterancesResponse
ListAggregatedUtterancesResponse'
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
"aggregatedUtterancesSummaries"
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
"aggregationDuration")
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
"aggregationLastRefreshedDateTime")
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
"aggregationWindowEndTime")
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
"aggregationWindowStartTime")
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
"botAliasId")
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
"botId")
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
"botVersion")
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
"localeId")
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 ListAggregatedUtterances where
hashWithSalt :: Int -> ListAggregatedUtterances -> Int
hashWithSalt Int
_salt ListAggregatedUtterances' {Maybe Natural
Maybe (NonEmpty AggregatedUtterancesFilter)
Maybe Text
Maybe AggregatedUtterancesSortBy
Text
UtteranceAggregationDuration
aggregationDuration :: UtteranceAggregationDuration
localeId :: Text
botId :: Text
sortBy :: Maybe AggregatedUtterancesSortBy
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty AggregatedUtterancesFilter)
botVersion :: Maybe Text
botAliasId :: Maybe Text
$sel:aggregationDuration:ListAggregatedUtterances' :: ListAggregatedUtterances -> UtteranceAggregationDuration
$sel:localeId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Text
$sel:botId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Text
$sel:sortBy:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe AggregatedUtterancesSortBy
$sel:nextToken:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
$sel:maxResults:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Natural
$sel:filters:ListAggregatedUtterances' :: ListAggregatedUtterances
-> Maybe (NonEmpty AggregatedUtterancesFilter)
$sel:botVersion:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
$sel:botAliasId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
botAliasId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
botVersion
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (NonEmpty AggregatedUtterancesFilter)
filters
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Natural
maxResults
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe AggregatedUtterancesSortBy
sortBy
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
botId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
localeId
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` UtteranceAggregationDuration
aggregationDuration
instance Prelude.NFData ListAggregatedUtterances where
rnf :: ListAggregatedUtterances -> ()
rnf ListAggregatedUtterances' {Maybe Natural
Maybe (NonEmpty AggregatedUtterancesFilter)
Maybe Text
Maybe AggregatedUtterancesSortBy
Text
UtteranceAggregationDuration
aggregationDuration :: UtteranceAggregationDuration
localeId :: Text
botId :: Text
sortBy :: Maybe AggregatedUtterancesSortBy
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty AggregatedUtterancesFilter)
botVersion :: Maybe Text
botAliasId :: Maybe Text
$sel:aggregationDuration:ListAggregatedUtterances' :: ListAggregatedUtterances -> UtteranceAggregationDuration
$sel:localeId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Text
$sel:botId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Text
$sel:sortBy:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe AggregatedUtterancesSortBy
$sel:nextToken:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
$sel:maxResults:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Natural
$sel:filters:ListAggregatedUtterances' :: ListAggregatedUtterances
-> Maybe (NonEmpty AggregatedUtterancesFilter)
$sel:botVersion:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
$sel:botAliasId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botAliasId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (NonEmpty AggregatedUtterancesFilter)
filters
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
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe AggregatedUtterancesSortBy
sortBy
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
botId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
localeId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf UtteranceAggregationDuration
aggregationDuration
instance Data.ToHeaders ListAggregatedUtterances where
toHeaders :: ListAggregatedUtterances -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON ListAggregatedUtterances where
toJSON :: ListAggregatedUtterances -> Value
toJSON ListAggregatedUtterances' {Maybe Natural
Maybe (NonEmpty AggregatedUtterancesFilter)
Maybe Text
Maybe AggregatedUtterancesSortBy
Text
UtteranceAggregationDuration
aggregationDuration :: UtteranceAggregationDuration
localeId :: Text
botId :: Text
sortBy :: Maybe AggregatedUtterancesSortBy
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty AggregatedUtterancesFilter)
botVersion :: Maybe Text
botAliasId :: Maybe Text
$sel:aggregationDuration:ListAggregatedUtterances' :: ListAggregatedUtterances -> UtteranceAggregationDuration
$sel:localeId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Text
$sel:botId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Text
$sel:sortBy:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe AggregatedUtterancesSortBy
$sel:nextToken:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
$sel:maxResults:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Natural
$sel:filters:ListAggregatedUtterances' :: ListAggregatedUtterances
-> Maybe (NonEmpty AggregatedUtterancesFilter)
$sel:botVersion:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
$sel:botAliasId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"botAliasId" 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
botAliasId,
(Key
"botVersion" 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
botVersion,
(Key
"filters" 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 (NonEmpty AggregatedUtterancesFilter)
filters,
(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,
(Key
"sortBy" 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 AggregatedUtterancesSortBy
sortBy,
forall a. a -> Maybe a
Prelude.Just (Key
"localeId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
localeId),
forall a. a -> Maybe a
Prelude.Just
(Key
"aggregationDuration" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= UtteranceAggregationDuration
aggregationDuration)
]
)
instance Data.ToPath ListAggregatedUtterances where
toPath :: ListAggregatedUtterances -> ByteString
toPath ListAggregatedUtterances' {Maybe Natural
Maybe (NonEmpty AggregatedUtterancesFilter)
Maybe Text
Maybe AggregatedUtterancesSortBy
Text
UtteranceAggregationDuration
aggregationDuration :: UtteranceAggregationDuration
localeId :: Text
botId :: Text
sortBy :: Maybe AggregatedUtterancesSortBy
nextToken :: Maybe Text
maxResults :: Maybe Natural
filters :: Maybe (NonEmpty AggregatedUtterancesFilter)
botVersion :: Maybe Text
botAliasId :: Maybe Text
$sel:aggregationDuration:ListAggregatedUtterances' :: ListAggregatedUtterances -> UtteranceAggregationDuration
$sel:localeId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Text
$sel:botId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Text
$sel:sortBy:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe AggregatedUtterancesSortBy
$sel:nextToken:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
$sel:maxResults:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Natural
$sel:filters:ListAggregatedUtterances' :: ListAggregatedUtterances
-> Maybe (NonEmpty AggregatedUtterancesFilter)
$sel:botVersion:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
$sel:botAliasId:ListAggregatedUtterances' :: ListAggregatedUtterances -> Maybe Text
..} =
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/bots/", forall a. ToByteString a => a -> ByteString
Data.toBS Text
botId, ByteString
"/aggregatedutterances/"]
instance Data.ToQuery ListAggregatedUtterances where
toQuery :: ListAggregatedUtterances -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data ListAggregatedUtterancesResponse = ListAggregatedUtterancesResponse'
{
ListAggregatedUtterancesResponse
-> Maybe [AggregatedUtterancesSummary]
aggregatedUtterancesSummaries :: Prelude.Maybe [AggregatedUtterancesSummary],
ListAggregatedUtterancesResponse
-> Maybe UtteranceAggregationDuration
aggregationDuration :: Prelude.Maybe UtteranceAggregationDuration,
ListAggregatedUtterancesResponse -> Maybe POSIX
aggregationLastRefreshedDateTime :: Prelude.Maybe Data.POSIX,
ListAggregatedUtterancesResponse -> Maybe POSIX
aggregationWindowEndTime :: Prelude.Maybe Data.POSIX,
ListAggregatedUtterancesResponse -> Maybe POSIX
aggregationWindowStartTime :: Prelude.Maybe Data.POSIX,
ListAggregatedUtterancesResponse -> Maybe Text
botAliasId :: Prelude.Maybe Prelude.Text,
ListAggregatedUtterancesResponse -> Maybe Text
botId :: Prelude.Maybe Prelude.Text,
ListAggregatedUtterancesResponse -> Maybe Text
botVersion :: Prelude.Maybe Prelude.Text,
ListAggregatedUtterancesResponse -> Maybe Text
localeId :: Prelude.Maybe Prelude.Text,
ListAggregatedUtterancesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListAggregatedUtterancesResponse -> Int
httpStatus :: Prelude.Int
}
deriving (ListAggregatedUtterancesResponse
-> ListAggregatedUtterancesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListAggregatedUtterancesResponse
-> ListAggregatedUtterancesResponse -> Bool
$c/= :: ListAggregatedUtterancesResponse
-> ListAggregatedUtterancesResponse -> Bool
== :: ListAggregatedUtterancesResponse
-> ListAggregatedUtterancesResponse -> Bool
$c== :: ListAggregatedUtterancesResponse
-> ListAggregatedUtterancesResponse -> Bool
Prelude.Eq, ReadPrec [ListAggregatedUtterancesResponse]
ReadPrec ListAggregatedUtterancesResponse
Int -> ReadS ListAggregatedUtterancesResponse
ReadS [ListAggregatedUtterancesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListAggregatedUtterancesResponse]
$creadListPrec :: ReadPrec [ListAggregatedUtterancesResponse]
readPrec :: ReadPrec ListAggregatedUtterancesResponse
$creadPrec :: ReadPrec ListAggregatedUtterancesResponse
readList :: ReadS [ListAggregatedUtterancesResponse]
$creadList :: ReadS [ListAggregatedUtterancesResponse]
readsPrec :: Int -> ReadS ListAggregatedUtterancesResponse
$creadsPrec :: Int -> ReadS ListAggregatedUtterancesResponse
Prelude.Read, Int -> ListAggregatedUtterancesResponse -> ShowS
[ListAggregatedUtterancesResponse] -> ShowS
ListAggregatedUtterancesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListAggregatedUtterancesResponse] -> ShowS
$cshowList :: [ListAggregatedUtterancesResponse] -> ShowS
show :: ListAggregatedUtterancesResponse -> String
$cshow :: ListAggregatedUtterancesResponse -> String
showsPrec :: Int -> ListAggregatedUtterancesResponse -> ShowS
$cshowsPrec :: Int -> ListAggregatedUtterancesResponse -> ShowS
Prelude.Show, forall x.
Rep ListAggregatedUtterancesResponse x
-> ListAggregatedUtterancesResponse
forall x.
ListAggregatedUtterancesResponse
-> Rep ListAggregatedUtterancesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListAggregatedUtterancesResponse x
-> ListAggregatedUtterancesResponse
$cfrom :: forall x.
ListAggregatedUtterancesResponse
-> Rep ListAggregatedUtterancesResponse x
Prelude.Generic)
newListAggregatedUtterancesResponse ::
Prelude.Int ->
ListAggregatedUtterancesResponse
newListAggregatedUtterancesResponse :: Int -> ListAggregatedUtterancesResponse
newListAggregatedUtterancesResponse Int
pHttpStatus_ =
ListAggregatedUtterancesResponse'
{ $sel:aggregatedUtterancesSummaries:ListAggregatedUtterancesResponse' :: Maybe [AggregatedUtterancesSummary]
aggregatedUtterancesSummaries =
forall a. Maybe a
Prelude.Nothing,
$sel:aggregationDuration:ListAggregatedUtterancesResponse' :: Maybe UtteranceAggregationDuration
aggregationDuration = forall a. Maybe a
Prelude.Nothing,
$sel:aggregationLastRefreshedDateTime:ListAggregatedUtterancesResponse' :: Maybe POSIX
aggregationLastRefreshedDateTime =
forall a. Maybe a
Prelude.Nothing,
$sel:aggregationWindowEndTime:ListAggregatedUtterancesResponse' :: Maybe POSIX
aggregationWindowEndTime =
forall a. Maybe a
Prelude.Nothing,
$sel:aggregationWindowStartTime:ListAggregatedUtterancesResponse' :: Maybe POSIX
aggregationWindowStartTime =
forall a. Maybe a
Prelude.Nothing,
$sel:botAliasId:ListAggregatedUtterancesResponse' :: Maybe Text
botAliasId = forall a. Maybe a
Prelude.Nothing,
$sel:botId:ListAggregatedUtterancesResponse' :: Maybe Text
botId = forall a. Maybe a
Prelude.Nothing,
$sel:botVersion:ListAggregatedUtterancesResponse' :: Maybe Text
botVersion = forall a. Maybe a
Prelude.Nothing,
$sel:localeId:ListAggregatedUtterancesResponse' :: Maybe Text
localeId = forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListAggregatedUtterancesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:ListAggregatedUtterancesResponse' :: Int
httpStatus = Int
pHttpStatus_
}
listAggregatedUtterancesResponse_aggregatedUtterancesSummaries :: Lens.Lens' ListAggregatedUtterancesResponse (Prelude.Maybe [AggregatedUtterancesSummary])
listAggregatedUtterancesResponse_aggregatedUtterancesSummaries :: Lens'
ListAggregatedUtterancesResponse
(Maybe [AggregatedUtterancesSummary])
listAggregatedUtterancesResponse_aggregatedUtterancesSummaries = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterancesResponse' {Maybe [AggregatedUtterancesSummary]
aggregatedUtterancesSummaries :: Maybe [AggregatedUtterancesSummary]
$sel:aggregatedUtterancesSummaries:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse
-> Maybe [AggregatedUtterancesSummary]
aggregatedUtterancesSummaries} -> Maybe [AggregatedUtterancesSummary]
aggregatedUtterancesSummaries) (\s :: ListAggregatedUtterancesResponse
s@ListAggregatedUtterancesResponse' {} Maybe [AggregatedUtterancesSummary]
a -> ListAggregatedUtterancesResponse
s {$sel:aggregatedUtterancesSummaries:ListAggregatedUtterancesResponse' :: Maybe [AggregatedUtterancesSummary]
aggregatedUtterancesSummaries = Maybe [AggregatedUtterancesSummary]
a} :: ListAggregatedUtterancesResponse) 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
listAggregatedUtterancesResponse_aggregationDuration :: Lens.Lens' ListAggregatedUtterancesResponse (Prelude.Maybe UtteranceAggregationDuration)
listAggregatedUtterancesResponse_aggregationDuration :: Lens'
ListAggregatedUtterancesResponse
(Maybe UtteranceAggregationDuration)
listAggregatedUtterancesResponse_aggregationDuration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterancesResponse' {Maybe UtteranceAggregationDuration
aggregationDuration :: Maybe UtteranceAggregationDuration
$sel:aggregationDuration:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse
-> Maybe UtteranceAggregationDuration
aggregationDuration} -> Maybe UtteranceAggregationDuration
aggregationDuration) (\s :: ListAggregatedUtterancesResponse
s@ListAggregatedUtterancesResponse' {} Maybe UtteranceAggregationDuration
a -> ListAggregatedUtterancesResponse
s {$sel:aggregationDuration:ListAggregatedUtterancesResponse' :: Maybe UtteranceAggregationDuration
aggregationDuration = Maybe UtteranceAggregationDuration
a} :: ListAggregatedUtterancesResponse)
listAggregatedUtterancesResponse_aggregationLastRefreshedDateTime :: Lens.Lens' ListAggregatedUtterancesResponse (Prelude.Maybe Prelude.UTCTime)
listAggregatedUtterancesResponse_aggregationLastRefreshedDateTime :: Lens' ListAggregatedUtterancesResponse (Maybe UTCTime)
listAggregatedUtterancesResponse_aggregationLastRefreshedDateTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterancesResponse' {Maybe POSIX
aggregationLastRefreshedDateTime :: Maybe POSIX
$sel:aggregationLastRefreshedDateTime:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe POSIX
aggregationLastRefreshedDateTime} -> Maybe POSIX
aggregationLastRefreshedDateTime) (\s :: ListAggregatedUtterancesResponse
s@ListAggregatedUtterancesResponse' {} Maybe POSIX
a -> ListAggregatedUtterancesResponse
s {$sel:aggregationLastRefreshedDateTime:ListAggregatedUtterancesResponse' :: Maybe POSIX
aggregationLastRefreshedDateTime = Maybe POSIX
a} :: ListAggregatedUtterancesResponse) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time
listAggregatedUtterancesResponse_aggregationWindowEndTime :: Lens.Lens' ListAggregatedUtterancesResponse (Prelude.Maybe Prelude.UTCTime)
listAggregatedUtterancesResponse_aggregationWindowEndTime :: Lens' ListAggregatedUtterancesResponse (Maybe UTCTime)
listAggregatedUtterancesResponse_aggregationWindowEndTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterancesResponse' {Maybe POSIX
aggregationWindowEndTime :: Maybe POSIX
$sel:aggregationWindowEndTime:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe POSIX
aggregationWindowEndTime} -> Maybe POSIX
aggregationWindowEndTime) (\s :: ListAggregatedUtterancesResponse
s@ListAggregatedUtterancesResponse' {} Maybe POSIX
a -> ListAggregatedUtterancesResponse
s {$sel:aggregationWindowEndTime:ListAggregatedUtterancesResponse' :: Maybe POSIX
aggregationWindowEndTime = Maybe POSIX
a} :: ListAggregatedUtterancesResponse) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time
listAggregatedUtterancesResponse_aggregationWindowStartTime :: Lens.Lens' ListAggregatedUtterancesResponse (Prelude.Maybe Prelude.UTCTime)
listAggregatedUtterancesResponse_aggregationWindowStartTime :: Lens' ListAggregatedUtterancesResponse (Maybe UTCTime)
listAggregatedUtterancesResponse_aggregationWindowStartTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterancesResponse' {Maybe POSIX
aggregationWindowStartTime :: Maybe POSIX
$sel:aggregationWindowStartTime:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe POSIX
aggregationWindowStartTime} -> Maybe POSIX
aggregationWindowStartTime) (\s :: ListAggregatedUtterancesResponse
s@ListAggregatedUtterancesResponse' {} Maybe POSIX
a -> ListAggregatedUtterancesResponse
s {$sel:aggregationWindowStartTime:ListAggregatedUtterancesResponse' :: Maybe POSIX
aggregationWindowStartTime = Maybe POSIX
a} :: ListAggregatedUtterancesResponse) 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 (a :: Format). Iso' (Time a) UTCTime
Data._Time
listAggregatedUtterancesResponse_botAliasId :: Lens.Lens' ListAggregatedUtterancesResponse (Prelude.Maybe Prelude.Text)
listAggregatedUtterancesResponse_botAliasId :: Lens' ListAggregatedUtterancesResponse (Maybe Text)
listAggregatedUtterancesResponse_botAliasId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterancesResponse' {Maybe Text
botAliasId :: Maybe Text
$sel:botAliasId:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe Text
botAliasId} -> Maybe Text
botAliasId) (\s :: ListAggregatedUtterancesResponse
s@ListAggregatedUtterancesResponse' {} Maybe Text
a -> ListAggregatedUtterancesResponse
s {$sel:botAliasId:ListAggregatedUtterancesResponse' :: Maybe Text
botAliasId = Maybe Text
a} :: ListAggregatedUtterancesResponse)
listAggregatedUtterancesResponse_botId :: Lens.Lens' ListAggregatedUtterancesResponse (Prelude.Maybe Prelude.Text)
listAggregatedUtterancesResponse_botId :: Lens' ListAggregatedUtterancesResponse (Maybe Text)
listAggregatedUtterancesResponse_botId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterancesResponse' {Maybe Text
botId :: Maybe Text
$sel:botId:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe Text
botId} -> Maybe Text
botId) (\s :: ListAggregatedUtterancesResponse
s@ListAggregatedUtterancesResponse' {} Maybe Text
a -> ListAggregatedUtterancesResponse
s {$sel:botId:ListAggregatedUtterancesResponse' :: Maybe Text
botId = Maybe Text
a} :: ListAggregatedUtterancesResponse)
listAggregatedUtterancesResponse_botVersion :: Lens.Lens' ListAggregatedUtterancesResponse (Prelude.Maybe Prelude.Text)
listAggregatedUtterancesResponse_botVersion :: Lens' ListAggregatedUtterancesResponse (Maybe Text)
listAggregatedUtterancesResponse_botVersion = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterancesResponse' {Maybe Text
botVersion :: Maybe Text
$sel:botVersion:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe Text
botVersion} -> Maybe Text
botVersion) (\s :: ListAggregatedUtterancesResponse
s@ListAggregatedUtterancesResponse' {} Maybe Text
a -> ListAggregatedUtterancesResponse
s {$sel:botVersion:ListAggregatedUtterancesResponse' :: Maybe Text
botVersion = Maybe Text
a} :: ListAggregatedUtterancesResponse)
listAggregatedUtterancesResponse_localeId :: Lens.Lens' ListAggregatedUtterancesResponse (Prelude.Maybe Prelude.Text)
listAggregatedUtterancesResponse_localeId :: Lens' ListAggregatedUtterancesResponse (Maybe Text)
listAggregatedUtterancesResponse_localeId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterancesResponse' {Maybe Text
localeId :: Maybe Text
$sel:localeId:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe Text
localeId} -> Maybe Text
localeId) (\s :: ListAggregatedUtterancesResponse
s@ListAggregatedUtterancesResponse' {} Maybe Text
a -> ListAggregatedUtterancesResponse
s {$sel:localeId:ListAggregatedUtterancesResponse' :: Maybe Text
localeId = Maybe Text
a} :: ListAggregatedUtterancesResponse)
listAggregatedUtterancesResponse_nextToken :: Lens.Lens' ListAggregatedUtterancesResponse (Prelude.Maybe Prelude.Text)
listAggregatedUtterancesResponse_nextToken :: Lens' ListAggregatedUtterancesResponse (Maybe Text)
listAggregatedUtterancesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterancesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListAggregatedUtterancesResponse
s@ListAggregatedUtterancesResponse' {} Maybe Text
a -> ListAggregatedUtterancesResponse
s {$sel:nextToken:ListAggregatedUtterancesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListAggregatedUtterancesResponse)
listAggregatedUtterancesResponse_httpStatus :: Lens.Lens' ListAggregatedUtterancesResponse Prelude.Int
listAggregatedUtterancesResponse_httpStatus :: Lens' ListAggregatedUtterancesResponse Int
listAggregatedUtterancesResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListAggregatedUtterancesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListAggregatedUtterancesResponse
s@ListAggregatedUtterancesResponse' {} Int
a -> ListAggregatedUtterancesResponse
s {$sel:httpStatus:ListAggregatedUtterancesResponse' :: Int
httpStatus = Int
a} :: ListAggregatedUtterancesResponse)
instance
Prelude.NFData
ListAggregatedUtterancesResponse
where
rnf :: ListAggregatedUtterancesResponse -> ()
rnf ListAggregatedUtterancesResponse' {Int
Maybe [AggregatedUtterancesSummary]
Maybe Text
Maybe POSIX
Maybe UtteranceAggregationDuration
httpStatus :: Int
nextToken :: Maybe Text
localeId :: Maybe Text
botVersion :: Maybe Text
botId :: Maybe Text
botAliasId :: Maybe Text
aggregationWindowStartTime :: Maybe POSIX
aggregationWindowEndTime :: Maybe POSIX
aggregationLastRefreshedDateTime :: Maybe POSIX
aggregationDuration :: Maybe UtteranceAggregationDuration
aggregatedUtterancesSummaries :: Maybe [AggregatedUtterancesSummary]
$sel:httpStatus:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Int
$sel:nextToken:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe Text
$sel:localeId:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe Text
$sel:botVersion:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe Text
$sel:botId:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe Text
$sel:botAliasId:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe Text
$sel:aggregationWindowStartTime:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe POSIX
$sel:aggregationWindowEndTime:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe POSIX
$sel:aggregationLastRefreshedDateTime:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse -> Maybe POSIX
$sel:aggregationDuration:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse
-> Maybe UtteranceAggregationDuration
$sel:aggregatedUtterancesSummaries:ListAggregatedUtterancesResponse' :: ListAggregatedUtterancesResponse
-> Maybe [AggregatedUtterancesSummary]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [AggregatedUtterancesSummary]
aggregatedUtterancesSummaries
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe UtteranceAggregationDuration
aggregationDuration
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
aggregationLastRefreshedDateTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
aggregationWindowEndTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe POSIX
aggregationWindowStartTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botAliasId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
botVersion
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
localeId
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