{-# 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 #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.Transcribe.ListCallAnalyticsCategories
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Provides more information about the call analytics categories that
-- you\'ve created. You can use the information in this list to find a
-- specific category. You can then use the operation to get more
-- information about it.
module Amazonka.Transcribe.ListCallAnalyticsCategories
  ( -- * Creating a Request
    ListCallAnalyticsCategories (..),
    newListCallAnalyticsCategories,

    -- * Request Lenses
    listCallAnalyticsCategories_nextToken,
    listCallAnalyticsCategories_maxResults,

    -- * Destructuring the Response
    ListCallAnalyticsCategoriesResponse (..),
    newListCallAnalyticsCategoriesResponse,

    -- * Response Lenses
    listCallAnalyticsCategoriesResponse_categories,
    listCallAnalyticsCategoriesResponse_nextToken,
    listCallAnalyticsCategoriesResponse_httpStatus,
  )
where

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
import Amazonka.Transcribe.Types

-- | /See:/ 'newListCallAnalyticsCategories' smart constructor.
data ListCallAnalyticsCategories = ListCallAnalyticsCategories'
  { -- | When included, @NextToken@fetches the next set of categories if the
    -- result of the previous request was truncated.
    ListCallAnalyticsCategories -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of categories to return in each page of results. If
    -- there are fewer results than the value you specify, only the actual
    -- results are returned. If you do not specify a value, the default of 5 is
    -- used.
    ListCallAnalyticsCategories -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListCallAnalyticsCategories -> ListCallAnalyticsCategories -> Bool
(ListCallAnalyticsCategories
 -> ListCallAnalyticsCategories -> Bool)
-> (ListCallAnalyticsCategories
    -> ListCallAnalyticsCategories -> Bool)
-> Eq ListCallAnalyticsCategories
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCallAnalyticsCategories -> ListCallAnalyticsCategories -> Bool
$c/= :: ListCallAnalyticsCategories -> ListCallAnalyticsCategories -> Bool
== :: ListCallAnalyticsCategories -> ListCallAnalyticsCategories -> Bool
$c== :: ListCallAnalyticsCategories -> ListCallAnalyticsCategories -> Bool
Prelude.Eq, ReadPrec [ListCallAnalyticsCategories]
ReadPrec ListCallAnalyticsCategories
Int -> ReadS ListCallAnalyticsCategories
ReadS [ListCallAnalyticsCategories]
(Int -> ReadS ListCallAnalyticsCategories)
-> ReadS [ListCallAnalyticsCategories]
-> ReadPrec ListCallAnalyticsCategories
-> ReadPrec [ListCallAnalyticsCategories]
-> Read ListCallAnalyticsCategories
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCallAnalyticsCategories]
$creadListPrec :: ReadPrec [ListCallAnalyticsCategories]
readPrec :: ReadPrec ListCallAnalyticsCategories
$creadPrec :: ReadPrec ListCallAnalyticsCategories
readList :: ReadS [ListCallAnalyticsCategories]
$creadList :: ReadS [ListCallAnalyticsCategories]
readsPrec :: Int -> ReadS ListCallAnalyticsCategories
$creadsPrec :: Int -> ReadS ListCallAnalyticsCategories
Prelude.Read, Int -> ListCallAnalyticsCategories -> ShowS
[ListCallAnalyticsCategories] -> ShowS
ListCallAnalyticsCategories -> String
(Int -> ListCallAnalyticsCategories -> ShowS)
-> (ListCallAnalyticsCategories -> String)
-> ([ListCallAnalyticsCategories] -> ShowS)
-> Show ListCallAnalyticsCategories
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCallAnalyticsCategories] -> ShowS
$cshowList :: [ListCallAnalyticsCategories] -> ShowS
show :: ListCallAnalyticsCategories -> String
$cshow :: ListCallAnalyticsCategories -> String
showsPrec :: Int -> ListCallAnalyticsCategories -> ShowS
$cshowsPrec :: Int -> ListCallAnalyticsCategories -> ShowS
Prelude.Show, (forall x.
 ListCallAnalyticsCategories -> Rep ListCallAnalyticsCategories x)
-> (forall x.
    Rep ListCallAnalyticsCategories x -> ListCallAnalyticsCategories)
-> Generic ListCallAnalyticsCategories
forall x.
Rep ListCallAnalyticsCategories x -> ListCallAnalyticsCategories
forall x.
ListCallAnalyticsCategories -> Rep ListCallAnalyticsCategories x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCallAnalyticsCategories x -> ListCallAnalyticsCategories
$cfrom :: forall x.
ListCallAnalyticsCategories -> Rep ListCallAnalyticsCategories x
Prelude.Generic)

-- |
-- Create a value of 'ListCallAnalyticsCategories' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'nextToken', 'listCallAnalyticsCategories_nextToken' - When included, @NextToken@fetches the next set of categories if the
-- result of the previous request was truncated.
--
-- 'maxResults', 'listCallAnalyticsCategories_maxResults' - The maximum number of categories to return in each page of results. If
-- there are fewer results than the value you specify, only the actual
-- results are returned. If you do not specify a value, the default of 5 is
-- used.
newListCallAnalyticsCategories ::
  ListCallAnalyticsCategories
newListCallAnalyticsCategories :: ListCallAnalyticsCategories
newListCallAnalyticsCategories =
  ListCallAnalyticsCategories' :: Maybe Text -> Maybe Natural -> ListCallAnalyticsCategories
ListCallAnalyticsCategories'
    { $sel:nextToken:ListCallAnalyticsCategories' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListCallAnalyticsCategories' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | When included, @NextToken@fetches the next set of categories if the
-- result of the previous request was truncated.
listCallAnalyticsCategories_nextToken :: Lens.Lens' ListCallAnalyticsCategories (Prelude.Maybe Prelude.Text)
listCallAnalyticsCategories_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListCallAnalyticsCategories -> f ListCallAnalyticsCategories
listCallAnalyticsCategories_nextToken = (ListCallAnalyticsCategories -> Maybe Text)
-> (ListCallAnalyticsCategories
    -> Maybe Text -> ListCallAnalyticsCategories)
-> Lens
     ListCallAnalyticsCategories
     ListCallAnalyticsCategories
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCallAnalyticsCategories' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCallAnalyticsCategories' :: ListCallAnalyticsCategories -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCallAnalyticsCategories
s@ListCallAnalyticsCategories' {} Maybe Text
a -> ListCallAnalyticsCategories
s {$sel:nextToken:ListCallAnalyticsCategories' :: Maybe Text
nextToken = Maybe Text
a} :: ListCallAnalyticsCategories)

-- | The maximum number of categories to return in each page of results. If
-- there are fewer results than the value you specify, only the actual
-- results are returned. If you do not specify a value, the default of 5 is
-- used.
listCallAnalyticsCategories_maxResults :: Lens.Lens' ListCallAnalyticsCategories (Prelude.Maybe Prelude.Natural)
listCallAnalyticsCategories_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListCallAnalyticsCategories -> f ListCallAnalyticsCategories
listCallAnalyticsCategories_maxResults = (ListCallAnalyticsCategories -> Maybe Natural)
-> (ListCallAnalyticsCategories
    -> Maybe Natural -> ListCallAnalyticsCategories)
-> Lens
     ListCallAnalyticsCategories
     ListCallAnalyticsCategories
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCallAnalyticsCategories' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListCallAnalyticsCategories' :: ListCallAnalyticsCategories -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListCallAnalyticsCategories
s@ListCallAnalyticsCategories' {} Maybe Natural
a -> ListCallAnalyticsCategories
s {$sel:maxResults:ListCallAnalyticsCategories' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListCallAnalyticsCategories)

instance Core.AWSRequest ListCallAnalyticsCategories where
  type
    AWSResponse ListCallAnalyticsCategories =
      ListCallAnalyticsCategoriesResponse
  request :: ListCallAnalyticsCategories -> Request ListCallAnalyticsCategories
request = Service
-> ListCallAnalyticsCategories
-> Request ListCallAnalyticsCategories
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListCallAnalyticsCategories
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListCallAnalyticsCategories)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListCallAnalyticsCategories))
-> Logger
-> Service
-> Proxy ListCallAnalyticsCategories
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListCallAnalyticsCategories)))
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 [CategoryProperties]
-> Maybe Text -> Int -> ListCallAnalyticsCategoriesResponse
ListCallAnalyticsCategoriesResponse'
            (Maybe [CategoryProperties]
 -> Maybe Text -> Int -> ListCallAnalyticsCategoriesResponse)
-> Either String (Maybe [CategoryProperties])
-> Either
     String (Maybe Text -> Int -> ListCallAnalyticsCategoriesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [CategoryProperties]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"Categories" Either String (Maybe (Maybe [CategoryProperties]))
-> Maybe [CategoryProperties]
-> Either String (Maybe [CategoryProperties])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [CategoryProperties]
forall a. Monoid a => a
Prelude.mempty)
            Either
  String (Maybe Text -> Int -> ListCallAnalyticsCategoriesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListCallAnalyticsCategoriesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"NextToken")
            Either String (Int -> ListCallAnalyticsCategoriesResponse)
-> Either String Int
-> Either String ListCallAnalyticsCategoriesResponse
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 ListCallAnalyticsCategories

instance Prelude.NFData ListCallAnalyticsCategories

instance Core.ToHeaders ListCallAnalyticsCategories where
  toHeaders :: ListCallAnalyticsCategories -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListCallAnalyticsCategories -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"Transcribe.ListCallAnalyticsCategories" ::
                          Prelude.ByteString
                      ),
            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 ListCallAnalyticsCategories where
  toJSON :: ListCallAnalyticsCategories -> Value
toJSON ListCallAnalyticsCategories' {Maybe Natural
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:maxResults:ListCallAnalyticsCategories' :: ListCallAnalyticsCategories -> Maybe Natural
$sel:nextToken:ListCallAnalyticsCategories' :: ListCallAnalyticsCategories -> Maybe Text
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
          ]
      )

instance Core.ToPath ListCallAnalyticsCategories where
  toPath :: ListCallAnalyticsCategories -> ByteString
toPath = ByteString -> ListCallAnalyticsCategories -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance Core.ToQuery ListCallAnalyticsCategories where
  toQuery :: ListCallAnalyticsCategories -> QueryString
toQuery = QueryString -> ListCallAnalyticsCategories -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListCallAnalyticsCategoriesResponse' smart constructor.
data ListCallAnalyticsCategoriesResponse = ListCallAnalyticsCategoriesResponse'
  { -- | A list of objects containing information about analytics categories.
    ListCallAnalyticsCategoriesResponse -> Maybe [CategoryProperties]
categories :: Prelude.Maybe [CategoryProperties],
    -- | The operation returns a page of jobs at a time. The maximum size of the
    -- list is set by the @MaxResults@ parameter. If there are more categories
    -- in the list than the page size, Amazon Transcribe returns the @NextPage@
    -- token. Include the token in the next request to the operation to return
    -- the next page of analytics categories.
    ListCallAnalyticsCategoriesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListCallAnalyticsCategoriesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListCallAnalyticsCategoriesResponse
-> ListCallAnalyticsCategoriesResponse -> Bool
(ListCallAnalyticsCategoriesResponse
 -> ListCallAnalyticsCategoriesResponse -> Bool)
-> (ListCallAnalyticsCategoriesResponse
    -> ListCallAnalyticsCategoriesResponse -> Bool)
-> Eq ListCallAnalyticsCategoriesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListCallAnalyticsCategoriesResponse
-> ListCallAnalyticsCategoriesResponse -> Bool
$c/= :: ListCallAnalyticsCategoriesResponse
-> ListCallAnalyticsCategoriesResponse -> Bool
== :: ListCallAnalyticsCategoriesResponse
-> ListCallAnalyticsCategoriesResponse -> Bool
$c== :: ListCallAnalyticsCategoriesResponse
-> ListCallAnalyticsCategoriesResponse -> Bool
Prelude.Eq, ReadPrec [ListCallAnalyticsCategoriesResponse]
ReadPrec ListCallAnalyticsCategoriesResponse
Int -> ReadS ListCallAnalyticsCategoriesResponse
ReadS [ListCallAnalyticsCategoriesResponse]
(Int -> ReadS ListCallAnalyticsCategoriesResponse)
-> ReadS [ListCallAnalyticsCategoriesResponse]
-> ReadPrec ListCallAnalyticsCategoriesResponse
-> ReadPrec [ListCallAnalyticsCategoriesResponse]
-> Read ListCallAnalyticsCategoriesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListCallAnalyticsCategoriesResponse]
$creadListPrec :: ReadPrec [ListCallAnalyticsCategoriesResponse]
readPrec :: ReadPrec ListCallAnalyticsCategoriesResponse
$creadPrec :: ReadPrec ListCallAnalyticsCategoriesResponse
readList :: ReadS [ListCallAnalyticsCategoriesResponse]
$creadList :: ReadS [ListCallAnalyticsCategoriesResponse]
readsPrec :: Int -> ReadS ListCallAnalyticsCategoriesResponse
$creadsPrec :: Int -> ReadS ListCallAnalyticsCategoriesResponse
Prelude.Read, Int -> ListCallAnalyticsCategoriesResponse -> ShowS
[ListCallAnalyticsCategoriesResponse] -> ShowS
ListCallAnalyticsCategoriesResponse -> String
(Int -> ListCallAnalyticsCategoriesResponse -> ShowS)
-> (ListCallAnalyticsCategoriesResponse -> String)
-> ([ListCallAnalyticsCategoriesResponse] -> ShowS)
-> Show ListCallAnalyticsCategoriesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListCallAnalyticsCategoriesResponse] -> ShowS
$cshowList :: [ListCallAnalyticsCategoriesResponse] -> ShowS
show :: ListCallAnalyticsCategoriesResponse -> String
$cshow :: ListCallAnalyticsCategoriesResponse -> String
showsPrec :: Int -> ListCallAnalyticsCategoriesResponse -> ShowS
$cshowsPrec :: Int -> ListCallAnalyticsCategoriesResponse -> ShowS
Prelude.Show, (forall x.
 ListCallAnalyticsCategoriesResponse
 -> Rep ListCallAnalyticsCategoriesResponse x)
-> (forall x.
    Rep ListCallAnalyticsCategoriesResponse x
    -> ListCallAnalyticsCategoriesResponse)
-> Generic ListCallAnalyticsCategoriesResponse
forall x.
Rep ListCallAnalyticsCategoriesResponse x
-> ListCallAnalyticsCategoriesResponse
forall x.
ListCallAnalyticsCategoriesResponse
-> Rep ListCallAnalyticsCategoriesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListCallAnalyticsCategoriesResponse x
-> ListCallAnalyticsCategoriesResponse
$cfrom :: forall x.
ListCallAnalyticsCategoriesResponse
-> Rep ListCallAnalyticsCategoriesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListCallAnalyticsCategoriesResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'categories', 'listCallAnalyticsCategoriesResponse_categories' - A list of objects containing information about analytics categories.
--
-- 'nextToken', 'listCallAnalyticsCategoriesResponse_nextToken' - The operation returns a page of jobs at a time. The maximum size of the
-- list is set by the @MaxResults@ parameter. If there are more categories
-- in the list than the page size, Amazon Transcribe returns the @NextPage@
-- token. Include the token in the next request to the operation to return
-- the next page of analytics categories.
--
-- 'httpStatus', 'listCallAnalyticsCategoriesResponse_httpStatus' - The response's http status code.
newListCallAnalyticsCategoriesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListCallAnalyticsCategoriesResponse
newListCallAnalyticsCategoriesResponse :: Int -> ListCallAnalyticsCategoriesResponse
newListCallAnalyticsCategoriesResponse Int
pHttpStatus_ =
  ListCallAnalyticsCategoriesResponse' :: Maybe [CategoryProperties]
-> Maybe Text -> Int -> ListCallAnalyticsCategoriesResponse
ListCallAnalyticsCategoriesResponse'
    { $sel:categories:ListCallAnalyticsCategoriesResponse' :: Maybe [CategoryProperties]
categories =
        Maybe [CategoryProperties]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListCallAnalyticsCategoriesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListCallAnalyticsCategoriesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | A list of objects containing information about analytics categories.
listCallAnalyticsCategoriesResponse_categories :: Lens.Lens' ListCallAnalyticsCategoriesResponse (Prelude.Maybe [CategoryProperties])
listCallAnalyticsCategoriesResponse_categories :: (Maybe [CategoryProperties] -> f (Maybe [CategoryProperties]))
-> ListCallAnalyticsCategoriesResponse
-> f ListCallAnalyticsCategoriesResponse
listCallAnalyticsCategoriesResponse_categories = (ListCallAnalyticsCategoriesResponse -> Maybe [CategoryProperties])
-> (ListCallAnalyticsCategoriesResponse
    -> Maybe [CategoryProperties]
    -> ListCallAnalyticsCategoriesResponse)
-> Lens
     ListCallAnalyticsCategoriesResponse
     ListCallAnalyticsCategoriesResponse
     (Maybe [CategoryProperties])
     (Maybe [CategoryProperties])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCallAnalyticsCategoriesResponse' {Maybe [CategoryProperties]
categories :: Maybe [CategoryProperties]
$sel:categories:ListCallAnalyticsCategoriesResponse' :: ListCallAnalyticsCategoriesResponse -> Maybe [CategoryProperties]
categories} -> Maybe [CategoryProperties]
categories) (\s :: ListCallAnalyticsCategoriesResponse
s@ListCallAnalyticsCategoriesResponse' {} Maybe [CategoryProperties]
a -> ListCallAnalyticsCategoriesResponse
s {$sel:categories:ListCallAnalyticsCategoriesResponse' :: Maybe [CategoryProperties]
categories = Maybe [CategoryProperties]
a} :: ListCallAnalyticsCategoriesResponse) ((Maybe [CategoryProperties] -> f (Maybe [CategoryProperties]))
 -> ListCallAnalyticsCategoriesResponse
 -> f ListCallAnalyticsCategoriesResponse)
-> ((Maybe [CategoryProperties] -> f (Maybe [CategoryProperties]))
    -> Maybe [CategoryProperties] -> f (Maybe [CategoryProperties]))
-> (Maybe [CategoryProperties] -> f (Maybe [CategoryProperties]))
-> ListCallAnalyticsCategoriesResponse
-> f ListCallAnalyticsCategoriesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [CategoryProperties]
  [CategoryProperties]
  [CategoryProperties]
  [CategoryProperties]
-> Iso
     (Maybe [CategoryProperties])
     (Maybe [CategoryProperties])
     (Maybe [CategoryProperties])
     (Maybe [CategoryProperties])
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
  [CategoryProperties]
  [CategoryProperties]
  [CategoryProperties]
  [CategoryProperties]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The operation returns a page of jobs at a time. The maximum size of the
-- list is set by the @MaxResults@ parameter. If there are more categories
-- in the list than the page size, Amazon Transcribe returns the @NextPage@
-- token. Include the token in the next request to the operation to return
-- the next page of analytics categories.
listCallAnalyticsCategoriesResponse_nextToken :: Lens.Lens' ListCallAnalyticsCategoriesResponse (Prelude.Maybe Prelude.Text)
listCallAnalyticsCategoriesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListCallAnalyticsCategoriesResponse
-> f ListCallAnalyticsCategoriesResponse
listCallAnalyticsCategoriesResponse_nextToken = (ListCallAnalyticsCategoriesResponse -> Maybe Text)
-> (ListCallAnalyticsCategoriesResponse
    -> Maybe Text -> ListCallAnalyticsCategoriesResponse)
-> Lens
     ListCallAnalyticsCategoriesResponse
     ListCallAnalyticsCategoriesResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCallAnalyticsCategoriesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListCallAnalyticsCategoriesResponse' :: ListCallAnalyticsCategoriesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListCallAnalyticsCategoriesResponse
s@ListCallAnalyticsCategoriesResponse' {} Maybe Text
a -> ListCallAnalyticsCategoriesResponse
s {$sel:nextToken:ListCallAnalyticsCategoriesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListCallAnalyticsCategoriesResponse)

-- | The response's http status code.
listCallAnalyticsCategoriesResponse_httpStatus :: Lens.Lens' ListCallAnalyticsCategoriesResponse Prelude.Int
listCallAnalyticsCategoriesResponse_httpStatus :: (Int -> f Int)
-> ListCallAnalyticsCategoriesResponse
-> f ListCallAnalyticsCategoriesResponse
listCallAnalyticsCategoriesResponse_httpStatus = (ListCallAnalyticsCategoriesResponse -> Int)
-> (ListCallAnalyticsCategoriesResponse
    -> Int -> ListCallAnalyticsCategoriesResponse)
-> Lens
     ListCallAnalyticsCategoriesResponse
     ListCallAnalyticsCategoriesResponse
     Int
     Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListCallAnalyticsCategoriesResponse' {Int
httpStatus :: Int
$sel:httpStatus:ListCallAnalyticsCategoriesResponse' :: ListCallAnalyticsCategoriesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: ListCallAnalyticsCategoriesResponse
s@ListCallAnalyticsCategoriesResponse' {} Int
a -> ListCallAnalyticsCategoriesResponse
s {$sel:httpStatus:ListCallAnalyticsCategoriesResponse' :: Int
httpStatus = Int
a} :: ListCallAnalyticsCategoriesResponse)

instance
  Prelude.NFData
    ListCallAnalyticsCategoriesResponse