{-# 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.QuickSight.ListThemeAliases
-- 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)
--
-- Lists all the aliases of a theme.
module Amazonka.QuickSight.ListThemeAliases
  ( -- * Creating a Request
    ListThemeAliases (..),
    newListThemeAliases,

    -- * Request Lenses
    listThemeAliases_nextToken,
    listThemeAliases_maxResults,
    listThemeAliases_awsAccountId,
    listThemeAliases_themeId,

    -- * Destructuring the Response
    ListThemeAliasesResponse (..),
    newListThemeAliasesResponse,

    -- * Response Lenses
    listThemeAliasesResponse_requestId,
    listThemeAliasesResponse_nextToken,
    listThemeAliasesResponse_themeAliasList,
    listThemeAliasesResponse_status,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import Amazonka.QuickSight.Types
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListThemeAliases' smart constructor.
data ListThemeAliases = ListThemeAliases'
  { -- | The token for the next set of results, or null if there are no more
    -- results.
    ListThemeAliases -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of results to be returned per request.
    ListThemeAliases -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The ID of the Amazon Web Services account that contains the theme
    -- aliases that you\'re listing.
    ListThemeAliases -> Text
awsAccountId :: Prelude.Text,
    -- | The ID for the theme.
    ListThemeAliases -> Text
themeId :: Prelude.Text
  }
  deriving (ListThemeAliases -> ListThemeAliases -> Bool
(ListThemeAliases -> ListThemeAliases -> Bool)
-> (ListThemeAliases -> ListThemeAliases -> Bool)
-> Eq ListThemeAliases
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListThemeAliases -> ListThemeAliases -> Bool
$c/= :: ListThemeAliases -> ListThemeAliases -> Bool
== :: ListThemeAliases -> ListThemeAliases -> Bool
$c== :: ListThemeAliases -> ListThemeAliases -> Bool
Prelude.Eq, ReadPrec [ListThemeAliases]
ReadPrec ListThemeAliases
Int -> ReadS ListThemeAliases
ReadS [ListThemeAliases]
(Int -> ReadS ListThemeAliases)
-> ReadS [ListThemeAliases]
-> ReadPrec ListThemeAliases
-> ReadPrec [ListThemeAliases]
-> Read ListThemeAliases
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListThemeAliases]
$creadListPrec :: ReadPrec [ListThemeAliases]
readPrec :: ReadPrec ListThemeAliases
$creadPrec :: ReadPrec ListThemeAliases
readList :: ReadS [ListThemeAliases]
$creadList :: ReadS [ListThemeAliases]
readsPrec :: Int -> ReadS ListThemeAliases
$creadsPrec :: Int -> ReadS ListThemeAliases
Prelude.Read, Int -> ListThemeAliases -> ShowS
[ListThemeAliases] -> ShowS
ListThemeAliases -> String
(Int -> ListThemeAliases -> ShowS)
-> (ListThemeAliases -> String)
-> ([ListThemeAliases] -> ShowS)
-> Show ListThemeAliases
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListThemeAliases] -> ShowS
$cshowList :: [ListThemeAliases] -> ShowS
show :: ListThemeAliases -> String
$cshow :: ListThemeAliases -> String
showsPrec :: Int -> ListThemeAliases -> ShowS
$cshowsPrec :: Int -> ListThemeAliases -> ShowS
Prelude.Show, (forall x. ListThemeAliases -> Rep ListThemeAliases x)
-> (forall x. Rep ListThemeAliases x -> ListThemeAliases)
-> Generic ListThemeAliases
forall x. Rep ListThemeAliases x -> ListThemeAliases
forall x. ListThemeAliases -> Rep ListThemeAliases x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListThemeAliases x -> ListThemeAliases
$cfrom :: forall x. ListThemeAliases -> Rep ListThemeAliases x
Prelude.Generic)

-- |
-- Create a value of 'ListThemeAliases' 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', 'listThemeAliases_nextToken' - The token for the next set of results, or null if there are no more
-- results.
--
-- 'maxResults', 'listThemeAliases_maxResults' - The maximum number of results to be returned per request.
--
-- 'awsAccountId', 'listThemeAliases_awsAccountId' - The ID of the Amazon Web Services account that contains the theme
-- aliases that you\'re listing.
--
-- 'themeId', 'listThemeAliases_themeId' - The ID for the theme.
newListThemeAliases ::
  -- | 'awsAccountId'
  Prelude.Text ->
  -- | 'themeId'
  Prelude.Text ->
  ListThemeAliases
newListThemeAliases :: Text -> Text -> ListThemeAliases
newListThemeAliases Text
pAwsAccountId_ Text
pThemeId_ =
  ListThemeAliases' :: Maybe Text -> Maybe Natural -> Text -> Text -> ListThemeAliases
ListThemeAliases'
    { $sel:nextToken:ListThemeAliases' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListThemeAliases' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
      $sel:awsAccountId:ListThemeAliases' :: Text
awsAccountId = Text
pAwsAccountId_,
      $sel:themeId:ListThemeAliases' :: Text
themeId = Text
pThemeId_
    }

-- | The token for the next set of results, or null if there are no more
-- results.
listThemeAliases_nextToken :: Lens.Lens' ListThemeAliases (Prelude.Maybe Prelude.Text)
listThemeAliases_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListThemeAliases -> f ListThemeAliases
listThemeAliases_nextToken = (ListThemeAliases -> Maybe Text)
-> (ListThemeAliases -> Maybe Text -> ListThemeAliases)
-> Lens ListThemeAliases ListThemeAliases (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeAliases' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListThemeAliases' :: ListThemeAliases -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListThemeAliases
s@ListThemeAliases' {} Maybe Text
a -> ListThemeAliases
s {$sel:nextToken:ListThemeAliases' :: Maybe Text
nextToken = Maybe Text
a} :: ListThemeAliases)

-- | The maximum number of results to be returned per request.
listThemeAliases_maxResults :: Lens.Lens' ListThemeAliases (Prelude.Maybe Prelude.Natural)
listThemeAliases_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListThemeAliases -> f ListThemeAliases
listThemeAliases_maxResults = (ListThemeAliases -> Maybe Natural)
-> (ListThemeAliases -> Maybe Natural -> ListThemeAliases)
-> Lens
     ListThemeAliases ListThemeAliases (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeAliases' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListThemeAliases' :: ListThemeAliases -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListThemeAliases
s@ListThemeAliases' {} Maybe Natural
a -> ListThemeAliases
s {$sel:maxResults:ListThemeAliases' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListThemeAliases)

-- | The ID of the Amazon Web Services account that contains the theme
-- aliases that you\'re listing.
listThemeAliases_awsAccountId :: Lens.Lens' ListThemeAliases Prelude.Text
listThemeAliases_awsAccountId :: (Text -> f Text) -> ListThemeAliases -> f ListThemeAliases
listThemeAliases_awsAccountId = (ListThemeAliases -> Text)
-> (ListThemeAliases -> Text -> ListThemeAliases)
-> Lens ListThemeAliases ListThemeAliases Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeAliases' {Text
awsAccountId :: Text
$sel:awsAccountId:ListThemeAliases' :: ListThemeAliases -> Text
awsAccountId} -> Text
awsAccountId) (\s :: ListThemeAliases
s@ListThemeAliases' {} Text
a -> ListThemeAliases
s {$sel:awsAccountId:ListThemeAliases' :: Text
awsAccountId = Text
a} :: ListThemeAliases)

-- | The ID for the theme.
listThemeAliases_themeId :: Lens.Lens' ListThemeAliases Prelude.Text
listThemeAliases_themeId :: (Text -> f Text) -> ListThemeAliases -> f ListThemeAliases
listThemeAliases_themeId = (ListThemeAliases -> Text)
-> (ListThemeAliases -> Text -> ListThemeAliases)
-> Lens ListThemeAliases ListThemeAliases Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeAliases' {Text
themeId :: Text
$sel:themeId:ListThemeAliases' :: ListThemeAliases -> Text
themeId} -> Text
themeId) (\s :: ListThemeAliases
s@ListThemeAliases' {} Text
a -> ListThemeAliases
s {$sel:themeId:ListThemeAliases' :: Text
themeId = Text
a} :: ListThemeAliases)

instance Core.AWSRequest ListThemeAliases where
  type
    AWSResponse ListThemeAliases =
      ListThemeAliasesResponse
  request :: ListThemeAliases -> Request ListThemeAliases
request = Service -> ListThemeAliases -> Request ListThemeAliases
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListThemeAliases
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListThemeAliases)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListThemeAliases))
-> Logger
-> Service
-> Proxy ListThemeAliases
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListThemeAliases)))
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 Text
-> Maybe Text
-> Maybe [ThemeAlias]
-> Int
-> ListThemeAliasesResponse
ListThemeAliasesResponse'
            (Maybe Text
 -> Maybe Text
 -> Maybe [ThemeAlias]
 -> Int
 -> ListThemeAliasesResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe Text
      -> Maybe [ThemeAlias] -> Int -> ListThemeAliasesResponse)
forall (f :: * -> *) a b. Functor 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
"RequestId")
            Either
  String
  (Maybe Text
   -> Maybe [ThemeAlias] -> Int -> ListThemeAliasesResponse)
-> Either String (Maybe Text)
-> Either
     String (Maybe [ThemeAlias] -> Int -> ListThemeAliasesResponse)
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 (Maybe [ThemeAlias] -> Int -> ListThemeAliasesResponse)
-> Either String (Maybe [ThemeAlias])
-> Either String (Int -> ListThemeAliasesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe (Maybe [ThemeAlias]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ThemeAliasList" Either String (Maybe (Maybe [ThemeAlias]))
-> Maybe [ThemeAlias] -> Either String (Maybe [ThemeAlias])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ThemeAlias]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Int -> ListThemeAliasesResponse)
-> Either String Int -> Either String ListThemeAliasesResponse
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 ListThemeAliases

instance Prelude.NFData ListThemeAliases

instance Core.ToHeaders ListThemeAliases where
  toHeaders :: ListThemeAliases -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListThemeAliases -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.0" ::
                          Prelude.ByteString
                      )
          ]
      )

instance Core.ToPath ListThemeAliases where
  toPath :: ListThemeAliases -> ByteString
toPath ListThemeAliases' {Maybe Natural
Maybe Text
Text
themeId :: Text
awsAccountId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:themeId:ListThemeAliases' :: ListThemeAliases -> Text
$sel:awsAccountId:ListThemeAliases' :: ListThemeAliases -> Text
$sel:maxResults:ListThemeAliases' :: ListThemeAliases -> Maybe Natural
$sel:nextToken:ListThemeAliases' :: ListThemeAliases -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/accounts/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
awsAccountId,
        ByteString
"/themes/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
themeId,
        ByteString
"/aliases"
      ]

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

-- | /See:/ 'newListThemeAliasesResponse' smart constructor.
data ListThemeAliasesResponse = ListThemeAliasesResponse'
  { -- | The Amazon Web Services request ID for this operation.
    ListThemeAliasesResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
    -- | The token for the next set of results, or null if there are no more
    -- results.
    ListThemeAliasesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A structure containing the list of the theme\'s aliases.
    ListThemeAliasesResponse -> Maybe [ThemeAlias]
themeAliasList :: Prelude.Maybe [ThemeAlias],
    -- | The HTTP status of the request.
    ListThemeAliasesResponse -> Int
status :: Prelude.Int
  }
  deriving (ListThemeAliasesResponse -> ListThemeAliasesResponse -> Bool
(ListThemeAliasesResponse -> ListThemeAliasesResponse -> Bool)
-> (ListThemeAliasesResponse -> ListThemeAliasesResponse -> Bool)
-> Eq ListThemeAliasesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListThemeAliasesResponse -> ListThemeAliasesResponse -> Bool
$c/= :: ListThemeAliasesResponse -> ListThemeAliasesResponse -> Bool
== :: ListThemeAliasesResponse -> ListThemeAliasesResponse -> Bool
$c== :: ListThemeAliasesResponse -> ListThemeAliasesResponse -> Bool
Prelude.Eq, ReadPrec [ListThemeAliasesResponse]
ReadPrec ListThemeAliasesResponse
Int -> ReadS ListThemeAliasesResponse
ReadS [ListThemeAliasesResponse]
(Int -> ReadS ListThemeAliasesResponse)
-> ReadS [ListThemeAliasesResponse]
-> ReadPrec ListThemeAliasesResponse
-> ReadPrec [ListThemeAliasesResponse]
-> Read ListThemeAliasesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListThemeAliasesResponse]
$creadListPrec :: ReadPrec [ListThemeAliasesResponse]
readPrec :: ReadPrec ListThemeAliasesResponse
$creadPrec :: ReadPrec ListThemeAliasesResponse
readList :: ReadS [ListThemeAliasesResponse]
$creadList :: ReadS [ListThemeAliasesResponse]
readsPrec :: Int -> ReadS ListThemeAliasesResponse
$creadsPrec :: Int -> ReadS ListThemeAliasesResponse
Prelude.Read, Int -> ListThemeAliasesResponse -> ShowS
[ListThemeAliasesResponse] -> ShowS
ListThemeAliasesResponse -> String
(Int -> ListThemeAliasesResponse -> ShowS)
-> (ListThemeAliasesResponse -> String)
-> ([ListThemeAliasesResponse] -> ShowS)
-> Show ListThemeAliasesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListThemeAliasesResponse] -> ShowS
$cshowList :: [ListThemeAliasesResponse] -> ShowS
show :: ListThemeAliasesResponse -> String
$cshow :: ListThemeAliasesResponse -> String
showsPrec :: Int -> ListThemeAliasesResponse -> ShowS
$cshowsPrec :: Int -> ListThemeAliasesResponse -> ShowS
Prelude.Show, (forall x.
 ListThemeAliasesResponse -> Rep ListThemeAliasesResponse x)
-> (forall x.
    Rep ListThemeAliasesResponse x -> ListThemeAliasesResponse)
-> Generic ListThemeAliasesResponse
forall x.
Rep ListThemeAliasesResponse x -> ListThemeAliasesResponse
forall x.
ListThemeAliasesResponse -> Rep ListThemeAliasesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListThemeAliasesResponse x -> ListThemeAliasesResponse
$cfrom :: forall x.
ListThemeAliasesResponse -> Rep ListThemeAliasesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListThemeAliasesResponse' 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:
--
-- 'requestId', 'listThemeAliasesResponse_requestId' - The Amazon Web Services request ID for this operation.
--
-- 'nextToken', 'listThemeAliasesResponse_nextToken' - The token for the next set of results, or null if there are no more
-- results.
--
-- 'themeAliasList', 'listThemeAliasesResponse_themeAliasList' - A structure containing the list of the theme\'s aliases.
--
-- 'status', 'listThemeAliasesResponse_status' - The HTTP status of the request.
newListThemeAliasesResponse ::
  -- | 'status'
  Prelude.Int ->
  ListThemeAliasesResponse
newListThemeAliasesResponse :: Int -> ListThemeAliasesResponse
newListThemeAliasesResponse Int
pStatus_ =
  ListThemeAliasesResponse' :: Maybe Text
-> Maybe Text
-> Maybe [ThemeAlias]
-> Int
-> ListThemeAliasesResponse
ListThemeAliasesResponse'
    { $sel:requestId:ListThemeAliasesResponse' :: Maybe Text
requestId =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListThemeAliasesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:themeAliasList:ListThemeAliasesResponse' :: Maybe [ThemeAlias]
themeAliasList = Maybe [ThemeAlias]
forall a. Maybe a
Prelude.Nothing,
      $sel:status:ListThemeAliasesResponse' :: Int
status = Int
pStatus_
    }

-- | The Amazon Web Services request ID for this operation.
listThemeAliasesResponse_requestId :: Lens.Lens' ListThemeAliasesResponse (Prelude.Maybe Prelude.Text)
listThemeAliasesResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> ListThemeAliasesResponse -> f ListThemeAliasesResponse
listThemeAliasesResponse_requestId = (ListThemeAliasesResponse -> Maybe Text)
-> (ListThemeAliasesResponse
    -> Maybe Text -> ListThemeAliasesResponse)
-> Lens
     ListThemeAliasesResponse
     ListThemeAliasesResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeAliasesResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:ListThemeAliasesResponse' :: ListThemeAliasesResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: ListThemeAliasesResponse
s@ListThemeAliasesResponse' {} Maybe Text
a -> ListThemeAliasesResponse
s {$sel:requestId:ListThemeAliasesResponse' :: Maybe Text
requestId = Maybe Text
a} :: ListThemeAliasesResponse)

-- | The token for the next set of results, or null if there are no more
-- results.
listThemeAliasesResponse_nextToken :: Lens.Lens' ListThemeAliasesResponse (Prelude.Maybe Prelude.Text)
listThemeAliasesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListThemeAliasesResponse -> f ListThemeAliasesResponse
listThemeAliasesResponse_nextToken = (ListThemeAliasesResponse -> Maybe Text)
-> (ListThemeAliasesResponse
    -> Maybe Text -> ListThemeAliasesResponse)
-> Lens
     ListThemeAliasesResponse
     ListThemeAliasesResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeAliasesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListThemeAliasesResponse' :: ListThemeAliasesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListThemeAliasesResponse
s@ListThemeAliasesResponse' {} Maybe Text
a -> ListThemeAliasesResponse
s {$sel:nextToken:ListThemeAliasesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListThemeAliasesResponse)

-- | A structure containing the list of the theme\'s aliases.
listThemeAliasesResponse_themeAliasList :: Lens.Lens' ListThemeAliasesResponse (Prelude.Maybe [ThemeAlias])
listThemeAliasesResponse_themeAliasList :: (Maybe [ThemeAlias] -> f (Maybe [ThemeAlias]))
-> ListThemeAliasesResponse -> f ListThemeAliasesResponse
listThemeAliasesResponse_themeAliasList = (ListThemeAliasesResponse -> Maybe [ThemeAlias])
-> (ListThemeAliasesResponse
    -> Maybe [ThemeAlias] -> ListThemeAliasesResponse)
-> Lens
     ListThemeAliasesResponse
     ListThemeAliasesResponse
     (Maybe [ThemeAlias])
     (Maybe [ThemeAlias])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeAliasesResponse' {Maybe [ThemeAlias]
themeAliasList :: Maybe [ThemeAlias]
$sel:themeAliasList:ListThemeAliasesResponse' :: ListThemeAliasesResponse -> Maybe [ThemeAlias]
themeAliasList} -> Maybe [ThemeAlias]
themeAliasList) (\s :: ListThemeAliasesResponse
s@ListThemeAliasesResponse' {} Maybe [ThemeAlias]
a -> ListThemeAliasesResponse
s {$sel:themeAliasList:ListThemeAliasesResponse' :: Maybe [ThemeAlias]
themeAliasList = Maybe [ThemeAlias]
a} :: ListThemeAliasesResponse) ((Maybe [ThemeAlias] -> f (Maybe [ThemeAlias]))
 -> ListThemeAliasesResponse -> f ListThemeAliasesResponse)
-> ((Maybe [ThemeAlias] -> f (Maybe [ThemeAlias]))
    -> Maybe [ThemeAlias] -> f (Maybe [ThemeAlias]))
-> (Maybe [ThemeAlias] -> f (Maybe [ThemeAlias]))
-> ListThemeAliasesResponse
-> f ListThemeAliasesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ThemeAlias] [ThemeAlias] [ThemeAlias] [ThemeAlias]
-> Iso
     (Maybe [ThemeAlias])
     (Maybe [ThemeAlias])
     (Maybe [ThemeAlias])
     (Maybe [ThemeAlias])
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 [ThemeAlias] [ThemeAlias] [ThemeAlias] [ThemeAlias]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The HTTP status of the request.
listThemeAliasesResponse_status :: Lens.Lens' ListThemeAliasesResponse Prelude.Int
listThemeAliasesResponse_status :: (Int -> f Int)
-> ListThemeAliasesResponse -> f ListThemeAliasesResponse
listThemeAliasesResponse_status = (ListThemeAliasesResponse -> Int)
-> (ListThemeAliasesResponse -> Int -> ListThemeAliasesResponse)
-> Lens ListThemeAliasesResponse ListThemeAliasesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeAliasesResponse' {Int
status :: Int
$sel:status:ListThemeAliasesResponse' :: ListThemeAliasesResponse -> Int
status} -> Int
status) (\s :: ListThemeAliasesResponse
s@ListThemeAliasesResponse' {} Int
a -> ListThemeAliasesResponse
s {$sel:status:ListThemeAliasesResponse' :: Int
status = Int
a} :: ListThemeAliasesResponse)

instance Prelude.NFData ListThemeAliasesResponse