{-# 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.Panorama.ListApplicationInstanceDependencies
-- 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)
--
-- Returns a list of application instance dependencies.
module Amazonka.Panorama.ListApplicationInstanceDependencies
  ( -- * Creating a Request
    ListApplicationInstanceDependencies (..),
    newListApplicationInstanceDependencies,

    -- * Request Lenses
    listApplicationInstanceDependencies_nextToken,
    listApplicationInstanceDependencies_maxResults,
    listApplicationInstanceDependencies_applicationInstanceId,

    -- * Destructuring the Response
    ListApplicationInstanceDependenciesResponse (..),
    newListApplicationInstanceDependenciesResponse,

    -- * Response Lenses
    listApplicationInstanceDependenciesResponse_packageObjects,
    listApplicationInstanceDependenciesResponse_nextToken,
    listApplicationInstanceDependenciesResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListApplicationInstanceDependencies' smart constructor.
data ListApplicationInstanceDependencies = ListApplicationInstanceDependencies'
  { -- | Specify the pagination token from a previous request to retrieve the
    -- next page of results.
    ListApplicationInstanceDependencies -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The maximum number of application instance dependencies to return in one
    -- page of results.
    ListApplicationInstanceDependencies -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    -- | The application instance\'s ID.
    ListApplicationInstanceDependencies -> Text
applicationInstanceId :: Prelude.Text
  }
  deriving (ListApplicationInstanceDependencies
-> ListApplicationInstanceDependencies -> Bool
(ListApplicationInstanceDependencies
 -> ListApplicationInstanceDependencies -> Bool)
-> (ListApplicationInstanceDependencies
    -> ListApplicationInstanceDependencies -> Bool)
-> Eq ListApplicationInstanceDependencies
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListApplicationInstanceDependencies
-> ListApplicationInstanceDependencies -> Bool
$c/= :: ListApplicationInstanceDependencies
-> ListApplicationInstanceDependencies -> Bool
== :: ListApplicationInstanceDependencies
-> ListApplicationInstanceDependencies -> Bool
$c== :: ListApplicationInstanceDependencies
-> ListApplicationInstanceDependencies -> Bool
Prelude.Eq, ReadPrec [ListApplicationInstanceDependencies]
ReadPrec ListApplicationInstanceDependencies
Int -> ReadS ListApplicationInstanceDependencies
ReadS [ListApplicationInstanceDependencies]
(Int -> ReadS ListApplicationInstanceDependencies)
-> ReadS [ListApplicationInstanceDependencies]
-> ReadPrec ListApplicationInstanceDependencies
-> ReadPrec [ListApplicationInstanceDependencies]
-> Read ListApplicationInstanceDependencies
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListApplicationInstanceDependencies]
$creadListPrec :: ReadPrec [ListApplicationInstanceDependencies]
readPrec :: ReadPrec ListApplicationInstanceDependencies
$creadPrec :: ReadPrec ListApplicationInstanceDependencies
readList :: ReadS [ListApplicationInstanceDependencies]
$creadList :: ReadS [ListApplicationInstanceDependencies]
readsPrec :: Int -> ReadS ListApplicationInstanceDependencies
$creadsPrec :: Int -> ReadS ListApplicationInstanceDependencies
Prelude.Read, Int -> ListApplicationInstanceDependencies -> ShowS
[ListApplicationInstanceDependencies] -> ShowS
ListApplicationInstanceDependencies -> String
(Int -> ListApplicationInstanceDependencies -> ShowS)
-> (ListApplicationInstanceDependencies -> String)
-> ([ListApplicationInstanceDependencies] -> ShowS)
-> Show ListApplicationInstanceDependencies
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListApplicationInstanceDependencies] -> ShowS
$cshowList :: [ListApplicationInstanceDependencies] -> ShowS
show :: ListApplicationInstanceDependencies -> String
$cshow :: ListApplicationInstanceDependencies -> String
showsPrec :: Int -> ListApplicationInstanceDependencies -> ShowS
$cshowsPrec :: Int -> ListApplicationInstanceDependencies -> ShowS
Prelude.Show, (forall x.
 ListApplicationInstanceDependencies
 -> Rep ListApplicationInstanceDependencies x)
-> (forall x.
    Rep ListApplicationInstanceDependencies x
    -> ListApplicationInstanceDependencies)
-> Generic ListApplicationInstanceDependencies
forall x.
Rep ListApplicationInstanceDependencies x
-> ListApplicationInstanceDependencies
forall x.
ListApplicationInstanceDependencies
-> Rep ListApplicationInstanceDependencies x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListApplicationInstanceDependencies x
-> ListApplicationInstanceDependencies
$cfrom :: forall x.
ListApplicationInstanceDependencies
-> Rep ListApplicationInstanceDependencies x
Prelude.Generic)

-- |
-- Create a value of 'ListApplicationInstanceDependencies' 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', 'listApplicationInstanceDependencies_nextToken' - Specify the pagination token from a previous request to retrieve the
-- next page of results.
--
-- 'maxResults', 'listApplicationInstanceDependencies_maxResults' - The maximum number of application instance dependencies to return in one
-- page of results.
--
-- 'applicationInstanceId', 'listApplicationInstanceDependencies_applicationInstanceId' - The application instance\'s ID.
newListApplicationInstanceDependencies ::
  -- | 'applicationInstanceId'
  Prelude.Text ->
  ListApplicationInstanceDependencies
newListApplicationInstanceDependencies :: Text -> ListApplicationInstanceDependencies
newListApplicationInstanceDependencies
  Text
pApplicationInstanceId_ =
    ListApplicationInstanceDependencies' :: Maybe Text
-> Maybe Natural -> Text -> ListApplicationInstanceDependencies
ListApplicationInstanceDependencies'
      { $sel:nextToken:ListApplicationInstanceDependencies' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:ListApplicationInstanceDependencies' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing,
        $sel:applicationInstanceId:ListApplicationInstanceDependencies' :: Text
applicationInstanceId =
          Text
pApplicationInstanceId_
      }

-- | Specify the pagination token from a previous request to retrieve the
-- next page of results.
listApplicationInstanceDependencies_nextToken :: Lens.Lens' ListApplicationInstanceDependencies (Prelude.Maybe Prelude.Text)
listApplicationInstanceDependencies_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListApplicationInstanceDependencies
-> f ListApplicationInstanceDependencies
listApplicationInstanceDependencies_nextToken = (ListApplicationInstanceDependencies -> Maybe Text)
-> (ListApplicationInstanceDependencies
    -> Maybe Text -> ListApplicationInstanceDependencies)
-> Lens
     ListApplicationInstanceDependencies
     ListApplicationInstanceDependencies
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationInstanceDependencies' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListApplicationInstanceDependencies' :: ListApplicationInstanceDependencies -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListApplicationInstanceDependencies
s@ListApplicationInstanceDependencies' {} Maybe Text
a -> ListApplicationInstanceDependencies
s {$sel:nextToken:ListApplicationInstanceDependencies' :: Maybe Text
nextToken = Maybe Text
a} :: ListApplicationInstanceDependencies)

-- | The maximum number of application instance dependencies to return in one
-- page of results.
listApplicationInstanceDependencies_maxResults :: Lens.Lens' ListApplicationInstanceDependencies (Prelude.Maybe Prelude.Natural)
listApplicationInstanceDependencies_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListApplicationInstanceDependencies
-> f ListApplicationInstanceDependencies
listApplicationInstanceDependencies_maxResults = (ListApplicationInstanceDependencies -> Maybe Natural)
-> (ListApplicationInstanceDependencies
    -> Maybe Natural -> ListApplicationInstanceDependencies)
-> Lens
     ListApplicationInstanceDependencies
     ListApplicationInstanceDependencies
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationInstanceDependencies' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListApplicationInstanceDependencies' :: ListApplicationInstanceDependencies -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListApplicationInstanceDependencies
s@ListApplicationInstanceDependencies' {} Maybe Natural
a -> ListApplicationInstanceDependencies
s {$sel:maxResults:ListApplicationInstanceDependencies' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListApplicationInstanceDependencies)

-- | The application instance\'s ID.
listApplicationInstanceDependencies_applicationInstanceId :: Lens.Lens' ListApplicationInstanceDependencies Prelude.Text
listApplicationInstanceDependencies_applicationInstanceId :: (Text -> f Text)
-> ListApplicationInstanceDependencies
-> f ListApplicationInstanceDependencies
listApplicationInstanceDependencies_applicationInstanceId = (ListApplicationInstanceDependencies -> Text)
-> (ListApplicationInstanceDependencies
    -> Text -> ListApplicationInstanceDependencies)
-> Lens
     ListApplicationInstanceDependencies
     ListApplicationInstanceDependencies
     Text
     Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationInstanceDependencies' {Text
applicationInstanceId :: Text
$sel:applicationInstanceId:ListApplicationInstanceDependencies' :: ListApplicationInstanceDependencies -> Text
applicationInstanceId} -> Text
applicationInstanceId) (\s :: ListApplicationInstanceDependencies
s@ListApplicationInstanceDependencies' {} Text
a -> ListApplicationInstanceDependencies
s {$sel:applicationInstanceId:ListApplicationInstanceDependencies' :: Text
applicationInstanceId = Text
a} :: ListApplicationInstanceDependencies)

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

instance
  Prelude.NFData
    ListApplicationInstanceDependencies

instance
  Core.ToHeaders
    ListApplicationInstanceDependencies
  where
  toHeaders :: ListApplicationInstanceDependencies -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> ListApplicationInstanceDependencies -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"Content-Type"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Core.ToPath
    ListApplicationInstanceDependencies
  where
  toPath :: ListApplicationInstanceDependencies -> ByteString
toPath ListApplicationInstanceDependencies' {Maybe Natural
Maybe Text
Text
applicationInstanceId :: Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
$sel:applicationInstanceId:ListApplicationInstanceDependencies' :: ListApplicationInstanceDependencies -> Text
$sel:maxResults:ListApplicationInstanceDependencies' :: ListApplicationInstanceDependencies -> Maybe Natural
$sel:nextToken:ListApplicationInstanceDependencies' :: ListApplicationInstanceDependencies -> Maybe Text
..} =
    [ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
      [ ByteString
"/application-instances/",
        Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
applicationInstanceId,
        ByteString
"/package-dependencies"
      ]

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

-- | /See:/ 'newListApplicationInstanceDependenciesResponse' smart constructor.
data ListApplicationInstanceDependenciesResponse = ListApplicationInstanceDependenciesResponse'
  { -- | A list of package objects.
    ListApplicationInstanceDependenciesResponse
-> Maybe [PackageObject]
packageObjects :: Prelude.Maybe [PackageObject],
    -- | A pagination token that\'s included if more results are available.
    ListApplicationInstanceDependenciesResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListApplicationInstanceDependenciesResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListApplicationInstanceDependenciesResponse
-> ListApplicationInstanceDependenciesResponse -> Bool
(ListApplicationInstanceDependenciesResponse
 -> ListApplicationInstanceDependenciesResponse -> Bool)
-> (ListApplicationInstanceDependenciesResponse
    -> ListApplicationInstanceDependenciesResponse -> Bool)
-> Eq ListApplicationInstanceDependenciesResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListApplicationInstanceDependenciesResponse
-> ListApplicationInstanceDependenciesResponse -> Bool
$c/= :: ListApplicationInstanceDependenciesResponse
-> ListApplicationInstanceDependenciesResponse -> Bool
== :: ListApplicationInstanceDependenciesResponse
-> ListApplicationInstanceDependenciesResponse -> Bool
$c== :: ListApplicationInstanceDependenciesResponse
-> ListApplicationInstanceDependenciesResponse -> Bool
Prelude.Eq, ReadPrec [ListApplicationInstanceDependenciesResponse]
ReadPrec ListApplicationInstanceDependenciesResponse
Int -> ReadS ListApplicationInstanceDependenciesResponse
ReadS [ListApplicationInstanceDependenciesResponse]
(Int -> ReadS ListApplicationInstanceDependenciesResponse)
-> ReadS [ListApplicationInstanceDependenciesResponse]
-> ReadPrec ListApplicationInstanceDependenciesResponse
-> ReadPrec [ListApplicationInstanceDependenciesResponse]
-> Read ListApplicationInstanceDependenciesResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListApplicationInstanceDependenciesResponse]
$creadListPrec :: ReadPrec [ListApplicationInstanceDependenciesResponse]
readPrec :: ReadPrec ListApplicationInstanceDependenciesResponse
$creadPrec :: ReadPrec ListApplicationInstanceDependenciesResponse
readList :: ReadS [ListApplicationInstanceDependenciesResponse]
$creadList :: ReadS [ListApplicationInstanceDependenciesResponse]
readsPrec :: Int -> ReadS ListApplicationInstanceDependenciesResponse
$creadsPrec :: Int -> ReadS ListApplicationInstanceDependenciesResponse
Prelude.Read, Int -> ListApplicationInstanceDependenciesResponse -> ShowS
[ListApplicationInstanceDependenciesResponse] -> ShowS
ListApplicationInstanceDependenciesResponse -> String
(Int -> ListApplicationInstanceDependenciesResponse -> ShowS)
-> (ListApplicationInstanceDependenciesResponse -> String)
-> ([ListApplicationInstanceDependenciesResponse] -> ShowS)
-> Show ListApplicationInstanceDependenciesResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListApplicationInstanceDependenciesResponse] -> ShowS
$cshowList :: [ListApplicationInstanceDependenciesResponse] -> ShowS
show :: ListApplicationInstanceDependenciesResponse -> String
$cshow :: ListApplicationInstanceDependenciesResponse -> String
showsPrec :: Int -> ListApplicationInstanceDependenciesResponse -> ShowS
$cshowsPrec :: Int -> ListApplicationInstanceDependenciesResponse -> ShowS
Prelude.Show, (forall x.
 ListApplicationInstanceDependenciesResponse
 -> Rep ListApplicationInstanceDependenciesResponse x)
-> (forall x.
    Rep ListApplicationInstanceDependenciesResponse x
    -> ListApplicationInstanceDependenciesResponse)
-> Generic ListApplicationInstanceDependenciesResponse
forall x.
Rep ListApplicationInstanceDependenciesResponse x
-> ListApplicationInstanceDependenciesResponse
forall x.
ListApplicationInstanceDependenciesResponse
-> Rep ListApplicationInstanceDependenciesResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListApplicationInstanceDependenciesResponse x
-> ListApplicationInstanceDependenciesResponse
$cfrom :: forall x.
ListApplicationInstanceDependenciesResponse
-> Rep ListApplicationInstanceDependenciesResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListApplicationInstanceDependenciesResponse' 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:
--
-- 'packageObjects', 'listApplicationInstanceDependenciesResponse_packageObjects' - A list of package objects.
--
-- 'nextToken', 'listApplicationInstanceDependenciesResponse_nextToken' - A pagination token that\'s included if more results are available.
--
-- 'httpStatus', 'listApplicationInstanceDependenciesResponse_httpStatus' - The response's http status code.
newListApplicationInstanceDependenciesResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListApplicationInstanceDependenciesResponse
newListApplicationInstanceDependenciesResponse :: Int -> ListApplicationInstanceDependenciesResponse
newListApplicationInstanceDependenciesResponse
  Int
pHttpStatus_ =
    ListApplicationInstanceDependenciesResponse' :: Maybe [PackageObject]
-> Maybe Text -> Int -> ListApplicationInstanceDependenciesResponse
ListApplicationInstanceDependenciesResponse'
      { $sel:packageObjects:ListApplicationInstanceDependenciesResponse' :: Maybe [PackageObject]
packageObjects =
          Maybe [PackageObject]
forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListApplicationInstanceDependenciesResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListApplicationInstanceDependenciesResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | A list of package objects.
listApplicationInstanceDependenciesResponse_packageObjects :: Lens.Lens' ListApplicationInstanceDependenciesResponse (Prelude.Maybe [PackageObject])
listApplicationInstanceDependenciesResponse_packageObjects :: (Maybe [PackageObject] -> f (Maybe [PackageObject]))
-> ListApplicationInstanceDependenciesResponse
-> f ListApplicationInstanceDependenciesResponse
listApplicationInstanceDependenciesResponse_packageObjects = (ListApplicationInstanceDependenciesResponse
 -> Maybe [PackageObject])
-> (ListApplicationInstanceDependenciesResponse
    -> Maybe [PackageObject]
    -> ListApplicationInstanceDependenciesResponse)
-> Lens
     ListApplicationInstanceDependenciesResponse
     ListApplicationInstanceDependenciesResponse
     (Maybe [PackageObject])
     (Maybe [PackageObject])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationInstanceDependenciesResponse' {Maybe [PackageObject]
packageObjects :: Maybe [PackageObject]
$sel:packageObjects:ListApplicationInstanceDependenciesResponse' :: ListApplicationInstanceDependenciesResponse
-> Maybe [PackageObject]
packageObjects} -> Maybe [PackageObject]
packageObjects) (\s :: ListApplicationInstanceDependenciesResponse
s@ListApplicationInstanceDependenciesResponse' {} Maybe [PackageObject]
a -> ListApplicationInstanceDependenciesResponse
s {$sel:packageObjects:ListApplicationInstanceDependenciesResponse' :: Maybe [PackageObject]
packageObjects = Maybe [PackageObject]
a} :: ListApplicationInstanceDependenciesResponse) ((Maybe [PackageObject] -> f (Maybe [PackageObject]))
 -> ListApplicationInstanceDependenciesResponse
 -> f ListApplicationInstanceDependenciesResponse)
-> ((Maybe [PackageObject] -> f (Maybe [PackageObject]))
    -> Maybe [PackageObject] -> f (Maybe [PackageObject]))
-> (Maybe [PackageObject] -> f (Maybe [PackageObject]))
-> ListApplicationInstanceDependenciesResponse
-> f ListApplicationInstanceDependenciesResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [PackageObject] [PackageObject] [PackageObject] [PackageObject]
-> Iso
     (Maybe [PackageObject])
     (Maybe [PackageObject])
     (Maybe [PackageObject])
     (Maybe [PackageObject])
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
  [PackageObject] [PackageObject] [PackageObject] [PackageObject]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | A pagination token that\'s included if more results are available.
listApplicationInstanceDependenciesResponse_nextToken :: Lens.Lens' ListApplicationInstanceDependenciesResponse (Prelude.Maybe Prelude.Text)
listApplicationInstanceDependenciesResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListApplicationInstanceDependenciesResponse
-> f ListApplicationInstanceDependenciesResponse
listApplicationInstanceDependenciesResponse_nextToken = (ListApplicationInstanceDependenciesResponse -> Maybe Text)
-> (ListApplicationInstanceDependenciesResponse
    -> Maybe Text -> ListApplicationInstanceDependenciesResponse)
-> Lens
     ListApplicationInstanceDependenciesResponse
     ListApplicationInstanceDependenciesResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListApplicationInstanceDependenciesResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListApplicationInstanceDependenciesResponse' :: ListApplicationInstanceDependenciesResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListApplicationInstanceDependenciesResponse
s@ListApplicationInstanceDependenciesResponse' {} Maybe Text
a -> ListApplicationInstanceDependenciesResponse
s {$sel:nextToken:ListApplicationInstanceDependenciesResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListApplicationInstanceDependenciesResponse)

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

instance
  Prelude.NFData
    ListApplicationInstanceDependenciesResponse