{-# 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.CustomerProfiles.ListProfileObjectTypeTemplates
-- 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 all of the template information for object types.
module Amazonka.CustomerProfiles.ListProfileObjectTypeTemplates
  ( -- * Creating a Request
    ListProfileObjectTypeTemplates (..),
    newListProfileObjectTypeTemplates,

    -- * Request Lenses
    listProfileObjectTypeTemplates_maxResults,
    listProfileObjectTypeTemplates_nextToken,

    -- * Destructuring the Response
    ListProfileObjectTypeTemplatesResponse (..),
    newListProfileObjectTypeTemplatesResponse,

    -- * Response Lenses
    listProfileObjectTypeTemplatesResponse_items,
    listProfileObjectTypeTemplatesResponse_nextToken,
    listProfileObjectTypeTemplatesResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Core.Lens.Internal as Lens
import Amazonka.CustomerProfiles.Types
import qualified Amazonka.Data as Data
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListProfileObjectTypeTemplates' smart constructor.
data ListProfileObjectTypeTemplates = ListProfileObjectTypeTemplates'
  { -- | The maximum number of objects returned per page.
    ListProfileObjectTypeTemplates -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The pagination token from the previous ListObjectTypeTemplates API call.
    ListProfileObjectTypeTemplates -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (ListProfileObjectTypeTemplates
-> ListProfileObjectTypeTemplates -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProfileObjectTypeTemplates
-> ListProfileObjectTypeTemplates -> Bool
$c/= :: ListProfileObjectTypeTemplates
-> ListProfileObjectTypeTemplates -> Bool
== :: ListProfileObjectTypeTemplates
-> ListProfileObjectTypeTemplates -> Bool
$c== :: ListProfileObjectTypeTemplates
-> ListProfileObjectTypeTemplates -> Bool
Prelude.Eq, ReadPrec [ListProfileObjectTypeTemplates]
ReadPrec ListProfileObjectTypeTemplates
Int -> ReadS ListProfileObjectTypeTemplates
ReadS [ListProfileObjectTypeTemplates]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProfileObjectTypeTemplates]
$creadListPrec :: ReadPrec [ListProfileObjectTypeTemplates]
readPrec :: ReadPrec ListProfileObjectTypeTemplates
$creadPrec :: ReadPrec ListProfileObjectTypeTemplates
readList :: ReadS [ListProfileObjectTypeTemplates]
$creadList :: ReadS [ListProfileObjectTypeTemplates]
readsPrec :: Int -> ReadS ListProfileObjectTypeTemplates
$creadsPrec :: Int -> ReadS ListProfileObjectTypeTemplates
Prelude.Read, Int -> ListProfileObjectTypeTemplates -> ShowS
[ListProfileObjectTypeTemplates] -> ShowS
ListProfileObjectTypeTemplates -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProfileObjectTypeTemplates] -> ShowS
$cshowList :: [ListProfileObjectTypeTemplates] -> ShowS
show :: ListProfileObjectTypeTemplates -> String
$cshow :: ListProfileObjectTypeTemplates -> String
showsPrec :: Int -> ListProfileObjectTypeTemplates -> ShowS
$cshowsPrec :: Int -> ListProfileObjectTypeTemplates -> ShowS
Prelude.Show, forall x.
Rep ListProfileObjectTypeTemplates x
-> ListProfileObjectTypeTemplates
forall x.
ListProfileObjectTypeTemplates
-> Rep ListProfileObjectTypeTemplates x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListProfileObjectTypeTemplates x
-> ListProfileObjectTypeTemplates
$cfrom :: forall x.
ListProfileObjectTypeTemplates
-> Rep ListProfileObjectTypeTemplates x
Prelude.Generic)

-- |
-- Create a value of 'ListProfileObjectTypeTemplates' 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', 'listProfileObjectTypeTemplates_maxResults' - The maximum number of objects returned per page.
--
-- 'nextToken', 'listProfileObjectTypeTemplates_nextToken' - The pagination token from the previous ListObjectTypeTemplates API call.
newListProfileObjectTypeTemplates ::
  ListProfileObjectTypeTemplates
newListProfileObjectTypeTemplates :: ListProfileObjectTypeTemplates
newListProfileObjectTypeTemplates =
  ListProfileObjectTypeTemplates'
    { $sel:maxResults:ListProfileObjectTypeTemplates' :: Maybe Natural
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListProfileObjectTypeTemplates' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of objects returned per page.
listProfileObjectTypeTemplates_maxResults :: Lens.Lens' ListProfileObjectTypeTemplates (Prelude.Maybe Prelude.Natural)
listProfileObjectTypeTemplates_maxResults :: Lens' ListProfileObjectTypeTemplates (Maybe Natural)
listProfileObjectTypeTemplates_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjectTypeTemplates' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListProfileObjectTypeTemplates' :: ListProfileObjectTypeTemplates -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListProfileObjectTypeTemplates
s@ListProfileObjectTypeTemplates' {} Maybe Natural
a -> ListProfileObjectTypeTemplates
s {$sel:maxResults:ListProfileObjectTypeTemplates' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListProfileObjectTypeTemplates)

-- | The pagination token from the previous ListObjectTypeTemplates API call.
listProfileObjectTypeTemplates_nextToken :: Lens.Lens' ListProfileObjectTypeTemplates (Prelude.Maybe Prelude.Text)
listProfileObjectTypeTemplates_nextToken :: Lens' ListProfileObjectTypeTemplates (Maybe Text)
listProfileObjectTypeTemplates_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjectTypeTemplates' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProfileObjectTypeTemplates' :: ListProfileObjectTypeTemplates -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProfileObjectTypeTemplates
s@ListProfileObjectTypeTemplates' {} Maybe Text
a -> ListProfileObjectTypeTemplates
s {$sel:nextToken:ListProfileObjectTypeTemplates' :: Maybe Text
nextToken = Maybe Text
a} :: ListProfileObjectTypeTemplates)

instance
  Core.AWSRequest
    ListProfileObjectTypeTemplates
  where
  type
    AWSResponse ListProfileObjectTypeTemplates =
      ListProfileObjectTypeTemplatesResponse
  request :: (Service -> Service)
-> ListProfileObjectTypeTemplates
-> Request ListProfileObjectTypeTemplates
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 ListProfileObjectTypeTemplates
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse ListProfileObjectTypeTemplates)))
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 [ListProfileObjectTypeTemplateItem]
-> Maybe Text -> Int -> ListProfileObjectTypeTemplatesResponse
ListProfileObjectTypeTemplatesResponse'
            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
"Items" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    ListProfileObjectTypeTemplates
  where
  hashWithSalt :: Int -> ListProfileObjectTypeTemplates -> Int
hashWithSalt
    Int
_salt
    ListProfileObjectTypeTemplates' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListProfileObjectTypeTemplates' :: ListProfileObjectTypeTemplates -> Maybe Text
$sel:maxResults:ListProfileObjectTypeTemplates' :: ListProfileObjectTypeTemplates -> 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

instance
  Prelude.NFData
    ListProfileObjectTypeTemplates
  where
  rnf :: ListProfileObjectTypeTemplates -> ()
rnf ListProfileObjectTypeTemplates' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListProfileObjectTypeTemplates' :: ListProfileObjectTypeTemplates -> Maybe Text
$sel:maxResults:ListProfileObjectTypeTemplates' :: ListProfileObjectTypeTemplates -> 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

instance
  Data.ToHeaders
    ListProfileObjectTypeTemplates
  where
  toHeaders :: ListProfileObjectTypeTemplates -> 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 ListProfileObjectTypeTemplates where
  toPath :: ListProfileObjectTypeTemplates -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/templates"

instance Data.ToQuery ListProfileObjectTypeTemplates where
  toQuery :: ListProfileObjectTypeTemplates -> QueryString
toQuery ListProfileObjectTypeTemplates' {Maybe Natural
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:nextToken:ListProfileObjectTypeTemplates' :: ListProfileObjectTypeTemplates -> Maybe Text
$sel:maxResults:ListProfileObjectTypeTemplates' :: ListProfileObjectTypeTemplates -> Maybe Natural
..} =
    forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"max-results" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Natural
maxResults,
        ByteString
"next-token" forall a. ToQuery a => ByteString -> a -> QueryString
Data.=: Maybe Text
nextToken
      ]

-- | /See:/ 'newListProfileObjectTypeTemplatesResponse' smart constructor.
data ListProfileObjectTypeTemplatesResponse = ListProfileObjectTypeTemplatesResponse'
  { -- | The list of ListProfileObjectType template instances.
    ListProfileObjectTypeTemplatesResponse
-> Maybe [ListProfileObjectTypeTemplateItem]
items :: Prelude.Maybe [ListProfileObjectTypeTemplateItem],
    -- | The pagination token from the previous ListObjectTypeTemplates API call.
    ListProfileObjectTypeTemplatesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListProfileObjectTypeTemplatesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListProfileObjectTypeTemplatesResponse
-> ListProfileObjectTypeTemplatesResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListProfileObjectTypeTemplatesResponse
-> ListProfileObjectTypeTemplatesResponse -> Bool
$c/= :: ListProfileObjectTypeTemplatesResponse
-> ListProfileObjectTypeTemplatesResponse -> Bool
== :: ListProfileObjectTypeTemplatesResponse
-> ListProfileObjectTypeTemplatesResponse -> Bool
$c== :: ListProfileObjectTypeTemplatesResponse
-> ListProfileObjectTypeTemplatesResponse -> Bool
Prelude.Eq, ReadPrec [ListProfileObjectTypeTemplatesResponse]
ReadPrec ListProfileObjectTypeTemplatesResponse
Int -> ReadS ListProfileObjectTypeTemplatesResponse
ReadS [ListProfileObjectTypeTemplatesResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListProfileObjectTypeTemplatesResponse]
$creadListPrec :: ReadPrec [ListProfileObjectTypeTemplatesResponse]
readPrec :: ReadPrec ListProfileObjectTypeTemplatesResponse
$creadPrec :: ReadPrec ListProfileObjectTypeTemplatesResponse
readList :: ReadS [ListProfileObjectTypeTemplatesResponse]
$creadList :: ReadS [ListProfileObjectTypeTemplatesResponse]
readsPrec :: Int -> ReadS ListProfileObjectTypeTemplatesResponse
$creadsPrec :: Int -> ReadS ListProfileObjectTypeTemplatesResponse
Prelude.Read, Int -> ListProfileObjectTypeTemplatesResponse -> ShowS
[ListProfileObjectTypeTemplatesResponse] -> ShowS
ListProfileObjectTypeTemplatesResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListProfileObjectTypeTemplatesResponse] -> ShowS
$cshowList :: [ListProfileObjectTypeTemplatesResponse] -> ShowS
show :: ListProfileObjectTypeTemplatesResponse -> String
$cshow :: ListProfileObjectTypeTemplatesResponse -> String
showsPrec :: Int -> ListProfileObjectTypeTemplatesResponse -> ShowS
$cshowsPrec :: Int -> ListProfileObjectTypeTemplatesResponse -> ShowS
Prelude.Show, forall x.
Rep ListProfileObjectTypeTemplatesResponse x
-> ListProfileObjectTypeTemplatesResponse
forall x.
ListProfileObjectTypeTemplatesResponse
-> Rep ListProfileObjectTypeTemplatesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListProfileObjectTypeTemplatesResponse x
-> ListProfileObjectTypeTemplatesResponse
$cfrom :: forall x.
ListProfileObjectTypeTemplatesResponse
-> Rep ListProfileObjectTypeTemplatesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListProfileObjectTypeTemplatesResponse' 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:
--
-- 'items', 'listProfileObjectTypeTemplatesResponse_items' - The list of ListProfileObjectType template instances.
--
-- 'nextToken', 'listProfileObjectTypeTemplatesResponse_nextToken' - The pagination token from the previous ListObjectTypeTemplates API call.
--
-- 'httpStatus', 'listProfileObjectTypeTemplatesResponse_httpStatus' - The response's http status code.
newListProfileObjectTypeTemplatesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListProfileObjectTypeTemplatesResponse
newListProfileObjectTypeTemplatesResponse :: Int -> ListProfileObjectTypeTemplatesResponse
newListProfileObjectTypeTemplatesResponse
  Int
pHttpStatus_ =
    ListProfileObjectTypeTemplatesResponse'
      { $sel:items:ListProfileObjectTypeTemplatesResponse' :: Maybe [ListProfileObjectTypeTemplateItem]
items =
          forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListProfileObjectTypeTemplatesResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListProfileObjectTypeTemplatesResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The list of ListProfileObjectType template instances.
listProfileObjectTypeTemplatesResponse_items :: Lens.Lens' ListProfileObjectTypeTemplatesResponse (Prelude.Maybe [ListProfileObjectTypeTemplateItem])
listProfileObjectTypeTemplatesResponse_items :: Lens'
  ListProfileObjectTypeTemplatesResponse
  (Maybe [ListProfileObjectTypeTemplateItem])
listProfileObjectTypeTemplatesResponse_items = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjectTypeTemplatesResponse' {Maybe [ListProfileObjectTypeTemplateItem]
items :: Maybe [ListProfileObjectTypeTemplateItem]
$sel:items:ListProfileObjectTypeTemplatesResponse' :: ListProfileObjectTypeTemplatesResponse
-> Maybe [ListProfileObjectTypeTemplateItem]
items} -> Maybe [ListProfileObjectTypeTemplateItem]
items) (\s :: ListProfileObjectTypeTemplatesResponse
s@ListProfileObjectTypeTemplatesResponse' {} Maybe [ListProfileObjectTypeTemplateItem]
a -> ListProfileObjectTypeTemplatesResponse
s {$sel:items:ListProfileObjectTypeTemplatesResponse' :: Maybe [ListProfileObjectTypeTemplateItem]
items = Maybe [ListProfileObjectTypeTemplateItem]
a} :: ListProfileObjectTypeTemplatesResponse) 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 pagination token from the previous ListObjectTypeTemplates API call.
listProfileObjectTypeTemplatesResponse_nextToken :: Lens.Lens' ListProfileObjectTypeTemplatesResponse (Prelude.Maybe Prelude.Text)
listProfileObjectTypeTemplatesResponse_nextToken :: Lens' ListProfileObjectTypeTemplatesResponse (Maybe Text)
listProfileObjectTypeTemplatesResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListProfileObjectTypeTemplatesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListProfileObjectTypeTemplatesResponse' :: ListProfileObjectTypeTemplatesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListProfileObjectTypeTemplatesResponse
s@ListProfileObjectTypeTemplatesResponse' {} Maybe Text
a -> ListProfileObjectTypeTemplatesResponse
s {$sel:nextToken:ListProfileObjectTypeTemplatesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListProfileObjectTypeTemplatesResponse)

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

instance
  Prelude.NFData
    ListProfileObjectTypeTemplatesResponse
  where
  rnf :: ListProfileObjectTypeTemplatesResponse -> ()
rnf ListProfileObjectTypeTemplatesResponse' {Int
Maybe [ListProfileObjectTypeTemplateItem]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
items :: Maybe [ListProfileObjectTypeTemplateItem]
$sel:httpStatus:ListProfileObjectTypeTemplatesResponse' :: ListProfileObjectTypeTemplatesResponse -> Int
$sel:nextToken:ListProfileObjectTypeTemplatesResponse' :: ListProfileObjectTypeTemplatesResponse -> Maybe Text
$sel:items:ListProfileObjectTypeTemplatesResponse' :: ListProfileObjectTypeTemplatesResponse
-> Maybe [ListProfileObjectTypeTemplateItem]
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe [ListProfileObjectTypeTemplateItem]
items
      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