{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}
module Amazonka.QuickSight.ListThemes
(
ListThemes (..),
newListThemes,
listThemes_nextToken,
listThemes_type,
listThemes_maxResults,
listThemes_awsAccountId,
ListThemesResponse (..),
newListThemesResponse,
listThemesResponse_requestId,
listThemesResponse_themeSummaryList,
listThemesResponse_nextToken,
listThemesResponse_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
data ListThemes = ListThemes'
{
ListThemes -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListThemes -> Maybe ThemeType
type' :: Prelude.Maybe ThemeType,
ListThemes -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListThemes -> Text
awsAccountId :: Prelude.Text
}
deriving (ListThemes -> ListThemes -> Bool
(ListThemes -> ListThemes -> Bool)
-> (ListThemes -> ListThemes -> Bool) -> Eq ListThemes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListThemes -> ListThemes -> Bool
$c/= :: ListThemes -> ListThemes -> Bool
== :: ListThemes -> ListThemes -> Bool
$c== :: ListThemes -> ListThemes -> Bool
Prelude.Eq, ReadPrec [ListThemes]
ReadPrec ListThemes
Int -> ReadS ListThemes
ReadS [ListThemes]
(Int -> ReadS ListThemes)
-> ReadS [ListThemes]
-> ReadPrec ListThemes
-> ReadPrec [ListThemes]
-> Read ListThemes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListThemes]
$creadListPrec :: ReadPrec [ListThemes]
readPrec :: ReadPrec ListThemes
$creadPrec :: ReadPrec ListThemes
readList :: ReadS [ListThemes]
$creadList :: ReadS [ListThemes]
readsPrec :: Int -> ReadS ListThemes
$creadsPrec :: Int -> ReadS ListThemes
Prelude.Read, Int -> ListThemes -> ShowS
[ListThemes] -> ShowS
ListThemes -> String
(Int -> ListThemes -> ShowS)
-> (ListThemes -> String)
-> ([ListThemes] -> ShowS)
-> Show ListThemes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListThemes] -> ShowS
$cshowList :: [ListThemes] -> ShowS
show :: ListThemes -> String
$cshow :: ListThemes -> String
showsPrec :: Int -> ListThemes -> ShowS
$cshowsPrec :: Int -> ListThemes -> ShowS
Prelude.Show, (forall x. ListThemes -> Rep ListThemes x)
-> (forall x. Rep ListThemes x -> ListThemes) -> Generic ListThemes
forall x. Rep ListThemes x -> ListThemes
forall x. ListThemes -> Rep ListThemes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListThemes x -> ListThemes
$cfrom :: forall x. ListThemes -> Rep ListThemes x
Prelude.Generic)
newListThemes ::
Prelude.Text ->
ListThemes
newListThemes :: Text -> ListThemes
newListThemes Text
pAwsAccountId_ =
ListThemes' :: Maybe Text
-> Maybe ThemeType -> Maybe Natural -> Text -> ListThemes
ListThemes'
{ $sel:nextToken:ListThemes' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:type':ListThemes' :: Maybe ThemeType
type' = Maybe ThemeType
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListThemes' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:awsAccountId:ListThemes' :: Text
awsAccountId = Text
pAwsAccountId_
}
listThemes_nextToken :: Lens.Lens' ListThemes (Prelude.Maybe Prelude.Text)
listThemes_nextToken :: (Maybe Text -> f (Maybe Text)) -> ListThemes -> f ListThemes
listThemes_nextToken = (ListThemes -> Maybe Text)
-> (ListThemes -> Maybe Text -> ListThemes)
-> Lens ListThemes ListThemes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemes' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListThemes' :: ListThemes -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListThemes
s@ListThemes' {} Maybe Text
a -> ListThemes
s {$sel:nextToken:ListThemes' :: Maybe Text
nextToken = Maybe Text
a} :: ListThemes)
listThemes_type :: Lens.Lens' ListThemes (Prelude.Maybe ThemeType)
listThemes_type :: (Maybe ThemeType -> f (Maybe ThemeType))
-> ListThemes -> f ListThemes
listThemes_type = (ListThemes -> Maybe ThemeType)
-> (ListThemes -> Maybe ThemeType -> ListThemes)
-> Lens ListThemes ListThemes (Maybe ThemeType) (Maybe ThemeType)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemes' {Maybe ThemeType
type' :: Maybe ThemeType
$sel:type':ListThemes' :: ListThemes -> Maybe ThemeType
type'} -> Maybe ThemeType
type') (\s :: ListThemes
s@ListThemes' {} Maybe ThemeType
a -> ListThemes
s {$sel:type':ListThemes' :: Maybe ThemeType
type' = Maybe ThemeType
a} :: ListThemes)
listThemes_maxResults :: Lens.Lens' ListThemes (Prelude.Maybe Prelude.Natural)
listThemes_maxResults :: (Maybe Natural -> f (Maybe Natural)) -> ListThemes -> f ListThemes
listThemes_maxResults = (ListThemes -> Maybe Natural)
-> (ListThemes -> Maybe Natural -> ListThemes)
-> Lens ListThemes ListThemes (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemes' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListThemes' :: ListThemes -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListThemes
s@ListThemes' {} Maybe Natural
a -> ListThemes
s {$sel:maxResults:ListThemes' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListThemes)
listThemes_awsAccountId :: Lens.Lens' ListThemes Prelude.Text
listThemes_awsAccountId :: (Text -> f Text) -> ListThemes -> f ListThemes
listThemes_awsAccountId = (ListThemes -> Text)
-> (ListThemes -> Text -> ListThemes)
-> Lens ListThemes ListThemes Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemes' {Text
awsAccountId :: Text
$sel:awsAccountId:ListThemes' :: ListThemes -> Text
awsAccountId} -> Text
awsAccountId) (\s :: ListThemes
s@ListThemes' {} Text
a -> ListThemes
s {$sel:awsAccountId:ListThemes' :: Text
awsAccountId = Text
a} :: ListThemes)
instance Core.AWSPager ListThemes where
page :: ListThemes -> AWSResponse ListThemes -> Maybe ListThemes
page ListThemes
rq AWSResponse ListThemes
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListThemes
ListThemesResponse
rs
ListThemesResponse
-> Getting (First Text) ListThemesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListThemesResponse -> Const (First Text) ListThemesResponse
Lens' ListThemesResponse (Maybe Text)
listThemesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListThemesResponse -> Const (First Text) ListThemesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListThemesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListThemes
forall a. Maybe a
Prelude.Nothing
| Maybe [ThemeSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListThemes
ListThemesResponse
rs
ListThemesResponse
-> Getting (First [ThemeSummary]) ListThemesResponse [ThemeSummary]
-> Maybe [ThemeSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ThemeSummary]
-> Const (First [ThemeSummary]) (Maybe [ThemeSummary]))
-> ListThemesResponse
-> Const (First [ThemeSummary]) ListThemesResponse
Lens' ListThemesResponse (Maybe [ThemeSummary])
listThemesResponse_themeSummaryList
((Maybe [ThemeSummary]
-> Const (First [ThemeSummary]) (Maybe [ThemeSummary]))
-> ListThemesResponse
-> Const (First [ThemeSummary]) ListThemesResponse)
-> (([ThemeSummary] -> Const (First [ThemeSummary]) [ThemeSummary])
-> Maybe [ThemeSummary]
-> Const (First [ThemeSummary]) (Maybe [ThemeSummary]))
-> Getting (First [ThemeSummary]) ListThemesResponse [ThemeSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ThemeSummary] -> Const (First [ThemeSummary]) [ThemeSummary])
-> Maybe [ThemeSummary]
-> Const (First [ThemeSummary]) (Maybe [ThemeSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListThemes
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListThemes -> Maybe ListThemes
forall a. a -> Maybe a
Prelude.Just (ListThemes -> Maybe ListThemes) -> ListThemes -> Maybe ListThemes
forall a b. (a -> b) -> a -> b
Prelude.$
ListThemes
rq
ListThemes -> (ListThemes -> ListThemes) -> ListThemes
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListThemes -> Identity ListThemes
Lens ListThemes ListThemes (Maybe Text) (Maybe Text)
listThemes_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListThemes -> Identity ListThemes)
-> Maybe Text -> ListThemes -> ListThemes
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListThemes
ListThemesResponse
rs
ListThemesResponse
-> Getting (First Text) ListThemesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListThemesResponse -> Const (First Text) ListThemesResponse
Lens' ListThemesResponse (Maybe Text)
listThemesResponse_nextToken ((Maybe Text -> Const (First Text) (Maybe Text))
-> ListThemesResponse -> Const (First Text) ListThemesResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListThemesResponse Text
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. (Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text)
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
instance Core.AWSRequest ListThemes where
type AWSResponse ListThemes = ListThemesResponse
request :: ListThemes -> Request ListThemes
request = Service -> ListThemes -> Request ListThemes
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListThemes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListThemes)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListThemes))
-> Logger
-> Service
-> Proxy ListThemes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse ListThemes)))
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 [ThemeSummary] -> Maybe Text -> Int -> ListThemesResponse
ListThemesResponse'
(Maybe Text
-> Maybe [ThemeSummary] -> Maybe Text -> Int -> ListThemesResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ThemeSummary] -> Maybe Text -> Int -> ListThemesResponse)
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 [ThemeSummary] -> Maybe Text -> Int -> ListThemesResponse)
-> Either String (Maybe [ThemeSummary])
-> Either String (Maybe Text -> Int -> ListThemesResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object -> Text -> Either String (Maybe (Maybe [ThemeSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ThemeSummaryList"
Either String (Maybe (Maybe [ThemeSummary]))
-> Maybe [ThemeSummary] -> Either String (Maybe [ThemeSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ThemeSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListThemesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListThemesResponse)
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 -> ListThemesResponse)
-> Either String Int -> Either String ListThemesResponse
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 ListThemes
instance Prelude.NFData ListThemes
instance Core.ToHeaders ListThemes where
toHeaders :: ListThemes -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListThemes -> 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 ListThemes where
toPath :: ListThemes -> ByteString
toPath ListThemes' {Maybe Natural
Maybe Text
Maybe ThemeType
Text
awsAccountId :: Text
maxResults :: Maybe Natural
type' :: Maybe ThemeType
nextToken :: Maybe Text
$sel:awsAccountId:ListThemes' :: ListThemes -> Text
$sel:maxResults:ListThemes' :: ListThemes -> Maybe Natural
$sel:type':ListThemes' :: ListThemes -> Maybe ThemeType
$sel:nextToken:ListThemes' :: ListThemes -> 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"]
instance Core.ToQuery ListThemes where
toQuery :: ListThemes -> QueryString
toQuery ListThemes' {Maybe Natural
Maybe Text
Maybe ThemeType
Text
awsAccountId :: Text
maxResults :: Maybe Natural
type' :: Maybe ThemeType
nextToken :: Maybe Text
$sel:awsAccountId:ListThemes' :: ListThemes -> Text
$sel:maxResults:ListThemes' :: ListThemes -> Maybe Natural
$sel:type':ListThemes' :: ListThemes -> Maybe ThemeType
$sel:nextToken:ListThemes' :: ListThemes -> 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
"type" ByteString -> Maybe ThemeType -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe ThemeType
type',
ByteString
"max-results" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListThemesResponse = ListThemesResponse'
{
ListThemesResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
ListThemesResponse -> Maybe [ThemeSummary]
themeSummaryList :: Prelude.Maybe [ThemeSummary],
ListThemesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListThemesResponse -> Int
status :: Prelude.Int
}
deriving (ListThemesResponse -> ListThemesResponse -> Bool
(ListThemesResponse -> ListThemesResponse -> Bool)
-> (ListThemesResponse -> ListThemesResponse -> Bool)
-> Eq ListThemesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListThemesResponse -> ListThemesResponse -> Bool
$c/= :: ListThemesResponse -> ListThemesResponse -> Bool
== :: ListThemesResponse -> ListThemesResponse -> Bool
$c== :: ListThemesResponse -> ListThemesResponse -> Bool
Prelude.Eq, ReadPrec [ListThemesResponse]
ReadPrec ListThemesResponse
Int -> ReadS ListThemesResponse
ReadS [ListThemesResponse]
(Int -> ReadS ListThemesResponse)
-> ReadS [ListThemesResponse]
-> ReadPrec ListThemesResponse
-> ReadPrec [ListThemesResponse]
-> Read ListThemesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListThemesResponse]
$creadListPrec :: ReadPrec [ListThemesResponse]
readPrec :: ReadPrec ListThemesResponse
$creadPrec :: ReadPrec ListThemesResponse
readList :: ReadS [ListThemesResponse]
$creadList :: ReadS [ListThemesResponse]
readsPrec :: Int -> ReadS ListThemesResponse
$creadsPrec :: Int -> ReadS ListThemesResponse
Prelude.Read, Int -> ListThemesResponse -> ShowS
[ListThemesResponse] -> ShowS
ListThemesResponse -> String
(Int -> ListThemesResponse -> ShowS)
-> (ListThemesResponse -> String)
-> ([ListThemesResponse] -> ShowS)
-> Show ListThemesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListThemesResponse] -> ShowS
$cshowList :: [ListThemesResponse] -> ShowS
show :: ListThemesResponse -> String
$cshow :: ListThemesResponse -> String
showsPrec :: Int -> ListThemesResponse -> ShowS
$cshowsPrec :: Int -> ListThemesResponse -> ShowS
Prelude.Show, (forall x. ListThemesResponse -> Rep ListThemesResponse x)
-> (forall x. Rep ListThemesResponse x -> ListThemesResponse)
-> Generic ListThemesResponse
forall x. Rep ListThemesResponse x -> ListThemesResponse
forall x. ListThemesResponse -> Rep ListThemesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListThemesResponse x -> ListThemesResponse
$cfrom :: forall x. ListThemesResponse -> Rep ListThemesResponse x
Prelude.Generic)
newListThemesResponse ::
Prelude.Int ->
ListThemesResponse
newListThemesResponse :: Int -> ListThemesResponse
newListThemesResponse Int
pStatus_ =
ListThemesResponse' :: Maybe Text
-> Maybe [ThemeSummary] -> Maybe Text -> Int -> ListThemesResponse
ListThemesResponse'
{ $sel:requestId:ListThemesResponse' :: Maybe Text
requestId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:themeSummaryList:ListThemesResponse' :: Maybe [ThemeSummary]
themeSummaryList = Maybe [ThemeSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListThemesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:ListThemesResponse' :: Int
status = Int
pStatus_
}
listThemesResponse_requestId :: Lens.Lens' ListThemesResponse (Prelude.Maybe Prelude.Text)
listThemesResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> ListThemesResponse -> f ListThemesResponse
listThemesResponse_requestId = (ListThemesResponse -> Maybe Text)
-> (ListThemesResponse -> Maybe Text -> ListThemesResponse)
-> Lens' ListThemesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemesResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:ListThemesResponse' :: ListThemesResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: ListThemesResponse
s@ListThemesResponse' {} Maybe Text
a -> ListThemesResponse
s {$sel:requestId:ListThemesResponse' :: Maybe Text
requestId = Maybe Text
a} :: ListThemesResponse)
listThemesResponse_themeSummaryList :: Lens.Lens' ListThemesResponse (Prelude.Maybe [ThemeSummary])
listThemesResponse_themeSummaryList :: (Maybe [ThemeSummary] -> f (Maybe [ThemeSummary]))
-> ListThemesResponse -> f ListThemesResponse
listThemesResponse_themeSummaryList = (ListThemesResponse -> Maybe [ThemeSummary])
-> (ListThemesResponse
-> Maybe [ThemeSummary] -> ListThemesResponse)
-> Lens' ListThemesResponse (Maybe [ThemeSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemesResponse' {Maybe [ThemeSummary]
themeSummaryList :: Maybe [ThemeSummary]
$sel:themeSummaryList:ListThemesResponse' :: ListThemesResponse -> Maybe [ThemeSummary]
themeSummaryList} -> Maybe [ThemeSummary]
themeSummaryList) (\s :: ListThemesResponse
s@ListThemesResponse' {} Maybe [ThemeSummary]
a -> ListThemesResponse
s {$sel:themeSummaryList:ListThemesResponse' :: Maybe [ThemeSummary]
themeSummaryList = Maybe [ThemeSummary]
a} :: ListThemesResponse) ((Maybe [ThemeSummary] -> f (Maybe [ThemeSummary]))
-> ListThemesResponse -> f ListThemesResponse)
-> ((Maybe [ThemeSummary] -> f (Maybe [ThemeSummary]))
-> Maybe [ThemeSummary] -> f (Maybe [ThemeSummary]))
-> (Maybe [ThemeSummary] -> f (Maybe [ThemeSummary]))
-> ListThemesResponse
-> f ListThemesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [ThemeSummary] [ThemeSummary] [ThemeSummary] [ThemeSummary]
-> Iso
(Maybe [ThemeSummary])
(Maybe [ThemeSummary])
(Maybe [ThemeSummary])
(Maybe [ThemeSummary])
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 [ThemeSummary] [ThemeSummary] [ThemeSummary] [ThemeSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listThemesResponse_nextToken :: Lens.Lens' ListThemesResponse (Prelude.Maybe Prelude.Text)
listThemesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListThemesResponse -> f ListThemesResponse
listThemesResponse_nextToken = (ListThemesResponse -> Maybe Text)
-> (ListThemesResponse -> Maybe Text -> ListThemesResponse)
-> Lens' ListThemesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListThemesResponse' :: ListThemesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListThemesResponse
s@ListThemesResponse' {} Maybe Text
a -> ListThemesResponse
s {$sel:nextToken:ListThemesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListThemesResponse)
listThemesResponse_status :: Lens.Lens' ListThemesResponse Prelude.Int
listThemesResponse_status :: (Int -> f Int) -> ListThemesResponse -> f ListThemesResponse
listThemesResponse_status = (ListThemesResponse -> Int)
-> (ListThemesResponse -> Int -> ListThemesResponse)
-> Lens ListThemesResponse ListThemesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemesResponse' {Int
status :: Int
$sel:status:ListThemesResponse' :: ListThemesResponse -> Int
status} -> Int
status) (\s :: ListThemesResponse
s@ListThemesResponse' {} Int
a -> ListThemesResponse
s {$sel:status:ListThemesResponse' :: Int
status = Int
a} :: ListThemesResponse)
instance Prelude.NFData ListThemesResponse