{-# 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.ListDashboardVersions
(
ListDashboardVersions (..),
newListDashboardVersions,
listDashboardVersions_nextToken,
listDashboardVersions_maxResults,
listDashboardVersions_awsAccountId,
listDashboardVersions_dashboardId,
ListDashboardVersionsResponse (..),
newListDashboardVersionsResponse,
listDashboardVersionsResponse_requestId,
listDashboardVersionsResponse_dashboardVersionSummaryList,
listDashboardVersionsResponse_nextToken,
listDashboardVersionsResponse_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 ListDashboardVersions = ListDashboardVersions'
{
ListDashboardVersions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDashboardVersions -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
ListDashboardVersions -> Text
awsAccountId :: Prelude.Text,
ListDashboardVersions -> Text
dashboardId :: Prelude.Text
}
deriving (ListDashboardVersions -> ListDashboardVersions -> Bool
(ListDashboardVersions -> ListDashboardVersions -> Bool)
-> (ListDashboardVersions -> ListDashboardVersions -> Bool)
-> Eq ListDashboardVersions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDashboardVersions -> ListDashboardVersions -> Bool
$c/= :: ListDashboardVersions -> ListDashboardVersions -> Bool
== :: ListDashboardVersions -> ListDashboardVersions -> Bool
$c== :: ListDashboardVersions -> ListDashboardVersions -> Bool
Prelude.Eq, ReadPrec [ListDashboardVersions]
ReadPrec ListDashboardVersions
Int -> ReadS ListDashboardVersions
ReadS [ListDashboardVersions]
(Int -> ReadS ListDashboardVersions)
-> ReadS [ListDashboardVersions]
-> ReadPrec ListDashboardVersions
-> ReadPrec [ListDashboardVersions]
-> Read ListDashboardVersions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDashboardVersions]
$creadListPrec :: ReadPrec [ListDashboardVersions]
readPrec :: ReadPrec ListDashboardVersions
$creadPrec :: ReadPrec ListDashboardVersions
readList :: ReadS [ListDashboardVersions]
$creadList :: ReadS [ListDashboardVersions]
readsPrec :: Int -> ReadS ListDashboardVersions
$creadsPrec :: Int -> ReadS ListDashboardVersions
Prelude.Read, Int -> ListDashboardVersions -> ShowS
[ListDashboardVersions] -> ShowS
ListDashboardVersions -> String
(Int -> ListDashboardVersions -> ShowS)
-> (ListDashboardVersions -> String)
-> ([ListDashboardVersions] -> ShowS)
-> Show ListDashboardVersions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDashboardVersions] -> ShowS
$cshowList :: [ListDashboardVersions] -> ShowS
show :: ListDashboardVersions -> String
$cshow :: ListDashboardVersions -> String
showsPrec :: Int -> ListDashboardVersions -> ShowS
$cshowsPrec :: Int -> ListDashboardVersions -> ShowS
Prelude.Show, (forall x. ListDashboardVersions -> Rep ListDashboardVersions x)
-> (forall x. Rep ListDashboardVersions x -> ListDashboardVersions)
-> Generic ListDashboardVersions
forall x. Rep ListDashboardVersions x -> ListDashboardVersions
forall x. ListDashboardVersions -> Rep ListDashboardVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDashboardVersions x -> ListDashboardVersions
$cfrom :: forall x. ListDashboardVersions -> Rep ListDashboardVersions x
Prelude.Generic)
newListDashboardVersions ::
Prelude.Text ->
Prelude.Text ->
ListDashboardVersions
newListDashboardVersions :: Text -> Text -> ListDashboardVersions
newListDashboardVersions Text
pAwsAccountId_ Text
pDashboardId_ =
ListDashboardVersions' :: Maybe Text
-> Maybe Natural -> Text -> Text -> ListDashboardVersions
ListDashboardVersions'
{ $sel:nextToken:ListDashboardVersions' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:maxResults:ListDashboardVersions' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
$sel:awsAccountId:ListDashboardVersions' :: Text
awsAccountId = Text
pAwsAccountId_,
$sel:dashboardId:ListDashboardVersions' :: Text
dashboardId = Text
pDashboardId_
}
listDashboardVersions_nextToken :: Lens.Lens' ListDashboardVersions (Prelude.Maybe Prelude.Text)
listDashboardVersions_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDashboardVersions -> f ListDashboardVersions
listDashboardVersions_nextToken = (ListDashboardVersions -> Maybe Text)
-> (ListDashboardVersions -> Maybe Text -> ListDashboardVersions)
-> Lens
ListDashboardVersions
ListDashboardVersions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDashboardVersions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDashboardVersions' :: ListDashboardVersions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDashboardVersions
s@ListDashboardVersions' {} Maybe Text
a -> ListDashboardVersions
s {$sel:nextToken:ListDashboardVersions' :: Maybe Text
nextToken = Maybe Text
a} :: ListDashboardVersions)
listDashboardVersions_maxResults :: Lens.Lens' ListDashboardVersions (Prelude.Maybe Prelude.Natural)
listDashboardVersions_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListDashboardVersions -> f ListDashboardVersions
listDashboardVersions_maxResults = (ListDashboardVersions -> Maybe Natural)
-> (ListDashboardVersions
-> Maybe Natural -> ListDashboardVersions)
-> Lens
ListDashboardVersions
ListDashboardVersions
(Maybe Natural)
(Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDashboardVersions' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListDashboardVersions' :: ListDashboardVersions -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListDashboardVersions
s@ListDashboardVersions' {} Maybe Natural
a -> ListDashboardVersions
s {$sel:maxResults:ListDashboardVersions' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListDashboardVersions)
listDashboardVersions_awsAccountId :: Lens.Lens' ListDashboardVersions Prelude.Text
listDashboardVersions_awsAccountId :: (Text -> f Text)
-> ListDashboardVersions -> f ListDashboardVersions
listDashboardVersions_awsAccountId = (ListDashboardVersions -> Text)
-> (ListDashboardVersions -> Text -> ListDashboardVersions)
-> Lens ListDashboardVersions ListDashboardVersions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDashboardVersions' {Text
awsAccountId :: Text
$sel:awsAccountId:ListDashboardVersions' :: ListDashboardVersions -> Text
awsAccountId} -> Text
awsAccountId) (\s :: ListDashboardVersions
s@ListDashboardVersions' {} Text
a -> ListDashboardVersions
s {$sel:awsAccountId:ListDashboardVersions' :: Text
awsAccountId = Text
a} :: ListDashboardVersions)
listDashboardVersions_dashboardId :: Lens.Lens' ListDashboardVersions Prelude.Text
listDashboardVersions_dashboardId :: (Text -> f Text)
-> ListDashboardVersions -> f ListDashboardVersions
listDashboardVersions_dashboardId = (ListDashboardVersions -> Text)
-> (ListDashboardVersions -> Text -> ListDashboardVersions)
-> Lens ListDashboardVersions ListDashboardVersions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDashboardVersions' {Text
dashboardId :: Text
$sel:dashboardId:ListDashboardVersions' :: ListDashboardVersions -> Text
dashboardId} -> Text
dashboardId) (\s :: ListDashboardVersions
s@ListDashboardVersions' {} Text
a -> ListDashboardVersions
s {$sel:dashboardId:ListDashboardVersions' :: Text
dashboardId = Text
a} :: ListDashboardVersions)
instance Core.AWSPager ListDashboardVersions where
page :: ListDashboardVersions
-> AWSResponse ListDashboardVersions -> Maybe ListDashboardVersions
page ListDashboardVersions
rq AWSResponse ListDashboardVersions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDashboardVersions
ListDashboardVersionsResponse
rs
ListDashboardVersionsResponse
-> Getting (First Text) ListDashboardVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDashboardVersionsResponse
-> Const (First Text) ListDashboardVersionsResponse
Lens' ListDashboardVersionsResponse (Maybe Text)
listDashboardVersionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDashboardVersionsResponse
-> Const (First Text) ListDashboardVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDashboardVersionsResponse 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 ListDashboardVersions
forall a. Maybe a
Prelude.Nothing
| Maybe [DashboardVersionSummary] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse ListDashboardVersions
ListDashboardVersionsResponse
rs
ListDashboardVersionsResponse
-> Getting
(First [DashboardVersionSummary])
ListDashboardVersionsResponse
[DashboardVersionSummary]
-> Maybe [DashboardVersionSummary]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DashboardVersionSummary]
-> Const
(First [DashboardVersionSummary])
(Maybe [DashboardVersionSummary]))
-> ListDashboardVersionsResponse
-> Const
(First [DashboardVersionSummary]) ListDashboardVersionsResponse
Lens'
ListDashboardVersionsResponse (Maybe [DashboardVersionSummary])
listDashboardVersionsResponse_dashboardVersionSummaryList
((Maybe [DashboardVersionSummary]
-> Const
(First [DashboardVersionSummary])
(Maybe [DashboardVersionSummary]))
-> ListDashboardVersionsResponse
-> Const
(First [DashboardVersionSummary]) ListDashboardVersionsResponse)
-> (([DashboardVersionSummary]
-> Const
(First [DashboardVersionSummary]) [DashboardVersionSummary])
-> Maybe [DashboardVersionSummary]
-> Const
(First [DashboardVersionSummary])
(Maybe [DashboardVersionSummary]))
-> Getting
(First [DashboardVersionSummary])
ListDashboardVersionsResponse
[DashboardVersionSummary]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DashboardVersionSummary]
-> Const
(First [DashboardVersionSummary]) [DashboardVersionSummary])
-> Maybe [DashboardVersionSummary]
-> Const
(First [DashboardVersionSummary]) (Maybe [DashboardVersionSummary])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe ListDashboardVersions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
ListDashboardVersions -> Maybe ListDashboardVersions
forall a. a -> Maybe a
Prelude.Just (ListDashboardVersions -> Maybe ListDashboardVersions)
-> ListDashboardVersions -> Maybe ListDashboardVersions
forall a b. (a -> b) -> a -> b
Prelude.$
ListDashboardVersions
rq
ListDashboardVersions
-> (ListDashboardVersions -> ListDashboardVersions)
-> ListDashboardVersions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> ListDashboardVersions -> Identity ListDashboardVersions
Lens
ListDashboardVersions
ListDashboardVersions
(Maybe Text)
(Maybe Text)
listDashboardVersions_nextToken
((Maybe Text -> Identity (Maybe Text))
-> ListDashboardVersions -> Identity ListDashboardVersions)
-> Maybe Text -> ListDashboardVersions -> ListDashboardVersions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse ListDashboardVersions
ListDashboardVersionsResponse
rs
ListDashboardVersionsResponse
-> Getting (First Text) ListDashboardVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> ListDashboardVersionsResponse
-> Const (First Text) ListDashboardVersionsResponse
Lens' ListDashboardVersionsResponse (Maybe Text)
listDashboardVersionsResponse_nextToken
((Maybe Text -> Const (First Text) (Maybe Text))
-> ListDashboardVersionsResponse
-> Const (First Text) ListDashboardVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) ListDashboardVersionsResponse 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 ListDashboardVersions where
type
AWSResponse ListDashboardVersions =
ListDashboardVersionsResponse
request :: ListDashboardVersions -> Request ListDashboardVersions
request = Service -> ListDashboardVersions -> Request ListDashboardVersions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy ListDashboardVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListDashboardVersions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse ListDashboardVersions))
-> Logger
-> Service
-> Proxy ListDashboardVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse ListDashboardVersions)))
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 [DashboardVersionSummary]
-> Maybe Text
-> Int
-> ListDashboardVersionsResponse
ListDashboardVersionsResponse'
(Maybe Text
-> Maybe [DashboardVersionSummary]
-> Maybe Text
-> Int
-> ListDashboardVersionsResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe [DashboardVersionSummary]
-> Maybe Text -> Int -> ListDashboardVersionsResponse)
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 [DashboardVersionSummary]
-> Maybe Text -> Int -> ListDashboardVersionsResponse)
-> Either String (Maybe [DashboardVersionSummary])
-> Either
String (Maybe Text -> Int -> ListDashboardVersionsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [DashboardVersionSummary]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"DashboardVersionSummaryList"
Either String (Maybe (Maybe [DashboardVersionSummary]))
-> Maybe [DashboardVersionSummary]
-> Either String (Maybe [DashboardVersionSummary])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [DashboardVersionSummary]
forall a. Monoid a => a
Prelude.mempty
)
Either String (Maybe Text -> Int -> ListDashboardVersionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListDashboardVersionsResponse)
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 -> ListDashboardVersionsResponse)
-> Either String Int -> Either String ListDashboardVersionsResponse
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 ListDashboardVersions
instance Prelude.NFData ListDashboardVersions
instance Core.ToHeaders ListDashboardVersions where
toHeaders :: ListDashboardVersions -> ResponseHeaders
toHeaders =
ResponseHeaders -> ListDashboardVersions -> 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 ListDashboardVersions where
toPath :: ListDashboardVersions -> ByteString
toPath ListDashboardVersions' {Maybe Natural
Maybe Text
Text
dashboardId :: Text
awsAccountId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:dashboardId:ListDashboardVersions' :: ListDashboardVersions -> Text
$sel:awsAccountId:ListDashboardVersions' :: ListDashboardVersions -> Text
$sel:maxResults:ListDashboardVersions' :: ListDashboardVersions -> Maybe Natural
$sel:nextToken:ListDashboardVersions' :: ListDashboardVersions -> 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
"/dashboards/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
dashboardId,
ByteString
"/versions"
]
instance Core.ToQuery ListDashboardVersions where
toQuery :: ListDashboardVersions -> QueryString
toQuery ListDashboardVersions' {Maybe Natural
Maybe Text
Text
dashboardId :: Text
awsAccountId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:dashboardId:ListDashboardVersions' :: ListDashboardVersions -> Text
$sel:awsAccountId:ListDashboardVersions' :: ListDashboardVersions -> Text
$sel:maxResults:ListDashboardVersions' :: ListDashboardVersions -> Maybe Natural
$sel:nextToken:ListDashboardVersions' :: ListDashboardVersions -> 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 ListDashboardVersionsResponse = ListDashboardVersionsResponse'
{
ListDashboardVersionsResponse -> Maybe Text
requestId :: Prelude.Maybe Prelude.Text,
ListDashboardVersionsResponse -> Maybe [DashboardVersionSummary]
dashboardVersionSummaryList :: Prelude.Maybe [DashboardVersionSummary],
ListDashboardVersionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
ListDashboardVersionsResponse -> Int
status :: Prelude.Int
}
deriving (ListDashboardVersionsResponse
-> ListDashboardVersionsResponse -> Bool
(ListDashboardVersionsResponse
-> ListDashboardVersionsResponse -> Bool)
-> (ListDashboardVersionsResponse
-> ListDashboardVersionsResponse -> Bool)
-> Eq ListDashboardVersionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDashboardVersionsResponse
-> ListDashboardVersionsResponse -> Bool
$c/= :: ListDashboardVersionsResponse
-> ListDashboardVersionsResponse -> Bool
== :: ListDashboardVersionsResponse
-> ListDashboardVersionsResponse -> Bool
$c== :: ListDashboardVersionsResponse
-> ListDashboardVersionsResponse -> Bool
Prelude.Eq, ReadPrec [ListDashboardVersionsResponse]
ReadPrec ListDashboardVersionsResponse
Int -> ReadS ListDashboardVersionsResponse
ReadS [ListDashboardVersionsResponse]
(Int -> ReadS ListDashboardVersionsResponse)
-> ReadS [ListDashboardVersionsResponse]
-> ReadPrec ListDashboardVersionsResponse
-> ReadPrec [ListDashboardVersionsResponse]
-> Read ListDashboardVersionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDashboardVersionsResponse]
$creadListPrec :: ReadPrec [ListDashboardVersionsResponse]
readPrec :: ReadPrec ListDashboardVersionsResponse
$creadPrec :: ReadPrec ListDashboardVersionsResponse
readList :: ReadS [ListDashboardVersionsResponse]
$creadList :: ReadS [ListDashboardVersionsResponse]
readsPrec :: Int -> ReadS ListDashboardVersionsResponse
$creadsPrec :: Int -> ReadS ListDashboardVersionsResponse
Prelude.Read, Int -> ListDashboardVersionsResponse -> ShowS
[ListDashboardVersionsResponse] -> ShowS
ListDashboardVersionsResponse -> String
(Int -> ListDashboardVersionsResponse -> ShowS)
-> (ListDashboardVersionsResponse -> String)
-> ([ListDashboardVersionsResponse] -> ShowS)
-> Show ListDashboardVersionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDashboardVersionsResponse] -> ShowS
$cshowList :: [ListDashboardVersionsResponse] -> ShowS
show :: ListDashboardVersionsResponse -> String
$cshow :: ListDashboardVersionsResponse -> String
showsPrec :: Int -> ListDashboardVersionsResponse -> ShowS
$cshowsPrec :: Int -> ListDashboardVersionsResponse -> ShowS
Prelude.Show, (forall x.
ListDashboardVersionsResponse
-> Rep ListDashboardVersionsResponse x)
-> (forall x.
Rep ListDashboardVersionsResponse x
-> ListDashboardVersionsResponse)
-> Generic ListDashboardVersionsResponse
forall x.
Rep ListDashboardVersionsResponse x
-> ListDashboardVersionsResponse
forall x.
ListDashboardVersionsResponse
-> Rep ListDashboardVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDashboardVersionsResponse x
-> ListDashboardVersionsResponse
$cfrom :: forall x.
ListDashboardVersionsResponse
-> Rep ListDashboardVersionsResponse x
Prelude.Generic)
newListDashboardVersionsResponse ::
Prelude.Int ->
ListDashboardVersionsResponse
newListDashboardVersionsResponse :: Int -> ListDashboardVersionsResponse
newListDashboardVersionsResponse Int
pStatus_ =
ListDashboardVersionsResponse' :: Maybe Text
-> Maybe [DashboardVersionSummary]
-> Maybe Text
-> Int
-> ListDashboardVersionsResponse
ListDashboardVersionsResponse'
{ $sel:requestId:ListDashboardVersionsResponse' :: Maybe Text
requestId =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:dashboardVersionSummaryList:ListDashboardVersionsResponse' :: Maybe [DashboardVersionSummary]
dashboardVersionSummaryList =
Maybe [DashboardVersionSummary]
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:ListDashboardVersionsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:status:ListDashboardVersionsResponse' :: Int
status = Int
pStatus_
}
listDashboardVersionsResponse_requestId :: Lens.Lens' ListDashboardVersionsResponse (Prelude.Maybe Prelude.Text)
listDashboardVersionsResponse_requestId :: (Maybe Text -> f (Maybe Text))
-> ListDashboardVersionsResponse -> f ListDashboardVersionsResponse
listDashboardVersionsResponse_requestId = (ListDashboardVersionsResponse -> Maybe Text)
-> (ListDashboardVersionsResponse
-> Maybe Text -> ListDashboardVersionsResponse)
-> Lens' ListDashboardVersionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDashboardVersionsResponse' {Maybe Text
requestId :: Maybe Text
$sel:requestId:ListDashboardVersionsResponse' :: ListDashboardVersionsResponse -> Maybe Text
requestId} -> Maybe Text
requestId) (\s :: ListDashboardVersionsResponse
s@ListDashboardVersionsResponse' {} Maybe Text
a -> ListDashboardVersionsResponse
s {$sel:requestId:ListDashboardVersionsResponse' :: Maybe Text
requestId = Maybe Text
a} :: ListDashboardVersionsResponse)
listDashboardVersionsResponse_dashboardVersionSummaryList :: Lens.Lens' ListDashboardVersionsResponse (Prelude.Maybe [DashboardVersionSummary])
listDashboardVersionsResponse_dashboardVersionSummaryList :: (Maybe [DashboardVersionSummary]
-> f (Maybe [DashboardVersionSummary]))
-> ListDashboardVersionsResponse -> f ListDashboardVersionsResponse
listDashboardVersionsResponse_dashboardVersionSummaryList = (ListDashboardVersionsResponse -> Maybe [DashboardVersionSummary])
-> (ListDashboardVersionsResponse
-> Maybe [DashboardVersionSummary]
-> ListDashboardVersionsResponse)
-> Lens'
ListDashboardVersionsResponse (Maybe [DashboardVersionSummary])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDashboardVersionsResponse' {Maybe [DashboardVersionSummary]
dashboardVersionSummaryList :: Maybe [DashboardVersionSummary]
$sel:dashboardVersionSummaryList:ListDashboardVersionsResponse' :: ListDashboardVersionsResponse -> Maybe [DashboardVersionSummary]
dashboardVersionSummaryList} -> Maybe [DashboardVersionSummary]
dashboardVersionSummaryList) (\s :: ListDashboardVersionsResponse
s@ListDashboardVersionsResponse' {} Maybe [DashboardVersionSummary]
a -> ListDashboardVersionsResponse
s {$sel:dashboardVersionSummaryList:ListDashboardVersionsResponse' :: Maybe [DashboardVersionSummary]
dashboardVersionSummaryList = Maybe [DashboardVersionSummary]
a} :: ListDashboardVersionsResponse) ((Maybe [DashboardVersionSummary]
-> f (Maybe [DashboardVersionSummary]))
-> ListDashboardVersionsResponse
-> f ListDashboardVersionsResponse)
-> ((Maybe [DashboardVersionSummary]
-> f (Maybe [DashboardVersionSummary]))
-> Maybe [DashboardVersionSummary]
-> f (Maybe [DashboardVersionSummary]))
-> (Maybe [DashboardVersionSummary]
-> f (Maybe [DashboardVersionSummary]))
-> ListDashboardVersionsResponse
-> f ListDashboardVersionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DashboardVersionSummary]
[DashboardVersionSummary]
[DashboardVersionSummary]
[DashboardVersionSummary]
-> Iso
(Maybe [DashboardVersionSummary])
(Maybe [DashboardVersionSummary])
(Maybe [DashboardVersionSummary])
(Maybe [DashboardVersionSummary])
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
[DashboardVersionSummary]
[DashboardVersionSummary]
[DashboardVersionSummary]
[DashboardVersionSummary]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
listDashboardVersionsResponse_nextToken :: Lens.Lens' ListDashboardVersionsResponse (Prelude.Maybe Prelude.Text)
listDashboardVersionsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDashboardVersionsResponse -> f ListDashboardVersionsResponse
listDashboardVersionsResponse_nextToken = (ListDashboardVersionsResponse -> Maybe Text)
-> (ListDashboardVersionsResponse
-> Maybe Text -> ListDashboardVersionsResponse)
-> Lens' ListDashboardVersionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDashboardVersionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDashboardVersionsResponse' :: ListDashboardVersionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDashboardVersionsResponse
s@ListDashboardVersionsResponse' {} Maybe Text
a -> ListDashboardVersionsResponse
s {$sel:nextToken:ListDashboardVersionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListDashboardVersionsResponse)
listDashboardVersionsResponse_status :: Lens.Lens' ListDashboardVersionsResponse Prelude.Int
listDashboardVersionsResponse_status :: (Int -> f Int)
-> ListDashboardVersionsResponse -> f ListDashboardVersionsResponse
listDashboardVersionsResponse_status = (ListDashboardVersionsResponse -> Int)
-> (ListDashboardVersionsResponse
-> Int -> ListDashboardVersionsResponse)
-> Lens
ListDashboardVersionsResponse ListDashboardVersionsResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDashboardVersionsResponse' {Int
status :: Int
$sel:status:ListDashboardVersionsResponse' :: ListDashboardVersionsResponse -> Int
status} -> Int
status) (\s :: ListDashboardVersionsResponse
s@ListDashboardVersionsResponse' {} Int
a -> ListDashboardVersionsResponse
s {$sel:status:ListDashboardVersionsResponse' :: Int
status = Int
a} :: ListDashboardVersionsResponse)
instance Prelude.NFData ListDashboardVersionsResponse