{-# 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.ElasticSearch.ListDomainsForPackage
-- 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)
--
-- Lists all Amazon ES domains associated with the package.
module Amazonka.ElasticSearch.ListDomainsForPackage
  ( -- * Creating a Request
    ListDomainsForPackage (..),
    newListDomainsForPackage,

    -- * Request Lenses
    listDomainsForPackage_nextToken,
    listDomainsForPackage_maxResults,
    listDomainsForPackage_packageID,

    -- * Destructuring the Response
    ListDomainsForPackageResponse (..),
    newListDomainsForPackageResponse,

    -- * Response Lenses
    listDomainsForPackageResponse_domainPackageDetailsList,
    listDomainsForPackageResponse_nextToken,
    listDomainsForPackageResponse_httpStatus,
  )
where

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

-- | Container for request parameters to @ ListDomainsForPackage @ operation.
--
-- /See:/ 'newListDomainsForPackage' smart constructor.
data ListDomainsForPackage = ListDomainsForPackage'
  { -- | Used for pagination. Only necessary if a previous API call includes a
    -- non-null NextToken value. If provided, returns results for the next
    -- page.
    ListDomainsForPackage -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Limits results to a maximum number of domains.
    ListDomainsForPackage -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
    -- | The package for which to list domains.
    ListDomainsForPackage -> Text
packageID :: Prelude.Text
  }
  deriving (ListDomainsForPackage -> ListDomainsForPackage -> Bool
(ListDomainsForPackage -> ListDomainsForPackage -> Bool)
-> (ListDomainsForPackage -> ListDomainsForPackage -> Bool)
-> Eq ListDomainsForPackage
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDomainsForPackage -> ListDomainsForPackage -> Bool
$c/= :: ListDomainsForPackage -> ListDomainsForPackage -> Bool
== :: ListDomainsForPackage -> ListDomainsForPackage -> Bool
$c== :: ListDomainsForPackage -> ListDomainsForPackage -> Bool
Prelude.Eq, ReadPrec [ListDomainsForPackage]
ReadPrec ListDomainsForPackage
Int -> ReadS ListDomainsForPackage
ReadS [ListDomainsForPackage]
(Int -> ReadS ListDomainsForPackage)
-> ReadS [ListDomainsForPackage]
-> ReadPrec ListDomainsForPackage
-> ReadPrec [ListDomainsForPackage]
-> Read ListDomainsForPackage
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDomainsForPackage]
$creadListPrec :: ReadPrec [ListDomainsForPackage]
readPrec :: ReadPrec ListDomainsForPackage
$creadPrec :: ReadPrec ListDomainsForPackage
readList :: ReadS [ListDomainsForPackage]
$creadList :: ReadS [ListDomainsForPackage]
readsPrec :: Int -> ReadS ListDomainsForPackage
$creadsPrec :: Int -> ReadS ListDomainsForPackage
Prelude.Read, Int -> ListDomainsForPackage -> ShowS
[ListDomainsForPackage] -> ShowS
ListDomainsForPackage -> String
(Int -> ListDomainsForPackage -> ShowS)
-> (ListDomainsForPackage -> String)
-> ([ListDomainsForPackage] -> ShowS)
-> Show ListDomainsForPackage
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDomainsForPackage] -> ShowS
$cshowList :: [ListDomainsForPackage] -> ShowS
show :: ListDomainsForPackage -> String
$cshow :: ListDomainsForPackage -> String
showsPrec :: Int -> ListDomainsForPackage -> ShowS
$cshowsPrec :: Int -> ListDomainsForPackage -> ShowS
Prelude.Show, (forall x. ListDomainsForPackage -> Rep ListDomainsForPackage x)
-> (forall x. Rep ListDomainsForPackage x -> ListDomainsForPackage)
-> Generic ListDomainsForPackage
forall x. Rep ListDomainsForPackage x -> ListDomainsForPackage
forall x. ListDomainsForPackage -> Rep ListDomainsForPackage x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep ListDomainsForPackage x -> ListDomainsForPackage
$cfrom :: forall x. ListDomainsForPackage -> Rep ListDomainsForPackage x
Prelude.Generic)

-- |
-- Create a value of 'ListDomainsForPackage' 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', 'listDomainsForPackage_nextToken' - Used for pagination. Only necessary if a previous API call includes a
-- non-null NextToken value. If provided, returns results for the next
-- page.
--
-- 'maxResults', 'listDomainsForPackage_maxResults' - Limits results to a maximum number of domains.
--
-- 'packageID', 'listDomainsForPackage_packageID' - The package for which to list domains.
newListDomainsForPackage ::
  -- | 'packageID'
  Prelude.Text ->
  ListDomainsForPackage
newListDomainsForPackage :: Text -> ListDomainsForPackage
newListDomainsForPackage Text
pPackageID_ =
  ListDomainsForPackage' :: Maybe Text -> Maybe Int -> Text -> ListDomainsForPackage
ListDomainsForPackage'
    { $sel:nextToken:ListDomainsForPackage' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListDomainsForPackage' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
      $sel:packageID:ListDomainsForPackage' :: Text
packageID = Text
pPackageID_
    }

-- | Used for pagination. Only necessary if a previous API call includes a
-- non-null NextToken value. If provided, returns results for the next
-- page.
listDomainsForPackage_nextToken :: Lens.Lens' ListDomainsForPackage (Prelude.Maybe Prelude.Text)
listDomainsForPackage_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListDomainsForPackage -> f ListDomainsForPackage
listDomainsForPackage_nextToken = (ListDomainsForPackage -> Maybe Text)
-> (ListDomainsForPackage -> Maybe Text -> ListDomainsForPackage)
-> Lens
     ListDomainsForPackage
     ListDomainsForPackage
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDomainsForPackage' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListDomainsForPackage' :: ListDomainsForPackage -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListDomainsForPackage
s@ListDomainsForPackage' {} Maybe Text
a -> ListDomainsForPackage
s {$sel:nextToken:ListDomainsForPackage' :: Maybe Text
nextToken = Maybe Text
a} :: ListDomainsForPackage)

-- | Limits results to a maximum number of domains.
listDomainsForPackage_maxResults :: Lens.Lens' ListDomainsForPackage (Prelude.Maybe Prelude.Int)
listDomainsForPackage_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListDomainsForPackage -> f ListDomainsForPackage
listDomainsForPackage_maxResults = (ListDomainsForPackage -> Maybe Int)
-> (ListDomainsForPackage -> Maybe Int -> ListDomainsForPackage)
-> Lens
     ListDomainsForPackage ListDomainsForPackage (Maybe Int) (Maybe Int)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDomainsForPackage' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:ListDomainsForPackage' :: ListDomainsForPackage -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: ListDomainsForPackage
s@ListDomainsForPackage' {} Maybe Int
a -> ListDomainsForPackage
s {$sel:maxResults:ListDomainsForPackage' :: Maybe Int
maxResults = Maybe Int
a} :: ListDomainsForPackage)

-- | The package for which to list domains.
listDomainsForPackage_packageID :: Lens.Lens' ListDomainsForPackage Prelude.Text
listDomainsForPackage_packageID :: (Text -> f Text)
-> ListDomainsForPackage -> f ListDomainsForPackage
listDomainsForPackage_packageID = (ListDomainsForPackage -> Text)
-> (ListDomainsForPackage -> Text -> ListDomainsForPackage)
-> Lens ListDomainsForPackage ListDomainsForPackage Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDomainsForPackage' {Text
packageID :: Text
$sel:packageID:ListDomainsForPackage' :: ListDomainsForPackage -> Text
packageID} -> Text
packageID) (\s :: ListDomainsForPackage
s@ListDomainsForPackage' {} Text
a -> ListDomainsForPackage
s {$sel:packageID:ListDomainsForPackage' :: Text
packageID = Text
a} :: ListDomainsForPackage)

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

instance Prelude.NFData ListDomainsForPackage

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

instance Core.ToPath ListDomainsForPackage where
  toPath :: ListDomainsForPackage -> ByteString
toPath ListDomainsForPackage' {Maybe Int
Maybe Text
Text
packageID :: Text
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:packageID:ListDomainsForPackage' :: ListDomainsForPackage -> Text
$sel:maxResults:ListDomainsForPackage' :: ListDomainsForPackage -> Maybe Int
$sel:nextToken:ListDomainsForPackage' :: ListDomainsForPackage -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/2015-01-01/packages/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
packageID,
        ByteString
"/domains"
      ]

instance Core.ToQuery ListDomainsForPackage where
  toQuery :: ListDomainsForPackage -> QueryString
toQuery ListDomainsForPackage' {Maybe Int
Maybe Text
Text
packageID :: Text
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:packageID:ListDomainsForPackage' :: ListDomainsForPackage -> Text
$sel:maxResults:ListDomainsForPackage' :: ListDomainsForPackage -> Maybe Int
$sel:nextToken:ListDomainsForPackage' :: ListDomainsForPackage -> 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
"maxResults" ByteString -> Maybe Int -> QueryString
forall a. ToQuery a => ByteString -> a -> QueryString
Core.=: Maybe Int
maxResults
      ]

-- | Container for response parameters to @ ListDomainsForPackage @
-- operation.
--
-- /See:/ 'newListDomainsForPackageResponse' smart constructor.
data ListDomainsForPackageResponse = ListDomainsForPackageResponse'
  { -- | List of @DomainPackageDetails@ objects.
    ListDomainsForPackageResponse -> Maybe [DomainPackageDetails]
domainPackageDetailsList :: Prelude.Maybe [DomainPackageDetails],
    ListDomainsForPackageResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListDomainsForPackageResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListDomainsForPackageResponse
-> ListDomainsForPackageResponse -> Bool
(ListDomainsForPackageResponse
 -> ListDomainsForPackageResponse -> Bool)
-> (ListDomainsForPackageResponse
    -> ListDomainsForPackageResponse -> Bool)
-> Eq ListDomainsForPackageResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListDomainsForPackageResponse
-> ListDomainsForPackageResponse -> Bool
$c/= :: ListDomainsForPackageResponse
-> ListDomainsForPackageResponse -> Bool
== :: ListDomainsForPackageResponse
-> ListDomainsForPackageResponse -> Bool
$c== :: ListDomainsForPackageResponse
-> ListDomainsForPackageResponse -> Bool
Prelude.Eq, ReadPrec [ListDomainsForPackageResponse]
ReadPrec ListDomainsForPackageResponse
Int -> ReadS ListDomainsForPackageResponse
ReadS [ListDomainsForPackageResponse]
(Int -> ReadS ListDomainsForPackageResponse)
-> ReadS [ListDomainsForPackageResponse]
-> ReadPrec ListDomainsForPackageResponse
-> ReadPrec [ListDomainsForPackageResponse]
-> Read ListDomainsForPackageResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListDomainsForPackageResponse]
$creadListPrec :: ReadPrec [ListDomainsForPackageResponse]
readPrec :: ReadPrec ListDomainsForPackageResponse
$creadPrec :: ReadPrec ListDomainsForPackageResponse
readList :: ReadS [ListDomainsForPackageResponse]
$creadList :: ReadS [ListDomainsForPackageResponse]
readsPrec :: Int -> ReadS ListDomainsForPackageResponse
$creadsPrec :: Int -> ReadS ListDomainsForPackageResponse
Prelude.Read, Int -> ListDomainsForPackageResponse -> ShowS
[ListDomainsForPackageResponse] -> ShowS
ListDomainsForPackageResponse -> String
(Int -> ListDomainsForPackageResponse -> ShowS)
-> (ListDomainsForPackageResponse -> String)
-> ([ListDomainsForPackageResponse] -> ShowS)
-> Show ListDomainsForPackageResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListDomainsForPackageResponse] -> ShowS
$cshowList :: [ListDomainsForPackageResponse] -> ShowS
show :: ListDomainsForPackageResponse -> String
$cshow :: ListDomainsForPackageResponse -> String
showsPrec :: Int -> ListDomainsForPackageResponse -> ShowS
$cshowsPrec :: Int -> ListDomainsForPackageResponse -> ShowS
Prelude.Show, (forall x.
 ListDomainsForPackageResponse
 -> Rep ListDomainsForPackageResponse x)
-> (forall x.
    Rep ListDomainsForPackageResponse x
    -> ListDomainsForPackageResponse)
-> Generic ListDomainsForPackageResponse
forall x.
Rep ListDomainsForPackageResponse x
-> ListDomainsForPackageResponse
forall x.
ListDomainsForPackageResponse
-> Rep ListDomainsForPackageResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListDomainsForPackageResponse x
-> ListDomainsForPackageResponse
$cfrom :: forall x.
ListDomainsForPackageResponse
-> Rep ListDomainsForPackageResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListDomainsForPackageResponse' 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:
--
-- 'domainPackageDetailsList', 'listDomainsForPackageResponse_domainPackageDetailsList' - List of @DomainPackageDetails@ objects.
--
-- 'nextToken', 'listDomainsForPackageResponse_nextToken' - Undocumented member.
--
-- 'httpStatus', 'listDomainsForPackageResponse_httpStatus' - The response's http status code.
newListDomainsForPackageResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListDomainsForPackageResponse
newListDomainsForPackageResponse :: Int -> ListDomainsForPackageResponse
newListDomainsForPackageResponse Int
pHttpStatus_ =
  ListDomainsForPackageResponse' :: Maybe [DomainPackageDetails]
-> Maybe Text -> Int -> ListDomainsForPackageResponse
ListDomainsForPackageResponse'
    { $sel:domainPackageDetailsList:ListDomainsForPackageResponse' :: Maybe [DomainPackageDetails]
domainPackageDetailsList =
        Maybe [DomainPackageDetails]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListDomainsForPackageResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListDomainsForPackageResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | List of @DomainPackageDetails@ objects.
listDomainsForPackageResponse_domainPackageDetailsList :: Lens.Lens' ListDomainsForPackageResponse (Prelude.Maybe [DomainPackageDetails])
listDomainsForPackageResponse_domainPackageDetailsList :: (Maybe [DomainPackageDetails] -> f (Maybe [DomainPackageDetails]))
-> ListDomainsForPackageResponse -> f ListDomainsForPackageResponse
listDomainsForPackageResponse_domainPackageDetailsList = (ListDomainsForPackageResponse -> Maybe [DomainPackageDetails])
-> (ListDomainsForPackageResponse
    -> Maybe [DomainPackageDetails] -> ListDomainsForPackageResponse)
-> Lens
     ListDomainsForPackageResponse
     ListDomainsForPackageResponse
     (Maybe [DomainPackageDetails])
     (Maybe [DomainPackageDetails])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListDomainsForPackageResponse' {Maybe [DomainPackageDetails]
domainPackageDetailsList :: Maybe [DomainPackageDetails]
$sel:domainPackageDetailsList:ListDomainsForPackageResponse' :: ListDomainsForPackageResponse -> Maybe [DomainPackageDetails]
domainPackageDetailsList} -> Maybe [DomainPackageDetails]
domainPackageDetailsList) (\s :: ListDomainsForPackageResponse
s@ListDomainsForPackageResponse' {} Maybe [DomainPackageDetails]
a -> ListDomainsForPackageResponse
s {$sel:domainPackageDetailsList:ListDomainsForPackageResponse' :: Maybe [DomainPackageDetails]
domainPackageDetailsList = Maybe [DomainPackageDetails]
a} :: ListDomainsForPackageResponse) ((Maybe [DomainPackageDetails] -> f (Maybe [DomainPackageDetails]))
 -> ListDomainsForPackageResponse
 -> f ListDomainsForPackageResponse)
-> ((Maybe [DomainPackageDetails]
     -> f (Maybe [DomainPackageDetails]))
    -> Maybe [DomainPackageDetails]
    -> f (Maybe [DomainPackageDetails]))
-> (Maybe [DomainPackageDetails]
    -> f (Maybe [DomainPackageDetails]))
-> ListDomainsForPackageResponse
-> f ListDomainsForPackageResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [DomainPackageDetails]
  [DomainPackageDetails]
  [DomainPackageDetails]
  [DomainPackageDetails]
-> Iso
     (Maybe [DomainPackageDetails])
     (Maybe [DomainPackageDetails])
     (Maybe [DomainPackageDetails])
     (Maybe [DomainPackageDetails])
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
  [DomainPackageDetails]
  [DomainPackageDetails]
  [DomainPackageDetails]
  [DomainPackageDetails]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

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

instance Prelude.NFData ListDomainsForPackageResponse