{-# 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.ListThemeVersions
(
ListThemeVersions (..),
newListThemeVersions,
listThemeVersions_nextToken,
listThemeVersions_maxResults,
listThemeVersions_awsAccountId,
listThemeVersions_themeId,
ListThemeVersionsResponse (..),
newListThemeVersionsResponse,
listThemeVersionsResponse_requestId,
listThemeVersionsResponse_themeVersionSummaryList,
listThemeVersionsResponse_nextToken,
listThemeVersionsResponse_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 ListThemeVersions = ListThemeVersions'
{
ListThemeVersions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListThemeVersions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListThemeVersions -> Text
awsAccountId :: Prelude.Text,
ListThemeVersions -> Text
themeId :: Prelude.Text
}
deriving (ListThemeVersions -> ListThemeVersions -> Bool
(ListThemeVersions -> ListThemeVersions -> Bool)
-> (ListThemeVersions -> ListThemeVersions -> Bool)
-> Eq ListThemeVersions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListThemeVersions -> ListThemeVersions -> Bool
$c/= :: ListThemeVersions -> ListThemeVersions -> Bool
== :: ListThemeVersions -> ListThemeVersions -> Bool
$c== :: ListThemeVersions -> ListThemeVersions -> Bool
Prelude.Eq, ReadPrec [ListThemeVersions]
ReadPrec ListThemeVersions
Int -> ReadS ListThemeVersions
ReadS [ListThemeVersions]
(Int -> ReadS ListThemeVersions)
-> ReadS [ListThemeVersions]
-> ReadPrec ListThemeVersions
-> ReadPrec [ListThemeVersions]
-> Read ListThemeVersions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListThemeVersions]
$creadListPrec :: ReadPrec [ListThemeVersions]
readPrec :: ReadPrec ListThemeVersions
$creadPrec :: ReadPrec ListThemeVersions
readList :: ReadS [ListThemeVersions]
$creadList :: ReadS [ListThemeVersions]
readsPrec :: Int -> ReadS ListThemeVersions
$creadsPrec :: Int -> ReadS ListThemeVersions
Prelude.Read, Int -> ListThemeVersions -> ShowS
[ListThemeVersions] -> ShowS
ListThemeVersions -> String
(Int -> ListThemeVersions -> ShowS)
-> (ListThemeVersions -> String)
-> ([ListThemeVersions] -> ShowS)
-> Show ListThemeVersions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListThemeVersions] -> ShowS
$cshowList :: [ListThemeVersions] -> ShowS
show :: ListThemeVersions -> String
$cshow :: ListThemeVersions -> String
showsPrec :: Int -> ListThemeVersions -> ShowS
$cshowsPrec :: Int -> ListThemeVersions -> ShowS
Prelude.Show, (forall x. ListThemeVersions -> Rep ListThemeVersions x)
-> (forall x. Rep ListThemeVersions x -> ListThemeVersions)
-> Generic ListThemeVersions
forall x. Rep ListThemeVersions x -> ListThemeVersions
forall x. ListThemeVersions -> Rep ListThemeVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListThemeVersions x -> ListThemeVersions
$cfrom :: forall x. ListThemeVersions -> Rep ListThemeVersions x
Prelude.Generic)
newListThemeVersions ::
Prelude.Text ->
Prelude.Text ->
ListThemeVersions
newListThemeVersions :: Text -> Text -> ListThemeVersions
newListThemeVersions Text
pAwsAccountId_ Text
pThemeId_ =
ListThemeVersions' :: Maybe Text -> Maybe Natural -> Text -> Text -> ListThemeVersions
ListThemeVersions'
{ $sel:nextToken:ListThemeVersions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListThemeVersions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:awsAccountId:ListThemeVersions' :: Text
awsAccountId = Text
pAwsAccountId_,
$sel:themeId:ListThemeVersions' :: Text
themeId = Text
pThemeId_
}
listThemeVersions_nextToken :: Lens.Lens' ListThemeVersions (Prelude.Maybe Prelude.Text)
listThemeVersions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListThemeVersions -> f ListThemeVersions
listThemeVersions_nextToken = (ListThemeVersions -> Maybe Text)
-> (ListThemeVersions -> Maybe Text -> ListThemeVersions)
-> Lens
ListThemeVersions ListThemeVersions (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeVersions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListThemeVersions' :: ListThemeVersions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListThemeVersions
s@ListThemeVersions' {} Maybe Text
a -> ListThemeVersions
s {$sel:nextToken:ListThemeVersions' :: Maybe Text
nextToken = Maybe Text
a} :: ListThemeVersions)
listThemeVersions_maxResults :: Lens.Lens' ListThemeVersions (Prelude.Maybe Prelude.Natural)
listThemeVersions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListThemeVersions -> f ListThemeVersions
listThemeVersions_maxResults = (ListThemeVersions -> Maybe Natural)
-> (ListThemeVersions -> Maybe Natural -> ListThemeVersions)
-> Lens
ListThemeVersions ListThemeVersions (Maybe Natural) (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeVersions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListThemeVersions' :: ListThemeVersions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListThemeVersions
s@ListThemeVersions' {} Maybe Natural
a -> ListThemeVersions
s {$sel:maxResults:ListThemeVersions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListThemeVersions)
listThemeVersions_awsAccountId :: Lens.Lens' ListThemeVersions Prelude.Text
listThemeVersions_awsAccountId :: (Text -> f Text) -> ListThemeVersions -> f ListThemeVersions
listThemeVersions_awsAccountId = (ListThemeVersions -> Text)
-> (ListThemeVersions -> Text -> ListThemeVersions)
-> Lens ListThemeVersions ListThemeVersions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeVersions' {Text
awsAccountId :: Text
$sel:awsAccountId:ListThemeVersions' :: ListThemeVersions -> Text
awsAccountId} -> Text
awsAccountId) (\s :: ListThemeVersions
s@ListThemeVersions' {} Text
a -> ListThemeVersions
s {$sel:awsAccountId:ListThemeVersions' :: Text
awsAccountId = Text
a} :: ListThemeVersions)
listThemeVersions_themeId :: Lens.Lens' ListThemeVersions Prelude.Text
listThemeVersions_themeId :: (Text -> f Text) -> ListThemeVersions -> f ListThemeVersions
listThemeVersions_themeId = (ListThemeVersions -> Text)
-> (ListThemeVersions -> Text -> ListThemeVersions)
-> Lens ListThemeVersions ListThemeVersions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeVersions' {Text
themeId :: Text
$sel:themeId:ListThemeVersions' :: ListThemeVersions -> Text
themeId} -> Text
themeId) (\s :: ListThemeVersions
s@ListThemeVersions' {} Text
a -> ListThemeVersions
s {$sel:themeId:ListThemeVersions' :: Text
themeId = Text
a} :: ListThemeVersions)
instance Core.AWSPager ListThemeVersions where
page :: ListThemeVersions
-> AWSResponse ListThemeVersions -> Maybe ListThemeVersions
page ListThemeVersions
rq AWSResponse ListThemeVersions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListThemeVersions
ListThemeVersionsResponse
rs
ListThemeVersionsResponse
-> Getting (First Text) ListThemeVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListThemeVersionsResponse
-> Const (First Text) ListThemeVersionsResponse
Lens' ListThemeVersionsResponse (Maybe Text)
listThemeVersionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListThemeVersionsResponse
-> Const (First Text) ListThemeVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListThemeVersionsResponse 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 ListThemeVersions
forall a. Maybe a
Prelude.Nothing
| Maybe [ThemeVersionSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListThemeVersions
ListThemeVersionsResponse
rs
ListThemeVersionsResponse
-> Getting
(First [ThemeVersionSummary])
ListThemeVersionsResponse
[ThemeVersionSummary]
-> Maybe [ThemeVersionSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [ThemeVersionSummary]
-> Const
(First [ThemeVersionSummary]) (Maybe [ThemeVersionSummary]))
-> ListThemeVersionsResponse
-> Const (First [ThemeVersionSummary]) ListThemeVersionsResponse
Lens' ListThemeVersionsResponse (Maybe [ThemeVersionSummary])
listThemeVersionsResponse_themeVersionSummaryList
((Maybe [ThemeVersionSummary]
-> Const
(First [ThemeVersionSummary]) (Maybe [ThemeVersionSummary]))
-> ListThemeVersionsResponse
-> Const (First [ThemeVersionSummary]) ListThemeVersionsResponse)
-> (([ThemeVersionSummary]
-> Const (First [ThemeVersionSummary]) [ThemeVersionSummary])
-> Maybe [ThemeVersionSummary]
-> Const
(First [ThemeVersionSummary]) (Maybe [ThemeVersionSummary]))
-> Getting
(First [ThemeVersionSummary])
ListThemeVersionsResponse
[ThemeVersionSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([ThemeVersionSummary]
-> Const (First [ThemeVersionSummary]) [ThemeVersionSummary])
-> Maybe [ThemeVersionSummary]
-> Const
(First [ThemeVersionSummary]) (Maybe [ThemeVersionSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListThemeVersions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListThemeVersions -> Maybe ListThemeVersions
forall a. a -> Maybe a
Prelude.Just (ListThemeVersions -> Maybe ListThemeVersions)
-> ListThemeVersions -> Maybe ListThemeVersions
forall a b. (a -> b) -> a -> b
Prelude.$
ListThemeVersions
rq
ListThemeVersions
-> (ListThemeVersions -> ListThemeVersions) -> ListThemeVersions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListThemeVersions -> Identity ListThemeVersions
Lens ListThemeVersions ListThemeVersions (Maybe Text) (Maybe Text)
listThemeVersions_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListThemeVersions -> Identity ListThemeVersions)
-> Maybe Text -> ListThemeVersions -> ListThemeVersions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListThemeVersions
ListThemeVersionsResponse
rs
ListThemeVersionsResponse
-> Getting (First Text) ListThemeVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListThemeVersionsResponse
-> Const (First Text) ListThemeVersionsResponse
Lens' ListThemeVersionsResponse (Maybe Text)
listThemeVersionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListThemeVersionsResponse
-> Const (First Text) ListThemeVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListThemeVersionsResponse 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 ListThemeVersions where
type
AWSResponse ListThemeVersions =
ListThemeVersionsResponse
request :: ListThemeVersions -> Request ListThemeVersions
request = Service -> ListThemeVersions -> Request ListThemeVersions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListThemeVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListThemeVersions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListThemeVersions))
-> Logger
-> Service
-> Proxy ListThemeVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListThemeVersions)))
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 [ThemeVersionSummary]
-> Maybe Text
-> Int
-> ListThemeVersionsResponse
ListThemeVersionsResponse'
(Maybe Text
-> Maybe [ThemeVersionSummary]
-> Maybe Text
-> Int
-> ListThemeVersionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [ThemeVersionSummary]
-> Maybe Text -> Int -> ListThemeVersionsResponse)
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 [ThemeVersionSummary]
-> Maybe Text -> Int -> ListThemeVersionsResponse)
-> Either String (Maybe [ThemeVersionSummary])
-> Either String (Maybe Text -> Int -> ListThemeVersionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [ThemeVersionSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"ThemeVersionSummaryList"
Either String (Maybe (Maybe [ThemeVersionSummary]))
-> Maybe [ThemeVersionSummary]
-> Either String (Maybe [ThemeVersionSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [ThemeVersionSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListThemeVersionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListThemeVersionsResponse)
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 -> ListThemeVersionsResponse)
-> Either String Int -> Either String ListThemeVersionsResponse
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 ListThemeVersions
instance Prelude.NFData ListThemeVersions
instance Core.ToHeaders ListThemeVersions where
toHeaders :: ListThemeVersions -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListThemeVersions -> 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 ListThemeVersions where
toPath :: ListThemeVersions -> ByteString
toPath ListThemeVersions' {Maybe Natural
Maybe Text
Text
themeId :: Text
awsAccountId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:themeId:ListThemeVersions' :: ListThemeVersions -> Text
$sel:awsAccountId:ListThemeVersions' :: ListThemeVersions -> Text
$sel:maxResults:ListThemeVersions' :: ListThemeVersions -> Maybe Natural
$sel:nextToken:ListThemeVersions' :: ListThemeVersions -> 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
"/versions"
]
instance Core.ToQuery ListThemeVersions where
toQuery :: ListThemeVersions -> QueryString
toQuery ListThemeVersions' {Maybe Natural
Maybe Text
Text
themeId :: Text
awsAccountId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:themeId:ListThemeVersions' :: ListThemeVersions -> Text
$sel:awsAccountId:ListThemeVersions' :: ListThemeVersions -> Text
$sel:maxResults:ListThemeVersions' :: ListThemeVersions -> Maybe Natural
$sel:nextToken:ListThemeVersions' :: ListThemeVersions -> 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-results" ByteString -> Maybe Natural -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Natural
maxResults
]
data ListThemeVersionsResponse = ListThemeVersionsResponse'
{
ListThemeVersionsResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
ListThemeVersionsResponse -> Maybe [ThemeVersionSummary]
themeVersionSummaryList :: Prelude.Maybe [ThemeVersionSummary],
ListThemeVersionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListThemeVersionsResponse -> Int
status :: Prelude.Int
}
deriving (ListThemeVersionsResponse -> ListThemeVersionsResponse -> Bool
(ListThemeVersionsResponse -> ListThemeVersionsResponse -> Bool)
-> (ListThemeVersionsResponse -> ListThemeVersionsResponse -> Bool)
-> Eq ListThemeVersionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListThemeVersionsResponse -> ListThemeVersionsResponse -> Bool
$c/= :: ListThemeVersionsResponse -> ListThemeVersionsResponse -> Bool
== :: ListThemeVersionsResponse -> ListThemeVersionsResponse -> Bool
$c== :: ListThemeVersionsResponse -> ListThemeVersionsResponse -> Bool
Prelude.Eq, ReadPrec [ListThemeVersionsResponse]
ReadPrec ListThemeVersionsResponse
Int -> ReadS ListThemeVersionsResponse
ReadS [ListThemeVersionsResponse]
(Int -> ReadS ListThemeVersionsResponse)
-> ReadS [ListThemeVersionsResponse]
-> ReadPrec ListThemeVersionsResponse
-> ReadPrec [ListThemeVersionsResponse]
-> Read ListThemeVersionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListThemeVersionsResponse]
$creadListPrec :: ReadPrec [ListThemeVersionsResponse]
readPrec :: ReadPrec ListThemeVersionsResponse
$creadPrec :: ReadPrec ListThemeVersionsResponse
readList :: ReadS [ListThemeVersionsResponse]
$creadList :: ReadS [ListThemeVersionsResponse]
readsPrec :: Int -> ReadS ListThemeVersionsResponse
$creadsPrec :: Int -> ReadS ListThemeVersionsResponse
Prelude.Read, Int -> ListThemeVersionsResponse -> ShowS
[ListThemeVersionsResponse] -> ShowS
ListThemeVersionsResponse -> String
(Int -> ListThemeVersionsResponse -> ShowS)
-> (ListThemeVersionsResponse -> String)
-> ([ListThemeVersionsResponse] -> ShowS)
-> Show ListThemeVersionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListThemeVersionsResponse] -> ShowS
$cshowList :: [ListThemeVersionsResponse] -> ShowS
show :: ListThemeVersionsResponse -> String
$cshow :: ListThemeVersionsResponse -> String
showsPrec :: Int -> ListThemeVersionsResponse -> ShowS
$cshowsPrec :: Int -> ListThemeVersionsResponse -> ShowS
Prelude.Show, (forall x.
ListThemeVersionsResponse -> Rep ListThemeVersionsResponse x)
-> (forall x.
Rep ListThemeVersionsResponse x -> ListThemeVersionsResponse)
-> Generic ListThemeVersionsResponse
forall x.
Rep ListThemeVersionsResponse x -> ListThemeVersionsResponse
forall x.
ListThemeVersionsResponse -> Rep ListThemeVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListThemeVersionsResponse x -> ListThemeVersionsResponse
$cfrom :: forall x.
ListThemeVersionsResponse -> Rep ListThemeVersionsResponse x
Prelude.Generic)
newListThemeVersionsResponse ::
Prelude.Int ->
ListThemeVersionsResponse
newListThemeVersionsResponse :: Int -> ListThemeVersionsResponse
newListThemeVersionsResponse Int
pStatus_ =
ListThemeVersionsResponse' :: Maybe Text
-> Maybe [ThemeVersionSummary]
-> Maybe Text
-> Int
-> ListThemeVersionsResponse
ListThemeVersionsResponse'
{ $sel:requestId:ListThemeVersionsResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:themeVersionSummaryList:ListThemeVersionsResponse' :: Maybe [ThemeVersionSummary]
themeVersionSummaryList = Maybe [ThemeVersionSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListThemeVersionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:ListThemeVersionsResponse' :: Int
status = Int
pStatus_
}
listThemeVersionsResponse_requestId :: Lens.Lens' ListThemeVersionsResponse (Prelude.Maybe Prelude.Text)
listThemeVersionsResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> ListThemeVersionsResponse -> f ListThemeVersionsResponse
listThemeVersionsResponse_requestId = (ListThemeVersionsResponse -> Maybe Text)
-> (ListThemeVersionsResponse
-> Maybe Text -> ListThemeVersionsResponse)
-> Lens' ListThemeVersionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeVersionsResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:ListThemeVersionsResponse' :: ListThemeVersionsResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: ListThemeVersionsResponse
s@ListThemeVersionsResponse' {} Maybe Text
a -> ListThemeVersionsResponse
s {$sel:requestId:ListThemeVersionsResponse' :: Maybe Text
requestId = Maybe Text
a} :: ListThemeVersionsResponse)
listThemeVersionsResponse_themeVersionSummaryList :: Lens.Lens' ListThemeVersionsResponse (Prelude.Maybe [ThemeVersionSummary])
listThemeVersionsResponse_themeVersionSummaryList :: (Maybe [ThemeVersionSummary] -> f (Maybe [ThemeVersionSummary]))
-> ListThemeVersionsResponse -> f ListThemeVersionsResponse
listThemeVersionsResponse_themeVersionSummaryList = (ListThemeVersionsResponse -> Maybe [ThemeVersionSummary])
-> (ListThemeVersionsResponse
-> Maybe [ThemeVersionSummary] -> ListThemeVersionsResponse)
-> Lens' ListThemeVersionsResponse (Maybe [ThemeVersionSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeVersionsResponse' {Maybe [ThemeVersionSummary]
themeVersionSummaryList :: Maybe [ThemeVersionSummary]
$sel:themeVersionSummaryList:ListThemeVersionsResponse' :: ListThemeVersionsResponse -> Maybe [ThemeVersionSummary]
themeVersionSummaryList} -> Maybe [ThemeVersionSummary]
themeVersionSummaryList) (\s :: ListThemeVersionsResponse
s@ListThemeVersionsResponse' {} Maybe [ThemeVersionSummary]
a -> ListThemeVersionsResponse
s {$sel:themeVersionSummaryList:ListThemeVersionsResponse' :: Maybe [ThemeVersionSummary]
themeVersionSummaryList = Maybe [ThemeVersionSummary]
a} :: ListThemeVersionsResponse) ((Maybe [ThemeVersionSummary] -> f (Maybe [ThemeVersionSummary]))
-> ListThemeVersionsResponse -> f ListThemeVersionsResponse)
-> ((Maybe [ThemeVersionSummary]
-> f (Maybe [ThemeVersionSummary]))
-> Maybe [ThemeVersionSummary] -> f (Maybe [ThemeVersionSummary]))
-> (Maybe [ThemeVersionSummary] -> f (Maybe [ThemeVersionSummary]))
-> ListThemeVersionsResponse
-> f ListThemeVersionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[ThemeVersionSummary]
[ThemeVersionSummary]
[ThemeVersionSummary]
[ThemeVersionSummary]
-> Iso
(Maybe [ThemeVersionSummary])
(Maybe [ThemeVersionSummary])
(Maybe [ThemeVersionSummary])
(Maybe [ThemeVersionSummary])
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
[ThemeVersionSummary]
[ThemeVersionSummary]
[ThemeVersionSummary]
[ThemeVersionSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listThemeVersionsResponse_nextToken :: Lens.Lens' ListThemeVersionsResponse (Prelude.Maybe Prelude.Text)
listThemeVersionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListThemeVersionsResponse -> f ListThemeVersionsResponse
listThemeVersionsResponse_nextToken = (ListThemeVersionsResponse -> Maybe Text)
-> (ListThemeVersionsResponse
-> Maybe Text -> ListThemeVersionsResponse)
-> Lens' ListThemeVersionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeVersionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListThemeVersionsResponse' :: ListThemeVersionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListThemeVersionsResponse
s@ListThemeVersionsResponse' {} Maybe Text
a -> ListThemeVersionsResponse
s {$sel:nextToken:ListThemeVersionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListThemeVersionsResponse)
listThemeVersionsResponse_status :: Lens.Lens' ListThemeVersionsResponse Prelude.Int
listThemeVersionsResponse_status :: (Int -> f Int)
-> ListThemeVersionsResponse -> f ListThemeVersionsResponse
listThemeVersionsResponse_status = (ListThemeVersionsResponse -> Int)
-> (ListThemeVersionsResponse -> Int -> ListThemeVersionsResponse)
-> Lens ListThemeVersionsResponse ListThemeVersionsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListThemeVersionsResponse' {Int
status :: Int
$sel:status:ListThemeVersionsResponse' :: ListThemeVersionsResponse -> Int
status} -> Int
status) (\s :: ListThemeVersionsResponse
s@ListThemeVersionsResponse' {} Int
a -> ListThemeVersionsResponse
s {$sel:status:ListThemeVersionsResponse' :: Int
status = Int
a} :: ListThemeVersionsResponse)
instance Prelude.NFData ListThemeVersionsResponse