{-# 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.OpenSearch.ListInstanceTypeDetails
-- 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.
module Amazonka.OpenSearch.ListInstanceTypeDetails
  ( -- * Creating a Request
    ListInstanceTypeDetails (..),
    newListInstanceTypeDetails,

    -- * Request Lenses
    listInstanceTypeDetails_nextToken,
    listInstanceTypeDetails_domainName,
    listInstanceTypeDetails_maxResults,
    listInstanceTypeDetails_engineVersion,

    -- * Destructuring the Response
    ListInstanceTypeDetailsResponse (..),
    newListInstanceTypeDetailsResponse,

    -- * Response Lenses
    listInstanceTypeDetailsResponse_instanceTypeDetails,
    listInstanceTypeDetailsResponse_nextToken,
    listInstanceTypeDetailsResponse_httpStatus,
  )
where

import qualified Amazonka.Core as Core
import qualified Amazonka.Lens as Lens
import Amazonka.OpenSearch.Types
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response

-- | /See:/ 'newListInstanceTypeDetails' smart constructor.
data ListInstanceTypeDetails = ListInstanceTypeDetails'
  { ListInstanceTypeDetails -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    ListInstanceTypeDetails -> Maybe Text
domainName :: Prelude.Maybe Prelude.Text,
    ListInstanceTypeDetails -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
    ListInstanceTypeDetails -> Text
engineVersion :: Prelude.Text
  }
  deriving (ListInstanceTypeDetails -> ListInstanceTypeDetails -> Bool
(ListInstanceTypeDetails -> ListInstanceTypeDetails -> Bool)
-> (ListInstanceTypeDetails -> ListInstanceTypeDetails -> Bool)
-> Eq ListInstanceTypeDetails
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInstanceTypeDetails -> ListInstanceTypeDetails -> Bool
$c/= :: ListInstanceTypeDetails -> ListInstanceTypeDetails -> Bool
== :: ListInstanceTypeDetails -> ListInstanceTypeDetails -> Bool
$c== :: ListInstanceTypeDetails -> ListInstanceTypeDetails -> Bool
Prelude.Eq, ReadPrec [ListInstanceTypeDetails]
ReadPrec ListInstanceTypeDetails
Int -> ReadS ListInstanceTypeDetails
ReadS [ListInstanceTypeDetails]
(Int -> ReadS ListInstanceTypeDetails)
-> ReadS [ListInstanceTypeDetails]
-> ReadPrec ListInstanceTypeDetails
-> ReadPrec [ListInstanceTypeDetails]
-> Read ListInstanceTypeDetails
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInstanceTypeDetails]
$creadListPrec :: ReadPrec [ListInstanceTypeDetails]
readPrec :: ReadPrec ListInstanceTypeDetails
$creadPrec :: ReadPrec ListInstanceTypeDetails
readList :: ReadS [ListInstanceTypeDetails]
$creadList :: ReadS [ListInstanceTypeDetails]
readsPrec :: Int -> ReadS ListInstanceTypeDetails
$creadsPrec :: Int -> ReadS ListInstanceTypeDetails
Prelude.Read, Int -> ListInstanceTypeDetails -> ShowS
[ListInstanceTypeDetails] -> ShowS
ListInstanceTypeDetails -> String
(Int -> ListInstanceTypeDetails -> ShowS)
-> (ListInstanceTypeDetails -> String)
-> ([ListInstanceTypeDetails] -> ShowS)
-> Show ListInstanceTypeDetails
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInstanceTypeDetails] -> ShowS
$cshowList :: [ListInstanceTypeDetails] -> ShowS
show :: ListInstanceTypeDetails -> String
$cshow :: ListInstanceTypeDetails -> String
showsPrec :: Int -> ListInstanceTypeDetails -> ShowS
$cshowsPrec :: Int -> ListInstanceTypeDetails -> ShowS
Prelude.Show, (forall x.
 ListInstanceTypeDetails -> Rep ListInstanceTypeDetails x)
-> (forall x.
    Rep ListInstanceTypeDetails x -> ListInstanceTypeDetails)
-> Generic ListInstanceTypeDetails
forall x. Rep ListInstanceTypeDetails x -> ListInstanceTypeDetails
forall x. ListInstanceTypeDetails -> Rep ListInstanceTypeDetails x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListInstanceTypeDetails x -> ListInstanceTypeDetails
$cfrom :: forall x. ListInstanceTypeDetails -> Rep ListInstanceTypeDetails x
Prelude.Generic)

-- |
-- Create a value of 'ListInstanceTypeDetails' 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:
--
-- 'nextToken', 'listInstanceTypeDetails_nextToken' - Undocumented member.
--
-- 'domainName', 'listInstanceTypeDetails_domainName' - Undocumented member.
--
-- 'maxResults', 'listInstanceTypeDetails_maxResults' - Undocumented member.
--
-- 'engineVersion', 'listInstanceTypeDetails_engineVersion' - Undocumented member.
newListInstanceTypeDetails ::
  -- | 'engineVersion'
  Prelude.Text ->
  ListInstanceTypeDetails
newListInstanceTypeDetails :: Text -> ListInstanceTypeDetails
newListInstanceTypeDetails Text
pEngineVersion_ =
  ListInstanceTypeDetails' :: Maybe Text
-> Maybe Text -> Maybe Int -> Text -> ListInstanceTypeDetails
ListInstanceTypeDetails'
    { $sel:nextToken:ListInstanceTypeDetails' :: Maybe Text
nextToken =
        Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:domainName:ListInstanceTypeDetails' :: Maybe Text
domainName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListInstanceTypeDetails' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:engineVersion:ListInstanceTypeDetails' :: Text
engineVersion = Text
pEngineVersion_
    }

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

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

-- | Undocumented member.
listInstanceTypeDetails_maxResults :: Lens.Lens' ListInstanceTypeDetails (Prelude.Maybe Prelude.Int)
listInstanceTypeDetails_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListInstanceTypeDetails -> f ListInstanceTypeDetails
listInstanceTypeDetails_maxResults = (ListInstanceTypeDetails -> Maybe Int)
-> (ListInstanceTypeDetails
    -> Maybe Int -> ListInstanceTypeDetails)
-> Lens
     ListInstanceTypeDetails
     ListInstanceTypeDetails
     (Maybe Int)
     (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInstanceTypeDetails' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListInstanceTypeDetails' :: ListInstanceTypeDetails -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListInstanceTypeDetails
s@ListInstanceTypeDetails' {} Maybe Int
a -> ListInstanceTypeDetails
s {$sel:maxResults:ListInstanceTypeDetails' :: Maybe Int
maxResults = Maybe Int
a} :: ListInstanceTypeDetails)

-- | Undocumented member.
listInstanceTypeDetails_engineVersion :: Lens.Lens' ListInstanceTypeDetails Prelude.Text
listInstanceTypeDetails_engineVersion :: (Text -> f Text)
-> ListInstanceTypeDetails -> f ListInstanceTypeDetails
listInstanceTypeDetails_engineVersion = (ListInstanceTypeDetails -> Text)
-> (ListInstanceTypeDetails -> Text -> ListInstanceTypeDetails)
-> Lens ListInstanceTypeDetails ListInstanceTypeDetails Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInstanceTypeDetails' {Text
engineVersion :: Text
$sel:engineVersion:ListInstanceTypeDetails' :: ListInstanceTypeDetails -> Text
engineVersion} -> Text
engineVersion) (\s :: ListInstanceTypeDetails
s@ListInstanceTypeDetails' {} Text
a -> ListInstanceTypeDetails
s {$sel:engineVersion:ListInstanceTypeDetails' :: Text
engineVersion = Text
a} :: ListInstanceTypeDetails)

instance Core.AWSRequest ListInstanceTypeDetails where
  type
    AWSResponse ListInstanceTypeDetails =
      ListInstanceTypeDetailsResponse
  request :: ListInstanceTypeDetails -> Request ListInstanceTypeDetails
request = Service
-> ListInstanceTypeDetails -> Request ListInstanceTypeDetails
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
  response :: Logger
-> Service
-> Proxy ListInstanceTypeDetails
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListInstanceTypeDetails)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either String (AWSResponse ListInstanceTypeDetails))
-> Logger
-> Service
-> Proxy ListInstanceTypeDetails
-> ClientResponse ClientBody
-> m (Either
        Error (ClientResponse (AWSResponse ListInstanceTypeDetails)))
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 [InstanceTypeDetails]
-> Maybe Text -> Int -> ListInstanceTypeDetailsResponse
ListInstanceTypeDetailsResponse'
            (Maybe [InstanceTypeDetails]
 -> Maybe Text -> Int -> ListInstanceTypeDetailsResponse)
-> Either String (Maybe [InstanceTypeDetails])
-> Either
     String (Maybe Text -> Int -> ListInstanceTypeDetailsResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [InstanceTypeDetails]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"InstanceTypeDetails"
                            Either String (Maybe (Maybe [InstanceTypeDetails]))
-> Maybe [InstanceTypeDetails]
-> Either String (Maybe [InstanceTypeDetails])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [InstanceTypeDetails]
forall a. Monoid a => a
Prelude.mempty
                        )
            Either
  String (Maybe Text -> Int -> ListInstanceTypeDetailsResponse)
-> Either String (Maybe Text)
-> Either String (Int -> ListInstanceTypeDetailsResponse)
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 -> ListInstanceTypeDetailsResponse)
-> Either String Int
-> Either String ListInstanceTypeDetailsResponse
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 ListInstanceTypeDetails

instance Prelude.NFData ListInstanceTypeDetails

instance Core.ToHeaders ListInstanceTypeDetails where
  toHeaders :: ListInstanceTypeDetails -> ResponseHeaders
toHeaders = ResponseHeaders -> ListInstanceTypeDetails -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty

instance Core.ToPath ListInstanceTypeDetails where
  toPath :: ListInstanceTypeDetails -> ByteString
toPath ListInstanceTypeDetails' {Maybe Int
Maybe Text
Text
engineVersion :: Text
maxResults :: Maybe Int
domainName :: Maybe Text
nextToken :: Maybe Text
$sel:engineVersion:ListInstanceTypeDetails' :: ListInstanceTypeDetails -> Text
$sel:maxResults:ListInstanceTypeDetails' :: ListInstanceTypeDetails -> Maybe Int
$sel:domainName:ListInstanceTypeDetails' :: ListInstanceTypeDetails -> Maybe Text
$sel:nextToken:ListInstanceTypeDetails' :: ListInstanceTypeDetails -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2021-01-01/opensearch/instanceTypeDetails/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
engineVersion
      ]

instance Core.ToQuery ListInstanceTypeDetails where
  toQuery :: ListInstanceTypeDetails -> QueryString
toQuery ListInstanceTypeDetails' {Maybe Int
Maybe Text
Text
engineVersion :: Text
maxResults :: Maybe Int
domainName :: Maybe Text
nextToken :: Maybe Text
$sel:engineVersion:ListInstanceTypeDetails' :: ListInstanceTypeDetails -> Text
$sel:maxResults:ListInstanceTypeDetails' :: ListInstanceTypeDetails -> Maybe Int
$sel:domainName:ListInstanceTypeDetails' :: ListInstanceTypeDetails -> Maybe Text
$sel:nextToken:ListInstanceTypeDetails' :: ListInstanceTypeDetails -> Maybe Text
..} =
    [QueryString] -> QueryString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"nextToken" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
nextToken,
        ByteString
"domainName" ByteString -> Maybe Text -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Text
domainName,
        ByteString
"maxResults" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxResults
      ]

-- | /See:/ 'newListInstanceTypeDetailsResponse' smart constructor.
data ListInstanceTypeDetailsResponse = ListInstanceTypeDetailsResponse'
  { ListInstanceTypeDetailsResponse -> Maybe [InstanceTypeDetails]
instanceTypeDetails :: Prelude.Maybe [InstanceTypeDetails],
    ListInstanceTypeDetailsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListInstanceTypeDetailsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListInstanceTypeDetailsResponse
-> ListInstanceTypeDetailsResponse -> Bool
(ListInstanceTypeDetailsResponse
 -> ListInstanceTypeDetailsResponse -> Bool)
-> (ListInstanceTypeDetailsResponse
    -> ListInstanceTypeDetailsResponse -> Bool)
-> Eq ListInstanceTypeDetailsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListInstanceTypeDetailsResponse
-> ListInstanceTypeDetailsResponse -> Bool
$c/= :: ListInstanceTypeDetailsResponse
-> ListInstanceTypeDetailsResponse -> Bool
== :: ListInstanceTypeDetailsResponse
-> ListInstanceTypeDetailsResponse -> Bool
$c== :: ListInstanceTypeDetailsResponse
-> ListInstanceTypeDetailsResponse -> Bool
Prelude.Eq, ReadPrec [ListInstanceTypeDetailsResponse]
ReadPrec ListInstanceTypeDetailsResponse
Int -> ReadS ListInstanceTypeDetailsResponse
ReadS [ListInstanceTypeDetailsResponse]
(Int -> ReadS ListInstanceTypeDetailsResponse)
-> ReadS [ListInstanceTypeDetailsResponse]
-> ReadPrec ListInstanceTypeDetailsResponse
-> ReadPrec [ListInstanceTypeDetailsResponse]
-> Read ListInstanceTypeDetailsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListInstanceTypeDetailsResponse]
$creadListPrec :: ReadPrec [ListInstanceTypeDetailsResponse]
readPrec :: ReadPrec ListInstanceTypeDetailsResponse
$creadPrec :: ReadPrec ListInstanceTypeDetailsResponse
readList :: ReadS [ListInstanceTypeDetailsResponse]
$creadList :: ReadS [ListInstanceTypeDetailsResponse]
readsPrec :: Int -> ReadS ListInstanceTypeDetailsResponse
$creadsPrec :: Int -> ReadS ListInstanceTypeDetailsResponse
Prelude.Read, Int -> ListInstanceTypeDetailsResponse -> ShowS
[ListInstanceTypeDetailsResponse] -> ShowS
ListInstanceTypeDetailsResponse -> String
(Int -> ListInstanceTypeDetailsResponse -> ShowS)
-> (ListInstanceTypeDetailsResponse -> String)
-> ([ListInstanceTypeDetailsResponse] -> ShowS)
-> Show ListInstanceTypeDetailsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListInstanceTypeDetailsResponse] -> ShowS
$cshowList :: [ListInstanceTypeDetailsResponse] -> ShowS
show :: ListInstanceTypeDetailsResponse -> String
$cshow :: ListInstanceTypeDetailsResponse -> String
showsPrec :: Int -> ListInstanceTypeDetailsResponse -> ShowS
$cshowsPrec :: Int -> ListInstanceTypeDetailsResponse -> ShowS
Prelude.Show, (forall x.
 ListInstanceTypeDetailsResponse
 -> Rep ListInstanceTypeDetailsResponse x)
-> (forall x.
    Rep ListInstanceTypeDetailsResponse x
    -> ListInstanceTypeDetailsResponse)
-> Generic ListInstanceTypeDetailsResponse
forall x.
Rep ListInstanceTypeDetailsResponse x
-> ListInstanceTypeDetailsResponse
forall x.
ListInstanceTypeDetailsResponse
-> Rep ListInstanceTypeDetailsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListInstanceTypeDetailsResponse x
-> ListInstanceTypeDetailsResponse
$cfrom :: forall x.
ListInstanceTypeDetailsResponse
-> Rep ListInstanceTypeDetailsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListInstanceTypeDetailsResponse' 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:
--
-- 'instanceTypeDetails', 'listInstanceTypeDetailsResponse_instanceTypeDetails' - Undocumented member.
--
-- 'nextToken', 'listInstanceTypeDetailsResponse_nextToken' - Undocumented member.
--
-- 'httpStatus', 'listInstanceTypeDetailsResponse_httpStatus' - The response's http status code.
newListInstanceTypeDetailsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListInstanceTypeDetailsResponse
newListInstanceTypeDetailsResponse :: Int -> ListInstanceTypeDetailsResponse
newListInstanceTypeDetailsResponse Int
pHttpStatus_ =
  ListInstanceTypeDetailsResponse' :: Maybe [InstanceTypeDetails]
-> Maybe Text -> Int -> ListInstanceTypeDetailsResponse
ListInstanceTypeDetailsResponse'
    { $sel:instanceTypeDetails:ListInstanceTypeDetailsResponse' :: Maybe [InstanceTypeDetails]
instanceTypeDetails =
        Maybe [InstanceTypeDetails]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListInstanceTypeDetailsResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListInstanceTypeDetailsResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Undocumented member.
listInstanceTypeDetailsResponse_instanceTypeDetails :: Lens.Lens' ListInstanceTypeDetailsResponse (Prelude.Maybe [InstanceTypeDetails])
listInstanceTypeDetailsResponse_instanceTypeDetails :: (Maybe [InstanceTypeDetails] -> f (Maybe [InstanceTypeDetails]))
-> ListInstanceTypeDetailsResponse
-> f ListInstanceTypeDetailsResponse
listInstanceTypeDetailsResponse_instanceTypeDetails = (ListInstanceTypeDetailsResponse -> Maybe [InstanceTypeDetails])
-> (ListInstanceTypeDetailsResponse
    -> Maybe [InstanceTypeDetails] -> ListInstanceTypeDetailsResponse)
-> Lens
     ListInstanceTypeDetailsResponse
     ListInstanceTypeDetailsResponse
     (Maybe [InstanceTypeDetails])
     (Maybe [InstanceTypeDetails])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListInstanceTypeDetailsResponse' {Maybe [InstanceTypeDetails]
instanceTypeDetails :: Maybe [InstanceTypeDetails]
$sel:instanceTypeDetails:ListInstanceTypeDetailsResponse' :: ListInstanceTypeDetailsResponse -> Maybe [InstanceTypeDetails]
instanceTypeDetails} -> Maybe [InstanceTypeDetails]
instanceTypeDetails) (\s :: ListInstanceTypeDetailsResponse
s@ListInstanceTypeDetailsResponse' {} Maybe [InstanceTypeDetails]
a -> ListInstanceTypeDetailsResponse
s {$sel:instanceTypeDetails:ListInstanceTypeDetailsResponse' :: Maybe [InstanceTypeDetails]
instanceTypeDetails = Maybe [InstanceTypeDetails]
a} :: ListInstanceTypeDetailsResponse) ((Maybe [InstanceTypeDetails] -> f (Maybe [InstanceTypeDetails]))
 -> ListInstanceTypeDetailsResponse
 -> f ListInstanceTypeDetailsResponse)
-> ((Maybe [InstanceTypeDetails]
     -> f (Maybe [InstanceTypeDetails]))
    -> Maybe [InstanceTypeDetails] -> f (Maybe [InstanceTypeDetails]))
-> (Maybe [InstanceTypeDetails] -> f (Maybe [InstanceTypeDetails]))
-> ListInstanceTypeDetailsResponse
-> f ListInstanceTypeDetailsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [InstanceTypeDetails]
  [InstanceTypeDetails]
  [InstanceTypeDetails]
  [InstanceTypeDetails]
-> Iso
     (Maybe [InstanceTypeDetails])
     (Maybe [InstanceTypeDetails])
     (Maybe [InstanceTypeDetails])
     (Maybe [InstanceTypeDetails])
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
  [InstanceTypeDetails]
  [InstanceTypeDetails]
  [InstanceTypeDetails]
  [InstanceTypeDetails]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

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

instance
  Prelude.NFData
    ListInstanceTypeDetailsResponse