{-# 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.APIGateway.GetDocumentationVersions
(
GetDocumentationVersions (..),
newGetDocumentationVersions,
getDocumentationVersions_limit,
getDocumentationVersions_position,
getDocumentationVersions_restApiId,
GetDocumentationVersionsResponse (..),
newGetDocumentationVersionsResponse,
getDocumentationVersionsResponse_items,
getDocumentationVersionsResponse_position,
getDocumentationVersionsResponse_httpStatus,
)
where
import Amazonka.APIGateway.Types
import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data GetDocumentationVersions = GetDocumentationVersions'
{
GetDocumentationVersions -> Maybe Int
limit :: Prelude.Maybe Prelude.Int,
GetDocumentationVersions -> Maybe Text
position :: Prelude.Maybe Prelude.Text,
GetDocumentationVersions -> Text
restApiId :: Prelude.Text
}
deriving (GetDocumentationVersions -> GetDocumentationVersions -> Bool
(GetDocumentationVersions -> GetDocumentationVersions -> Bool)
-> (GetDocumentationVersions -> GetDocumentationVersions -> Bool)
-> Eq GetDocumentationVersions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDocumentationVersions -> GetDocumentationVersions -> Bool
$c/= :: GetDocumentationVersions -> GetDocumentationVersions -> Bool
== :: GetDocumentationVersions -> GetDocumentationVersions -> Bool
$c== :: GetDocumentationVersions -> GetDocumentationVersions -> Bool
Prelude.Eq, ReadPrec [GetDocumentationVersions]
ReadPrec GetDocumentationVersions
Int -> ReadS GetDocumentationVersions
ReadS [GetDocumentationVersions]
(Int -> ReadS GetDocumentationVersions)
-> ReadS [GetDocumentationVersions]
-> ReadPrec GetDocumentationVersions
-> ReadPrec [GetDocumentationVersions]
-> Read GetDocumentationVersions
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDocumentationVersions]
$creadListPrec :: ReadPrec [GetDocumentationVersions]
readPrec :: ReadPrec GetDocumentationVersions
$creadPrec :: ReadPrec GetDocumentationVersions
readList :: ReadS [GetDocumentationVersions]
$creadList :: ReadS [GetDocumentationVersions]
readsPrec :: Int -> ReadS GetDocumentationVersions
$creadsPrec :: Int -> ReadS GetDocumentationVersions
Prelude.Read, Int -> GetDocumentationVersions -> ShowS
[GetDocumentationVersions] -> ShowS
GetDocumentationVersions -> String
(Int -> GetDocumentationVersions -> ShowS)
-> (GetDocumentationVersions -> String)
-> ([GetDocumentationVersions] -> ShowS)
-> Show GetDocumentationVersions
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDocumentationVersions] -> ShowS
$cshowList :: [GetDocumentationVersions] -> ShowS
show :: GetDocumentationVersions -> String
$cshow :: GetDocumentationVersions -> String
showsPrec :: Int -> GetDocumentationVersions -> ShowS
$cshowsPrec :: Int -> GetDocumentationVersions -> ShowS
Prelude.Show, (forall x.
GetDocumentationVersions -> Rep GetDocumentationVersions x)
-> (forall x.
Rep GetDocumentationVersions x -> GetDocumentationVersions)
-> Generic GetDocumentationVersions
forall x.
Rep GetDocumentationVersions x -> GetDocumentationVersions
forall x.
GetDocumentationVersions -> Rep GetDocumentationVersions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDocumentationVersions x -> GetDocumentationVersions
$cfrom :: forall x.
GetDocumentationVersions -> Rep GetDocumentationVersions x
Prelude.Generic)
newGetDocumentationVersions ::
Prelude.Text ->
GetDocumentationVersions
newGetDocumentationVersions :: Text -> GetDocumentationVersions
newGetDocumentationVersions Text
pRestApiId_ =
GetDocumentationVersions' :: Maybe Int -> Maybe Text -> Text -> GetDocumentationVersions
GetDocumentationVersions'
{ $sel:limit:GetDocumentationVersions' :: Maybe Int
limit = Maybe Int
forall a. Maybe a
Prelude.Nothing,
$sel:position:GetDocumentationVersions' :: Maybe Text
position = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:restApiId:GetDocumentationVersions' :: Text
restApiId = Text
pRestApiId_
}
getDocumentationVersions_limit :: Lens.Lens' GetDocumentationVersions (Prelude.Maybe Prelude.Int)
getDocumentationVersions_limit :: (Maybe Int -> f (Maybe Int))
-> GetDocumentationVersions -> f GetDocumentationVersions
getDocumentationVersions_limit = (GetDocumentationVersions -> Maybe Int)
-> (GetDocumentationVersions
-> Maybe Int -> GetDocumentationVersions)
-> Lens
GetDocumentationVersions
GetDocumentationVersions
(Maybe Int)
(Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDocumentationVersions' {Maybe Int
limit :: Maybe Int
$sel:limit:GetDocumentationVersions' :: GetDocumentationVersions -> Maybe Int
limit} -> Maybe Int
limit) (\s :: GetDocumentationVersions
s@GetDocumentationVersions' {} Maybe Int
a -> GetDocumentationVersions
s {$sel:limit:GetDocumentationVersions' :: Maybe Int
limit = Maybe Int
a} :: GetDocumentationVersions)
getDocumentationVersions_position :: Lens.Lens' GetDocumentationVersions (Prelude.Maybe Prelude.Text)
getDocumentationVersions_position :: (Maybe Text -> f (Maybe Text))
-> GetDocumentationVersions -> f GetDocumentationVersions
getDocumentationVersions_position = (GetDocumentationVersions -> Maybe Text)
-> (GetDocumentationVersions
-> Maybe Text -> GetDocumentationVersions)
-> Lens
GetDocumentationVersions
GetDocumentationVersions
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDocumentationVersions' {Maybe Text
position :: Maybe Text
$sel:position:GetDocumentationVersions' :: GetDocumentationVersions -> Maybe Text
position} -> Maybe Text
position) (\s :: GetDocumentationVersions
s@GetDocumentationVersions' {} Maybe Text
a -> GetDocumentationVersions
s {$sel:position:GetDocumentationVersions' :: Maybe Text
position = Maybe Text
a} :: GetDocumentationVersions)
getDocumentationVersions_restApiId :: Lens.Lens' GetDocumentationVersions Prelude.Text
getDocumentationVersions_restApiId :: (Text -> f Text)
-> GetDocumentationVersions -> f GetDocumentationVersions
getDocumentationVersions_restApiId = (GetDocumentationVersions -> Text)
-> (GetDocumentationVersions -> Text -> GetDocumentationVersions)
-> Lens GetDocumentationVersions GetDocumentationVersions Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDocumentationVersions' {Text
restApiId :: Text
$sel:restApiId:GetDocumentationVersions' :: GetDocumentationVersions -> Text
restApiId} -> Text
restApiId) (\s :: GetDocumentationVersions
s@GetDocumentationVersions' {} Text
a -> GetDocumentationVersions
s {$sel:restApiId:GetDocumentationVersions' :: Text
restApiId = Text
a} :: GetDocumentationVersions)
instance Core.AWSPager GetDocumentationVersions where
page :: GetDocumentationVersions
-> AWSResponse GetDocumentationVersions
-> Maybe GetDocumentationVersions
page GetDocumentationVersions
rq AWSResponse GetDocumentationVersions
rs
| Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetDocumentationVersions
GetDocumentationVersionsResponse
rs
GetDocumentationVersionsResponse
-> Getting (First Text) GetDocumentationVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetDocumentationVersionsResponse
-> Const (First Text) GetDocumentationVersionsResponse
Lens' GetDocumentationVersionsResponse (Maybe Text)
getDocumentationVersionsResponse_position
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetDocumentationVersionsResponse
-> Const (First Text) GetDocumentationVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetDocumentationVersionsResponse 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 GetDocumentationVersions
forall a. Maybe a
Prelude.Nothing
| Maybe [DocumentationVersion] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse GetDocumentationVersions
GetDocumentationVersionsResponse
rs
GetDocumentationVersionsResponse
-> Getting
(First [DocumentationVersion])
GetDocumentationVersionsResponse
[DocumentationVersion]
-> Maybe [DocumentationVersion]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [DocumentationVersion]
-> Const
(First [DocumentationVersion]) (Maybe [DocumentationVersion]))
-> GetDocumentationVersionsResponse
-> Const
(First [DocumentationVersion]) GetDocumentationVersionsResponse
Lens'
GetDocumentationVersionsResponse (Maybe [DocumentationVersion])
getDocumentationVersionsResponse_items
((Maybe [DocumentationVersion]
-> Const
(First [DocumentationVersion]) (Maybe [DocumentationVersion]))
-> GetDocumentationVersionsResponse
-> Const
(First [DocumentationVersion]) GetDocumentationVersionsResponse)
-> (([DocumentationVersion]
-> Const (First [DocumentationVersion]) [DocumentationVersion])
-> Maybe [DocumentationVersion]
-> Const
(First [DocumentationVersion]) (Maybe [DocumentationVersion]))
-> Getting
(First [DocumentationVersion])
GetDocumentationVersionsResponse
[DocumentationVersion]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([DocumentationVersion]
-> Const (First [DocumentationVersion]) [DocumentationVersion])
-> Maybe [DocumentationVersion]
-> Const
(First [DocumentationVersion]) (Maybe [DocumentationVersion])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
) =
Maybe GetDocumentationVersions
forall a. Maybe a
Prelude.Nothing
| Bool
Prelude.otherwise =
GetDocumentationVersions -> Maybe GetDocumentationVersions
forall a. a -> Maybe a
Prelude.Just (GetDocumentationVersions -> Maybe GetDocumentationVersions)
-> GetDocumentationVersions -> Maybe GetDocumentationVersions
forall a b. (a -> b) -> a -> b
Prelude.$
GetDocumentationVersions
rq
GetDocumentationVersions
-> (GetDocumentationVersions -> GetDocumentationVersions)
-> GetDocumentationVersions
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetDocumentationVersions -> Identity GetDocumentationVersions
Lens
GetDocumentationVersions
GetDocumentationVersions
(Maybe Text)
(Maybe Text)
getDocumentationVersions_position
((Maybe Text -> Identity (Maybe Text))
-> GetDocumentationVersions -> Identity GetDocumentationVersions)
-> Maybe Text
-> GetDocumentationVersions
-> GetDocumentationVersions
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetDocumentationVersions
GetDocumentationVersionsResponse
rs
GetDocumentationVersionsResponse
-> Getting (First Text) GetDocumentationVersionsResponse Text
-> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetDocumentationVersionsResponse
-> Const (First Text) GetDocumentationVersionsResponse
Lens' GetDocumentationVersionsResponse (Maybe Text)
getDocumentationVersionsResponse_position
((Maybe Text -> Const (First Text) (Maybe Text))
-> GetDocumentationVersionsResponse
-> Const (First Text) GetDocumentationVersionsResponse)
-> ((Text -> Const (First Text) Text)
-> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetDocumentationVersionsResponse 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 GetDocumentationVersions where
type
AWSResponse GetDocumentationVersions =
GetDocumentationVersionsResponse
request :: GetDocumentationVersions -> Request GetDocumentationVersions
request = Service
-> GetDocumentationVersions -> Request GetDocumentationVersions
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy GetDocumentationVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDocumentationVersions)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse GetDocumentationVersions))
-> Logger
-> Service
-> Proxy GetDocumentationVersions
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse GetDocumentationVersions)))
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 [DocumentationVersion]
-> Maybe Text -> Int -> GetDocumentationVersionsResponse
GetDocumentationVersionsResponse'
(Maybe [DocumentationVersion]
-> Maybe Text -> Int -> GetDocumentationVersionsResponse)
-> Either String (Maybe [DocumentationVersion])
-> Either
String (Maybe Text -> Int -> GetDocumentationVersionsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object
-> Text -> Either String (Maybe (Maybe [DocumentationVersion]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"item" Either String (Maybe (Maybe [DocumentationVersion]))
-> Maybe [DocumentationVersion]
-> Either String (Maybe [DocumentationVersion])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [DocumentationVersion]
forall a. Monoid a => a
Prelude.mempty)
Either
String (Maybe Text -> Int -> GetDocumentationVersionsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetDocumentationVersionsResponse)
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
"position")
Either String (Int -> GetDocumentationVersionsResponse)
-> Either String Int
-> Either String GetDocumentationVersionsResponse
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 GetDocumentationVersions
instance Prelude.NFData GetDocumentationVersions
instance Core.ToHeaders GetDocumentationVersions where
toHeaders :: GetDocumentationVersions -> ResponseHeaders
toHeaders =
ResponseHeaders -> GetDocumentationVersions -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Accept"
HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# (ByteString
"application/json" :: Prelude.ByteString)
]
)
instance Core.ToPath GetDocumentationVersions where
toPath :: GetDocumentationVersions -> ByteString
toPath GetDocumentationVersions' {Maybe Int
Maybe Text
Text
restApiId :: Text
position :: Maybe Text
limit :: Maybe Int
$sel:restApiId:GetDocumentationVersions' :: GetDocumentationVersions -> Text
$sel:position:GetDocumentationVersions' :: GetDocumentationVersions -> Maybe Text
$sel:limit:GetDocumentationVersions' :: GetDocumentationVersions -> Maybe Int
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ ByteString
"/restapis/",
Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
restApiId,
ByteString
"/documentation/versions"
]
instance Core.ToQuery GetDocumentationVersions where
toQuery :: GetDocumentationVersions -> QueryString
toQuery GetDocumentationVersions' {Maybe Int
Maybe Text
Text
restApiId :: Text
position :: Maybe Text
limit :: Maybe Int
$sel:restApiId:GetDocumentationVersions' :: GetDocumentationVersions -> Text
$sel:position:GetDocumentationVersions' :: GetDocumentationVersions -> Maybe Text
$sel:limit:GetDocumentationVersions' :: GetDocumentationVersions -> Maybe Int
..} =
[QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"limit" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
limit, ByteString
"position" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
position]
data GetDocumentationVersionsResponse = GetDocumentationVersionsResponse'
{
GetDocumentationVersionsResponse -> Maybe [DocumentationVersion]
items :: Prelude.Maybe [DocumentationVersion],
GetDocumentationVersionsResponse -> Maybe Text
position :: Prelude.Maybe Prelude.Text,
GetDocumentationVersionsResponse -> Int
httpStatus :: Prelude.Int
}
deriving (GetDocumentationVersionsResponse
-> GetDocumentationVersionsResponse -> Bool
(GetDocumentationVersionsResponse
-> GetDocumentationVersionsResponse -> Bool)
-> (GetDocumentationVersionsResponse
-> GetDocumentationVersionsResponse -> Bool)
-> Eq GetDocumentationVersionsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetDocumentationVersionsResponse
-> GetDocumentationVersionsResponse -> Bool
$c/= :: GetDocumentationVersionsResponse
-> GetDocumentationVersionsResponse -> Bool
== :: GetDocumentationVersionsResponse
-> GetDocumentationVersionsResponse -> Bool
$c== :: GetDocumentationVersionsResponse
-> GetDocumentationVersionsResponse -> Bool
Prelude.Eq, ReadPrec [GetDocumentationVersionsResponse]
ReadPrec GetDocumentationVersionsResponse
Int -> ReadS GetDocumentationVersionsResponse
ReadS [GetDocumentationVersionsResponse]
(Int -> ReadS GetDocumentationVersionsResponse)
-> ReadS [GetDocumentationVersionsResponse]
-> ReadPrec GetDocumentationVersionsResponse
-> ReadPrec [GetDocumentationVersionsResponse]
-> Read GetDocumentationVersionsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetDocumentationVersionsResponse]
$creadListPrec :: ReadPrec [GetDocumentationVersionsResponse]
readPrec :: ReadPrec GetDocumentationVersionsResponse
$creadPrec :: ReadPrec GetDocumentationVersionsResponse
readList :: ReadS [GetDocumentationVersionsResponse]
$creadList :: ReadS [GetDocumentationVersionsResponse]
readsPrec :: Int -> ReadS GetDocumentationVersionsResponse
$creadsPrec :: Int -> ReadS GetDocumentationVersionsResponse
Prelude.Read, Int -> GetDocumentationVersionsResponse -> ShowS
[GetDocumentationVersionsResponse] -> ShowS
GetDocumentationVersionsResponse -> String
(Int -> GetDocumentationVersionsResponse -> ShowS)
-> (GetDocumentationVersionsResponse -> String)
-> ([GetDocumentationVersionsResponse] -> ShowS)
-> Show GetDocumentationVersionsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetDocumentationVersionsResponse] -> ShowS
$cshowList :: [GetDocumentationVersionsResponse] -> ShowS
show :: GetDocumentationVersionsResponse -> String
$cshow :: GetDocumentationVersionsResponse -> String
showsPrec :: Int -> GetDocumentationVersionsResponse -> ShowS
$cshowsPrec :: Int -> GetDocumentationVersionsResponse -> ShowS
Prelude.Show, (forall x.
GetDocumentationVersionsResponse
-> Rep GetDocumentationVersionsResponse x)
-> (forall x.
Rep GetDocumentationVersionsResponse x
-> GetDocumentationVersionsResponse)
-> Generic GetDocumentationVersionsResponse
forall x.
Rep GetDocumentationVersionsResponse x
-> GetDocumentationVersionsResponse
forall x.
GetDocumentationVersionsResponse
-> Rep GetDocumentationVersionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep GetDocumentationVersionsResponse x
-> GetDocumentationVersionsResponse
$cfrom :: forall x.
GetDocumentationVersionsResponse
-> Rep GetDocumentationVersionsResponse x
Prelude.Generic)
newGetDocumentationVersionsResponse ::
Prelude.Int ->
GetDocumentationVersionsResponse
newGetDocumentationVersionsResponse :: Int -> GetDocumentationVersionsResponse
newGetDocumentationVersionsResponse Int
pHttpStatus_ =
GetDocumentationVersionsResponse' :: Maybe [DocumentationVersion]
-> Maybe Text -> Int -> GetDocumentationVersionsResponse
GetDocumentationVersionsResponse'
{ $sel:items:GetDocumentationVersionsResponse' :: Maybe [DocumentationVersion]
items =
Maybe [DocumentationVersion]
forall a. Maybe a
Prelude.Nothing,
$sel:position:GetDocumentationVersionsResponse' :: Maybe Text
position = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:GetDocumentationVersionsResponse' :: Int
httpStatus = Int
pHttpStatus_
}
getDocumentationVersionsResponse_items :: Lens.Lens' GetDocumentationVersionsResponse (Prelude.Maybe [DocumentationVersion])
getDocumentationVersionsResponse_items :: (Maybe [DocumentationVersion] -> f (Maybe [DocumentationVersion]))
-> GetDocumentationVersionsResponse
-> f GetDocumentationVersionsResponse
getDocumentationVersionsResponse_items = (GetDocumentationVersionsResponse -> Maybe [DocumentationVersion])
-> (GetDocumentationVersionsResponse
-> Maybe [DocumentationVersion]
-> GetDocumentationVersionsResponse)
-> Lens'
GetDocumentationVersionsResponse (Maybe [DocumentationVersion])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDocumentationVersionsResponse' {Maybe [DocumentationVersion]
items :: Maybe [DocumentationVersion]
$sel:items:GetDocumentationVersionsResponse' :: GetDocumentationVersionsResponse -> Maybe [DocumentationVersion]
items} -> Maybe [DocumentationVersion]
items) (\s :: GetDocumentationVersionsResponse
s@GetDocumentationVersionsResponse' {} Maybe [DocumentationVersion]
a -> GetDocumentationVersionsResponse
s {$sel:items:GetDocumentationVersionsResponse' :: Maybe [DocumentationVersion]
items = Maybe [DocumentationVersion]
a} :: GetDocumentationVersionsResponse) ((Maybe [DocumentationVersion] -> f (Maybe [DocumentationVersion]))
-> GetDocumentationVersionsResponse
-> f GetDocumentationVersionsResponse)
-> ((Maybe [DocumentationVersion]
-> f (Maybe [DocumentationVersion]))
-> Maybe [DocumentationVersion]
-> f (Maybe [DocumentationVersion]))
-> (Maybe [DocumentationVersion]
-> f (Maybe [DocumentationVersion]))
-> GetDocumentationVersionsResponse
-> f GetDocumentationVersionsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
[DocumentationVersion]
[DocumentationVersion]
[DocumentationVersion]
[DocumentationVersion]
-> Iso
(Maybe [DocumentationVersion])
(Maybe [DocumentationVersion])
(Maybe [DocumentationVersion])
(Maybe [DocumentationVersion])
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
[DocumentationVersion]
[DocumentationVersion]
[DocumentationVersion]
[DocumentationVersion]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced
getDocumentationVersionsResponse_position :: Lens.Lens' GetDocumentationVersionsResponse (Prelude.Maybe Prelude.Text)
getDocumentationVersionsResponse_position :: (Maybe Text -> f (Maybe Text))
-> GetDocumentationVersionsResponse
-> f GetDocumentationVersionsResponse
getDocumentationVersionsResponse_position = (GetDocumentationVersionsResponse -> Maybe Text)
-> (GetDocumentationVersionsResponse
-> Maybe Text -> GetDocumentationVersionsResponse)
-> Lens' GetDocumentationVersionsResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDocumentationVersionsResponse' {Maybe Text
position :: Maybe Text
$sel:position:GetDocumentationVersionsResponse' :: GetDocumentationVersionsResponse -> Maybe Text
position} -> Maybe Text
position) (\s :: GetDocumentationVersionsResponse
s@GetDocumentationVersionsResponse' {} Maybe Text
a -> GetDocumentationVersionsResponse
s {$sel:position:GetDocumentationVersionsResponse' :: Maybe Text
position = Maybe Text
a} :: GetDocumentationVersionsResponse)
getDocumentationVersionsResponse_httpStatus :: Lens.Lens' GetDocumentationVersionsResponse Prelude.Int
getDocumentationVersionsResponse_httpStatus :: (Int -> f Int)
-> GetDocumentationVersionsResponse
-> f GetDocumentationVersionsResponse
getDocumentationVersionsResponse_httpStatus = (GetDocumentationVersionsResponse -> Int)
-> (GetDocumentationVersionsResponse
-> Int -> GetDocumentationVersionsResponse)
-> Lens
GetDocumentationVersionsResponse
GetDocumentationVersionsResponse
Int
Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetDocumentationVersionsResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetDocumentationVersionsResponse' :: GetDocumentationVersionsResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetDocumentationVersionsResponse
s@GetDocumentationVersionsResponse' {} Int
a -> GetDocumentationVersionsResponse
s {$sel:httpStatus:GetDocumentationVersionsResponse' :: Int
httpStatus = Int
a} :: GetDocumentationVersionsResponse)
instance
Prelude.NFData
GetDocumentationVersionsResponse