{-# 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.Connect.ListUseCases
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists the use cases for the integration association.
--
-- This operation returns paginated results.
module Amazonka.Connect.ListUseCases
  ( -- * Creating a Request
    ListUseCases (..),
    newListUseCases,

    -- * Request Lenses
    listUseCases_maxResults,
    listUseCases_nextToken,
    listUseCases_instanceId,
    listUseCases_integrationAssociationId,

    -- * Destructuring the Response
    ListUseCasesResponse (..),
    newListUseCasesResponse,

    -- * Response Lenses
    listUseCasesResponse_nextToken,
    listUseCasesResponse_useCaseSummaryList,
    listUseCasesResponse_httpStatus,
  )
where

import Amazonka.Connect.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

-- | Provides summary information about the use cases for the specified
-- integration association.
--
-- /See:/ 'newListUseCases' smart constructor.
data ListUseCases = ListUseCases'
  { -- | The maximum number of results to return per page.
    ListUseCases -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The token for the next set of results. Use the value returned in the
    -- previous response in the next request to retrieve the next set of
    -- results.
    ListUseCases -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The identifier of the Amazon Connect instance. You can find the
    -- instanceId in the ARN of the instance.
    ListUseCases -> Text
instanceId :: Prelude.Text,
    -- | The identifier for the integration association.
    ListUseCases -> Text
integrationAssociationId :: Prelude.Text
  }
  deriving (ListUseCases -> ListUseCases -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListUseCases -> ListUseCases -> Bool
$c/= :: ListUseCases -> ListUseCases -> Bool
== :: ListUseCases -> ListUseCases -> Bool
$c== :: ListUseCases -> ListUseCases -> Bool
Prelude.Eq, ReadPrec [ListUseCases]
ReadPrec ListUseCases
Int -> ReadS ListUseCases
ReadS [ListUseCases]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListUseCases]
$creadListPrec :: ReadPrec [ListUseCases]
readPrec :: ReadPrec ListUseCases
$creadPrec :: ReadPrec ListUseCases
readList :: ReadS [ListUseCases]
$creadList :: ReadS [ListUseCases]
readsPrec :: Int -> ReadS ListUseCases
$creadsPrec :: Int -> ReadS ListUseCases
Prelude.Read, Int -> ListUseCases -> ShowS
[ListUseCases] -> ShowS
ListUseCases -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListUseCases] -> ShowS
$cshowList :: [ListUseCases] -> ShowS
show :: ListUseCases -> String
$cshow :: ListUseCases -> String
showsPrec :: Int -> ListUseCases -> ShowS
$cshowsPrec :: Int -> ListUseCases -> ShowS
Prelude.Show, forall x. Rep ListUseCases x -> ListUseCases
forall x. ListUseCases -> Rep ListUseCases x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListUseCases x -> ListUseCases
$cfrom :: forall x. ListUseCases -> Rep ListUseCases x
Prelude.Generic)

-- |
-- Create a value of 'ListUseCases' 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:
--
-- 'maxResults', 'listUseCases_maxResults' - The maximum number of results to return per page.
--
-- 'nextToken', 'listUseCases_nextToken' - The token for the next set of results. Use the value returned in the
-- previous response in the next request to retrieve the next set of
-- results.
--
-- 'instanceId', 'listUseCases_instanceId' - The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
--
-- 'integrationAssociationId', 'listUseCases_integrationAssociationId' - The identifier for the integration association.
newListUseCases ::
  -- | 'instanceId'
  Prelude.Text ->
  -- | 'integrationAssociationId'
  Prelude.Text ->
  ListUseCases
newListUseCases :: Text -> Text -> ListUseCases
newListUseCases
  Text
pInstanceId_
  Text
pIntegrationAssociationId_ =
    ListUseCases'
      { $sel:maxResults:ListUseCases' :: Maybe Natural
maxResults = forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListUseCases' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
        $sel:instanceId:ListUseCases' :: Text
instanceId = Text
pInstanceId_,
        $sel:integrationAssociationId:ListUseCases' :: Text
integrationAssociationId =
          Text
pIntegrationAssociationId_
      }

-- | The maximum number of results to return per page.
listUseCases_maxResults :: Lens.Lens' ListUseCases (Prelude.Maybe Prelude.Natural)
listUseCases_maxResults :: Lens' ListUseCases (Maybe Natural)
listUseCases_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUseCases' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListUseCases' :: ListUseCases -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListUseCases
s@ListUseCases' {} Maybe Natural
a -> ListUseCases
s {$sel:maxResults:ListUseCases' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListUseCases)

-- | The token for the next set of results. Use the value returned in the
-- previous response in the next request to retrieve the next set of
-- results.
listUseCases_nextToken :: Lens.Lens' ListUseCases (Prelude.Maybe Prelude.Text)
listUseCases_nextToken :: Lens' ListUseCases (Maybe Text)
listUseCases_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUseCases' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListUseCases' :: ListUseCases -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListUseCases
s@ListUseCases' {} Maybe Text
a -> ListUseCases
s {$sel:nextToken:ListUseCases' :: Maybe Text
nextToken = Maybe Text
a} :: ListUseCases)

-- | The identifier of the Amazon Connect instance. You can find the
-- instanceId in the ARN of the instance.
listUseCases_instanceId :: Lens.Lens' ListUseCases Prelude.Text
listUseCases_instanceId :: Lens' ListUseCases Text
listUseCases_instanceId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUseCases' {Text
instanceId :: Text
$sel:instanceId:ListUseCases' :: ListUseCases -> Text
instanceId} -> Text
instanceId) (\s :: ListUseCases
s@ListUseCases' {} Text
a -> ListUseCases
s {$sel:instanceId:ListUseCases' :: Text
instanceId = Text
a} :: ListUseCases)

-- | The identifier for the integration association.
listUseCases_integrationAssociationId :: Lens.Lens' ListUseCases Prelude.Text
listUseCases_integrationAssociationId :: Lens' ListUseCases Text
listUseCases_integrationAssociationId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUseCases' {Text
integrationAssociationId :: Text
$sel:integrationAssociationId:ListUseCases' :: ListUseCases -> Text
integrationAssociationId} -> Text
integrationAssociationId) (\s :: ListUseCases
s@ListUseCases' {} Text
a -> ListUseCases
s {$sel:integrationAssociationId:ListUseCases' :: Text
integrationAssociationId = Text
a} :: ListUseCases)

instance Core.AWSPager ListUseCases where
  page :: ListUseCases -> AWSResponse ListUseCases -> Maybe ListUseCases
page ListUseCases
rq AWSResponse ListUseCases
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse ListUseCases
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListUseCasesResponse (Maybe Text)
listUseCasesResponse_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 ListUseCases
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListUseCasesResponse (Maybe [UseCase])
listUseCasesResponse_useCaseSummaryList
            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.$ ListUseCases
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' ListUseCases (Maybe Text)
listUseCases_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListUseCases
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' ListUseCasesResponse (Maybe Text)
listUseCasesResponse_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 ListUseCases where
  type AWSResponse ListUseCases = ListUseCasesResponse
  request :: (Service -> Service) -> ListUseCases -> Request ListUseCases
request Service -> Service
overrides =
    forall a. ToRequest a => Service -> a -> Request a
Request.get (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListUseCases
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListUseCases)))
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 [UseCase] -> Int -> ListUseCasesResponse
ListUseCasesResponse'
            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
"UseCaseSummaryList"
                            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 ListUseCases where
  hashWithSalt :: Int -> ListUseCases -> Int
hashWithSalt Int
_salt ListUseCases' {Maybe Natural
Maybe Text
Text
integrationAssociationId :: Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:integrationAssociationId:ListUseCases' :: ListUseCases -> Text
$sel:instanceId:ListUseCases' :: ListUseCases -> Text
$sel:nextToken:ListUseCases' :: ListUseCases -> Maybe Text
$sel:maxResults:ListUseCases' :: ListUseCases -> Maybe Natural
..} =
    Int
_salt
      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` Text
instanceId
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
integrationAssociationId

instance Prelude.NFData ListUseCases where
  rnf :: ListUseCases -> ()
rnf ListUseCases' {Maybe Natural
Maybe Text
Text
integrationAssociationId :: Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:integrationAssociationId:ListUseCases' :: ListUseCases -> Text
$sel:instanceId:ListUseCases' :: ListUseCases -> Text
$sel:nextToken:ListUseCases' :: ListUseCases -> Maybe Text
$sel:maxResults:ListUseCases' :: ListUseCases -> Maybe Natural
..} =
    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 Text
instanceId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
integrationAssociationId

instance Data.ToHeaders ListUseCases where
  toHeaders :: ListUseCases -> 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.ToPath ListUseCases where
  toPath :: ListUseCases -> ByteString
toPath ListUseCases' {Maybe Natural
Maybe Text
Text
integrationAssociationId :: Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:integrationAssociationId:ListUseCases' :: ListUseCases -> Text
$sel:instanceId:ListUseCases' :: ListUseCases -> Text
$sel:nextToken:ListUseCases' :: ListUseCases -> Maybe Text
$sel:maxResults:ListUseCases' :: ListUseCases -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/instance/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
instanceId,
        ByteString
"/integration-associations/",
        forall a. ToByteString a => a -> ByteString
Data.toBS Text
integrationAssociationId,
        ByteString
"/use-cases"
      ]

instance Data.ToQuery ListUseCases where
  toQuery :: ListUseCases -> QueryString
toQuery ListUseCases' {Maybe Natural
Maybe Text
Text
integrationAssociationId :: Text
instanceId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:integrationAssociationId:ListUseCases' :: ListUseCases -> Text
$sel:instanceId:ListUseCases' :: ListUseCases -> Text
$sel:nextToken:ListUseCases' :: ListUseCases -> Maybe Text
$sel:maxResults:ListUseCases' :: ListUseCases -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"maxResults" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"nextToken" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListUseCasesResponse' smart constructor.
data ListUseCasesResponse = ListUseCasesResponse'
  { -- | If there are additional results, this is the token for the next set of
    -- results.
    ListUseCasesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The use cases.
    ListUseCasesResponse -> Maybe [UseCase]
useCaseSummaryList :: Prelude.Maybe [UseCase],
    -- | The response's http status code.
    ListUseCasesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListUseCasesResponse -> ListUseCasesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListUseCasesResponse -> ListUseCasesResponse -> Bool
$c/= :: ListUseCasesResponse -> ListUseCasesResponse -> Bool
== :: ListUseCasesResponse -> ListUseCasesResponse -> Bool
$c== :: ListUseCasesResponse -> ListUseCasesResponse -> Bool
Prelude.Eq, ReadPrec [ListUseCasesResponse]
ReadPrec ListUseCasesResponse
Int -> ReadS ListUseCasesResponse
ReadS [ListUseCasesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListUseCasesResponse]
$creadListPrec :: ReadPrec [ListUseCasesResponse]
readPrec :: ReadPrec ListUseCasesResponse
$creadPrec :: ReadPrec ListUseCasesResponse
readList :: ReadS [ListUseCasesResponse]
$creadList :: ReadS [ListUseCasesResponse]
readsPrec :: Int -> ReadS ListUseCasesResponse
$creadsPrec :: Int -> ReadS ListUseCasesResponse
Prelude.Read, Int -> ListUseCasesResponse -> ShowS
[ListUseCasesResponse] -> ShowS
ListUseCasesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListUseCasesResponse] -> ShowS
$cshowList :: [ListUseCasesResponse] -> ShowS
show :: ListUseCasesResponse -> String
$cshow :: ListUseCasesResponse -> String
showsPrec :: Int -> ListUseCasesResponse -> ShowS
$cshowsPrec :: Int -> ListUseCasesResponse -> ShowS
Prelude.Show, forall x. Rep ListUseCasesResponse x -> ListUseCasesResponse
forall x. ListUseCasesResponse -> Rep ListUseCasesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListUseCasesResponse x -> ListUseCasesResponse
$cfrom :: forall x. ListUseCasesResponse -> Rep ListUseCasesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListUseCasesResponse' 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', 'listUseCasesResponse_nextToken' - If there are additional results, this is the token for the next set of
-- results.
--
-- 'useCaseSummaryList', 'listUseCasesResponse_useCaseSummaryList' - The use cases.
--
-- 'httpStatus', 'listUseCasesResponse_httpStatus' - The response's http status code.
newListUseCasesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListUseCasesResponse
newListUseCasesResponse :: Int -> ListUseCasesResponse
newListUseCasesResponse Int
pHttpStatus_ =
  ListUseCasesResponse'
    { $sel:nextToken:ListUseCasesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
      $sel:useCaseSummaryList:ListUseCasesResponse' :: Maybe [UseCase]
useCaseSummaryList = forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListUseCasesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | If there are additional results, this is the token for the next set of
-- results.
listUseCasesResponse_nextToken :: Lens.Lens' ListUseCasesResponse (Prelude.Maybe Prelude.Text)
listUseCasesResponse_nextToken :: Lens' ListUseCasesResponse (Maybe Text)
listUseCasesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUseCasesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListUseCasesResponse' :: ListUseCasesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListUseCasesResponse
s@ListUseCasesResponse' {} Maybe Text
a -> ListUseCasesResponse
s {$sel:nextToken:ListUseCasesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListUseCasesResponse)

-- | The use cases.
listUseCasesResponse_useCaseSummaryList :: Lens.Lens' ListUseCasesResponse (Prelude.Maybe [UseCase])
listUseCasesResponse_useCaseSummaryList :: Lens' ListUseCasesResponse (Maybe [UseCase])
listUseCasesResponse_useCaseSummaryList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListUseCasesResponse' {Maybe [UseCase]
useCaseSummaryList :: Maybe [UseCase]
$sel:useCaseSummaryList:ListUseCasesResponse' :: ListUseCasesResponse -> Maybe [UseCase]
useCaseSummaryList} -> Maybe [UseCase]
useCaseSummaryList) (\s :: ListUseCasesResponse
s@ListUseCasesResponse' {} Maybe [UseCase]
a -> ListUseCasesResponse
s {$sel:useCaseSummaryList:ListUseCasesResponse' :: Maybe [UseCase]
useCaseSummaryList = Maybe [UseCase]
a} :: ListUseCasesResponse) 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

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

instance Prelude.NFData ListUseCasesResponse where
  rnf :: ListUseCasesResponse -> ()
rnf ListUseCasesResponse' {Int
Maybe [UseCase]
Maybe Text
httpStatus :: Int
useCaseSummaryList :: Maybe [UseCase]
nextToken :: Maybe Text
$sel:httpStatus:ListUseCasesResponse' :: ListUseCasesResponse -> Int
$sel:useCaseSummaryList:ListUseCasesResponse' :: ListUseCasesResponse -> Maybe [UseCase]
$sel:nextToken:ListUseCasesResponse' :: ListUseCasesResponse -> 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 [UseCase]
useCaseSummaryList
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus