{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DuplicateRecordFields #-}
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE StrictData #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
{-# OPTIONS_GHC -fno-warn-unused-matches #-}

-- Derived from AWS service descriptions, licensed under Apache 2.0.

-- |
-- Module      : Amazonka.APIGateway.GetSdkTypes
-- Copyright   : (c) 2013-2021 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay <brendan.g.hay+amazonka@gmail.com>
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- -- | Undocumented operation.
--
-- This operation returns paginated results.
module Amazonka.APIGateway.GetSdkTypes
  ( -- * Creating a Request
    GetSdkTypes (..),
    newGetSdkTypes,

    -- * Request Lenses
    getSdkTypes_limit,
    getSdkTypes_position,

    -- * Destructuring the Response
    GetSdkTypesResponse (..),
    newGetSdkTypesResponse,

    -- * Response Lenses
    getSdkTypesResponse_items,
    getSdkTypesResponse_position,
    getSdkTypesResponse_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

-- | Get the SdkTypes collection.
--
-- /See:/ 'newGetSdkTypes' smart constructor.
data GetSdkTypes = GetSdkTypes'
  { -- | The maximum number of returned results per page. The default value is 25
    -- and the maximum value is 500.
    GetSdkTypes -> Maybe Int
limit :: Prelude.Maybe Prelude.Int,
    -- | The current pagination position in the paged result set.
    GetSdkTypes -> Maybe Text
position :: Prelude.Maybe Prelude.Text
  }
  deriving (GetSdkTypes -> GetSdkTypes -> Bool
(GetSdkTypes -> GetSdkTypes -> Bool)
-> (GetSdkTypes -> GetSdkTypes -> Bool) -> Eq GetSdkTypes
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSdkTypes -> GetSdkTypes -> Bool
$c/= :: GetSdkTypes -> GetSdkTypes -> Bool
== :: GetSdkTypes -> GetSdkTypes -> Bool
$c== :: GetSdkTypes -> GetSdkTypes -> Bool
Prelude.Eq, ReadPrec [GetSdkTypes]
ReadPrec GetSdkTypes
Int -> ReadS GetSdkTypes
ReadS [GetSdkTypes]
(Int -> ReadS GetSdkTypes)
-> ReadS [GetSdkTypes]
-> ReadPrec GetSdkTypes
-> ReadPrec [GetSdkTypes]
-> Read GetSdkTypes
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSdkTypes]
$creadListPrec :: ReadPrec [GetSdkTypes]
readPrec :: ReadPrec GetSdkTypes
$creadPrec :: ReadPrec GetSdkTypes
readList :: ReadS [GetSdkTypes]
$creadList :: ReadS [GetSdkTypes]
readsPrec :: Int -> ReadS GetSdkTypes
$creadsPrec :: Int -> ReadS GetSdkTypes
Prelude.Read, Int -> GetSdkTypes -> ShowS
[GetSdkTypes] -> ShowS
GetSdkTypes -> String
(Int -> GetSdkTypes -> ShowS)
-> (GetSdkTypes -> String)
-> ([GetSdkTypes] -> ShowS)
-> Show GetSdkTypes
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSdkTypes] -> ShowS
$cshowList :: [GetSdkTypes] -> ShowS
show :: GetSdkTypes -> String
$cshow :: GetSdkTypes -> String
showsPrec :: Int -> GetSdkTypes -> ShowS
$cshowsPrec :: Int -> GetSdkTypes -> ShowS
Prelude.Show, (forall x. GetSdkTypes -> Rep GetSdkTypes x)
-> (forall x. Rep GetSdkTypes x -> GetSdkTypes)
-> Generic GetSdkTypes
forall x. Rep GetSdkTypes x -> GetSdkTypes
forall x. GetSdkTypes -> Rep GetSdkTypes x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetSdkTypes x -> GetSdkTypes
$cfrom :: forall x. GetSdkTypes -> Rep GetSdkTypes x
Prelude.Generic)

-- |
-- Create a value of 'GetSdkTypes' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'limit', 'getSdkTypes_limit' - The maximum number of returned results per page. The default value is 25
-- and the maximum value is 500.
--
-- 'position', 'getSdkTypes_position' - The current pagination position in the paged result set.
newGetSdkTypes ::
  GetSdkTypes
newGetSdkTypes :: GetSdkTypes
newGetSdkTypes =
  GetSdkTypes' :: Maybe Int -> Maybe Text -> GetSdkTypes
GetSdkTypes'
    { $sel:limit:GetSdkTypes' :: Maybe Int
limit = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:position:GetSdkTypes' :: Maybe Text
position = Maybe Text
forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum number of returned results per page. The default value is 25
-- and the maximum value is 500.
getSdkTypes_limit :: Lens.Lens' GetSdkTypes (Prelude.Maybe Prelude.Int)
getSdkTypes_limit :: (Maybe Int -> f (Maybe Int)) -> GetSdkTypes -> f GetSdkTypes
getSdkTypes_limit = (GetSdkTypes -> Maybe Int)
-> (GetSdkTypes -> Maybe Int -> GetSdkTypes)
-> Lens GetSdkTypes GetSdkTypes (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSdkTypes' {Maybe Int
limit :: Maybe Int
$sel:limit:GetSdkTypes' :: GetSdkTypes -> Maybe Int
limit} -> Maybe Int
limit) (\s :: GetSdkTypes
s@GetSdkTypes' {} Maybe Int
a -> GetSdkTypes
s {$sel:limit:GetSdkTypes' :: Maybe Int
limit = Maybe Int
a} :: GetSdkTypes)

-- | The current pagination position in the paged result set.
getSdkTypes_position :: Lens.Lens' GetSdkTypes (Prelude.Maybe Prelude.Text)
getSdkTypes_position :: (Maybe Text -> f (Maybe Text)) -> GetSdkTypes -> f GetSdkTypes
getSdkTypes_position = (GetSdkTypes -> Maybe Text)
-> (GetSdkTypes -> Maybe Text -> GetSdkTypes)
-> Lens GetSdkTypes GetSdkTypes (Maybe Text) (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSdkTypes' {Maybe Text
position :: Maybe Text
$sel:position:GetSdkTypes' :: GetSdkTypes -> Maybe Text
position} -> Maybe Text
position) (\s :: GetSdkTypes
s@GetSdkTypes' {} Maybe Text
a -> GetSdkTypes
s {$sel:position:GetSdkTypes' :: Maybe Text
position = Maybe Text
a} :: GetSdkTypes)

instance Core.AWSPager GetSdkTypes where
  page :: GetSdkTypes -> AWSResponse GetSdkTypes -> Maybe GetSdkTypes
page GetSdkTypes
rq AWSResponse GetSdkTypes
rs
    | Maybe Text -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse GetSdkTypes
GetSdkTypesResponse
rs
            GetSdkTypesResponse
-> Getting (First Text) GetSdkTypesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetSdkTypesResponse -> Const (First Text) GetSdkTypesResponse
Lens' GetSdkTypesResponse (Maybe Text)
getSdkTypesResponse_position ((Maybe Text -> Const (First Text) (Maybe Text))
 -> GetSdkTypesResponse -> Const (First Text) GetSdkTypesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetSdkTypesResponse 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 GetSdkTypes
forall a. Maybe a
Prelude.Nothing
    | Maybe [SdkType] -> Bool
forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse GetSdkTypes
GetSdkTypesResponse
rs
            GetSdkTypesResponse
-> Getting (First [SdkType]) GetSdkTypesResponse [SdkType]
-> Maybe [SdkType]
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe [SdkType] -> Const (First [SdkType]) (Maybe [SdkType]))
-> GetSdkTypesResponse
-> Const (First [SdkType]) GetSdkTypesResponse
Lens' GetSdkTypesResponse (Maybe [SdkType])
getSdkTypesResponse_items ((Maybe [SdkType] -> Const (First [SdkType]) (Maybe [SdkType]))
 -> GetSdkTypesResponse
 -> Const (First [SdkType]) GetSdkTypesResponse)
-> (([SdkType] -> Const (First [SdkType]) [SdkType])
    -> Maybe [SdkType] -> Const (First [SdkType]) (Maybe [SdkType]))
-> Getting (First [SdkType]) GetSdkTypesResponse [SdkType]
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. ([SdkType] -> Const (First [SdkType]) [SdkType])
-> Maybe [SdkType] -> Const (First [SdkType]) (Maybe [SdkType])
forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
      Maybe GetSdkTypes
forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
      GetSdkTypes -> Maybe GetSdkTypes
forall a. a -> Maybe a
Prelude.Just (GetSdkTypes -> Maybe GetSdkTypes)
-> GetSdkTypes -> Maybe GetSdkTypes
forall a b. (a -> b) -> a -> b
Prelude.$
        GetSdkTypes
rq
          GetSdkTypes -> (GetSdkTypes -> GetSdkTypes) -> GetSdkTypes
forall a b. a -> (a -> b) -> b
Prelude.& (Maybe Text -> Identity (Maybe Text))
-> GetSdkTypes -> Identity GetSdkTypes
Lens GetSdkTypes GetSdkTypes (Maybe Text) (Maybe Text)
getSdkTypes_position
          ((Maybe Text -> Identity (Maybe Text))
 -> GetSdkTypes -> Identity GetSdkTypes)
-> Maybe Text -> GetSdkTypes -> GetSdkTypes
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse GetSdkTypes
GetSdkTypesResponse
rs
          GetSdkTypesResponse
-> Getting (First Text) GetSdkTypesResponse Text -> Maybe Text
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? (Maybe Text -> Const (First Text) (Maybe Text))
-> GetSdkTypesResponse -> Const (First Text) GetSdkTypesResponse
Lens' GetSdkTypesResponse (Maybe Text)
getSdkTypesResponse_position ((Maybe Text -> Const (First Text) (Maybe Text))
 -> GetSdkTypesResponse -> Const (First Text) GetSdkTypesResponse)
-> ((Text -> Const (First Text) Text)
    -> Maybe Text -> Const (First Text) (Maybe Text))
-> Getting (First Text) GetSdkTypesResponse 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 GetSdkTypes where
  type AWSResponse GetSdkTypes = GetSdkTypesResponse
  request :: GetSdkTypes -> Request GetSdkTypes
request = Service -> GetSdkTypes -> Request GetSdkTypes
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy GetSdkTypes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetSdkTypes)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse GetSdkTypes))
-> Logger
-> Service
-> Proxy GetSdkTypes
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse GetSdkTypes)))
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 [SdkType] -> Maybe Text -> Int -> GetSdkTypesResponse
GetSdkTypesResponse'
            (Maybe [SdkType] -> Maybe Text -> Int -> GetSdkTypesResponse)
-> Either String (Maybe [SdkType])
-> Either String (Maybe Text -> Int -> GetSdkTypesResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe (Maybe [SdkType]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"item" Either String (Maybe (Maybe [SdkType]))
-> Maybe [SdkType] -> Either String (Maybe [SdkType])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [SdkType]
forall a. Monoid a => a
Prelude.mempty)
            Either String (Maybe Text -> Int -> GetSdkTypesResponse)
-> Either String (Maybe Text)
-> Either String (Int -> GetSdkTypesResponse)
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 -> GetSdkTypesResponse)
-> Either String Int -> Either String GetSdkTypesResponse
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 GetSdkTypes

instance Prelude.NFData GetSdkTypes

instance Core.ToHeaders GetSdkTypes where
  toHeaders :: GetSdkTypes -> ResponseHeaders
toHeaders =
    ResponseHeaders -> GetSdkTypes -> 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 GetSdkTypes where
  toPath :: GetSdkTypes -> ByteString
toPath = ByteString -> GetSdkTypes -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/sdktypes"

instance Core.ToQuery GetSdkTypes where
  toQuery :: GetSdkTypes -> QueryString
toQuery GetSdkTypes' {Maybe Int
Maybe Text
position :: Maybe Text
limit :: Maybe Int
$sel:position:GetSdkTypes' :: GetSdkTypes -> Maybe Text
$sel:limit:GetSdkTypes' :: GetSdkTypes -> 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]

-- | The collection of SdkType instances.
--
-- /See:/ 'newGetSdkTypesResponse' smart constructor.
data GetSdkTypesResponse = GetSdkTypesResponse'
  { -- | The current page of elements from this collection.
    GetSdkTypesResponse -> Maybe [SdkType]
items :: Prelude.Maybe [SdkType],
    GetSdkTypesResponse -> Maybe Text
position :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    GetSdkTypesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (GetSdkTypesResponse -> GetSdkTypesResponse -> Bool
(GetSdkTypesResponse -> GetSdkTypesResponse -> Bool)
-> (GetSdkTypesResponse -> GetSdkTypesResponse -> Bool)
-> Eq GetSdkTypesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GetSdkTypesResponse -> GetSdkTypesResponse -> Bool
$c/= :: GetSdkTypesResponse -> GetSdkTypesResponse -> Bool
== :: GetSdkTypesResponse -> GetSdkTypesResponse -> Bool
$c== :: GetSdkTypesResponse -> GetSdkTypesResponse -> Bool
Prelude.Eq, ReadPrec [GetSdkTypesResponse]
ReadPrec GetSdkTypesResponse
Int -> ReadS GetSdkTypesResponse
ReadS [GetSdkTypesResponse]
(Int -> ReadS GetSdkTypesResponse)
-> ReadS [GetSdkTypesResponse]
-> ReadPrec GetSdkTypesResponse
-> ReadPrec [GetSdkTypesResponse]
-> Read GetSdkTypesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [GetSdkTypesResponse]
$creadListPrec :: ReadPrec [GetSdkTypesResponse]
readPrec :: ReadPrec GetSdkTypesResponse
$creadPrec :: ReadPrec GetSdkTypesResponse
readList :: ReadS [GetSdkTypesResponse]
$creadList :: ReadS [GetSdkTypesResponse]
readsPrec :: Int -> ReadS GetSdkTypesResponse
$creadsPrec :: Int -> ReadS GetSdkTypesResponse
Prelude.Read, Int -> GetSdkTypesResponse -> ShowS
[GetSdkTypesResponse] -> ShowS
GetSdkTypesResponse -> String
(Int -> GetSdkTypesResponse -> ShowS)
-> (GetSdkTypesResponse -> String)
-> ([GetSdkTypesResponse] -> ShowS)
-> Show GetSdkTypesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [GetSdkTypesResponse] -> ShowS
$cshowList :: [GetSdkTypesResponse] -> ShowS
show :: GetSdkTypesResponse -> String
$cshow :: GetSdkTypesResponse -> String
showsPrec :: Int -> GetSdkTypesResponse -> ShowS
$cshowsPrec :: Int -> GetSdkTypesResponse -> ShowS
Prelude.Show, (forall x. GetSdkTypesResponse -> Rep GetSdkTypesResponse x)
-> (forall x. Rep GetSdkTypesResponse x -> GetSdkTypesResponse)
-> Generic GetSdkTypesResponse
forall x. Rep GetSdkTypesResponse x -> GetSdkTypesResponse
forall x. GetSdkTypesResponse -> Rep GetSdkTypesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep GetSdkTypesResponse x -> GetSdkTypesResponse
$cfrom :: forall x. GetSdkTypesResponse -> Rep GetSdkTypesResponse x
Prelude.Generic)

-- |
-- Create a value of 'GetSdkTypesResponse' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'items', 'getSdkTypesResponse_items' - The current page of elements from this collection.
--
-- 'position', 'getSdkTypesResponse_position' - Undocumented member.
--
-- 'httpStatus', 'getSdkTypesResponse_httpStatus' - The response's http status code.
newGetSdkTypesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  GetSdkTypesResponse
newGetSdkTypesResponse :: Int -> GetSdkTypesResponse
newGetSdkTypesResponse Int
pHttpStatus_ =
  GetSdkTypesResponse' :: Maybe [SdkType] -> Maybe Text -> Int -> GetSdkTypesResponse
GetSdkTypesResponse'
    { $sel:items:GetSdkTypesResponse' :: Maybe [SdkType]
items = Maybe [SdkType]
forall a. Maybe a
Prelude.Nothing,
      $sel:position:GetSdkTypesResponse' :: Maybe Text
position = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:GetSdkTypesResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | The current page of elements from this collection.
getSdkTypesResponse_items :: Lens.Lens' GetSdkTypesResponse (Prelude.Maybe [SdkType])
getSdkTypesResponse_items :: (Maybe [SdkType] -> f (Maybe [SdkType]))
-> GetSdkTypesResponse -> f GetSdkTypesResponse
getSdkTypesResponse_items = (GetSdkTypesResponse -> Maybe [SdkType])
-> (GetSdkTypesResponse -> Maybe [SdkType] -> GetSdkTypesResponse)
-> Lens' GetSdkTypesResponse (Maybe [SdkType])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSdkTypesResponse' {Maybe [SdkType]
items :: Maybe [SdkType]
$sel:items:GetSdkTypesResponse' :: GetSdkTypesResponse -> Maybe [SdkType]
items} -> Maybe [SdkType]
items) (\s :: GetSdkTypesResponse
s@GetSdkTypesResponse' {} Maybe [SdkType]
a -> GetSdkTypesResponse
s {$sel:items:GetSdkTypesResponse' :: Maybe [SdkType]
items = Maybe [SdkType]
a} :: GetSdkTypesResponse) ((Maybe [SdkType] -> f (Maybe [SdkType]))
 -> GetSdkTypesResponse -> f GetSdkTypesResponse)
-> ((Maybe [SdkType] -> f (Maybe [SdkType]))
    -> Maybe [SdkType] -> f (Maybe [SdkType]))
-> (Maybe [SdkType] -> f (Maybe [SdkType]))
-> GetSdkTypesResponse
-> f GetSdkTypesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [SdkType] [SdkType] [SdkType] [SdkType]
-> Iso
     (Maybe [SdkType])
     (Maybe [SdkType])
     (Maybe [SdkType])
     (Maybe [SdkType])
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 [SdkType] [SdkType] [SdkType] [SdkType]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
getSdkTypesResponse_position :: Lens.Lens' GetSdkTypesResponse (Prelude.Maybe Prelude.Text)
getSdkTypesResponse_position :: (Maybe Text -> f (Maybe Text))
-> GetSdkTypesResponse -> f GetSdkTypesResponse
getSdkTypesResponse_position = (GetSdkTypesResponse -> Maybe Text)
-> (GetSdkTypesResponse -> Maybe Text -> GetSdkTypesResponse)
-> Lens' GetSdkTypesResponse (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSdkTypesResponse' {Maybe Text
position :: Maybe Text
$sel:position:GetSdkTypesResponse' :: GetSdkTypesResponse -> Maybe Text
position} -> Maybe Text
position) (\s :: GetSdkTypesResponse
s@GetSdkTypesResponse' {} Maybe Text
a -> GetSdkTypesResponse
s {$sel:position:GetSdkTypesResponse' :: Maybe Text
position = Maybe Text
a} :: GetSdkTypesResponse)

-- | The response's http status code.
getSdkTypesResponse_httpStatus :: Lens.Lens' GetSdkTypesResponse Prelude.Int
getSdkTypesResponse_httpStatus :: (Int -> f Int) -> GetSdkTypesResponse -> f GetSdkTypesResponse
getSdkTypesResponse_httpStatus = (GetSdkTypesResponse -> Int)
-> (GetSdkTypesResponse -> Int -> GetSdkTypesResponse)
-> Lens GetSdkTypesResponse GetSdkTypesResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\GetSdkTypesResponse' {Int
httpStatus :: Int
$sel:httpStatus:GetSdkTypesResponse' :: GetSdkTypesResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: GetSdkTypesResponse
s@GetSdkTypesResponse' {} Int
a -> GetSdkTypesResponse
s {$sel:httpStatus:GetSdkTypesResponse' :: Int
httpStatus = Int
a} :: GetSdkTypesResponse)

instance Prelude.NFData GetSdkTypesResponse