{-# 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.LicenseManager.ListLicenseManagerReportGenerators
-- 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 the report generators for your account.
module Amazonka.LicenseManager.ListLicenseManagerReportGenerators
  ( -- * Creating a Request
    ListLicenseManagerReportGenerators (..),
    newListLicenseManagerReportGenerators,

    -- * Request Lenses
    listLicenseManagerReportGenerators_filters,
    listLicenseManagerReportGenerators_nextToken,
    listLicenseManagerReportGenerators_maxResults,

    -- * Destructuring the Response
    ListLicenseManagerReportGeneratorsResponse (..),
    newListLicenseManagerReportGeneratorsResponse,

    -- * Response Lenses
    listLicenseManagerReportGeneratorsResponse_nextToken,
    listLicenseManagerReportGeneratorsResponse_reportGenerators,
    listLicenseManagerReportGeneratorsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListLicenseManagerReportGenerators' smart constructor.
data ListLicenseManagerReportGenerators = ListLicenseManagerReportGenerators'
  { -- | Filters to scope the results. The following filters are supported:
    --
    -- -   @LicenseConfigurationArn@
    ListLicenseManagerReportGenerators -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
    -- | Token for the next set of results.
    ListLicenseManagerReportGenerators -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Maximum number of results to return in a single call.
    ListLicenseManagerReportGenerators -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural
  }
  deriving (ListLicenseManagerReportGenerators
-> ListLicenseManagerReportGenerators -> Bool
(ListLicenseManagerReportGenerators
 -> ListLicenseManagerReportGenerators -> Bool)
-> (ListLicenseManagerReportGenerators
    -> ListLicenseManagerReportGenerators -> Bool)
-> Eq ListLicenseManagerReportGenerators
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLicenseManagerReportGenerators
-> ListLicenseManagerReportGenerators -> Bool
$c/= :: ListLicenseManagerReportGenerators
-> ListLicenseManagerReportGenerators -> Bool
== :: ListLicenseManagerReportGenerators
-> ListLicenseManagerReportGenerators -> Bool
$c== :: ListLicenseManagerReportGenerators
-> ListLicenseManagerReportGenerators -> Bool
Prelude.Eq, ReadPrec [ListLicenseManagerReportGenerators]
ReadPrec ListLicenseManagerReportGenerators
Int -> ReadS ListLicenseManagerReportGenerators
ReadS [ListLicenseManagerReportGenerators]
(Int -> ReadS ListLicenseManagerReportGenerators)
-> ReadS [ListLicenseManagerReportGenerators]
-> ReadPrec ListLicenseManagerReportGenerators
-> ReadPrec [ListLicenseManagerReportGenerators]
-> Read ListLicenseManagerReportGenerators
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLicenseManagerReportGenerators]
$creadListPrec :: ReadPrec [ListLicenseManagerReportGenerators]
readPrec :: ReadPrec ListLicenseManagerReportGenerators
$creadPrec :: ReadPrec ListLicenseManagerReportGenerators
readList :: ReadS [ListLicenseManagerReportGenerators]
$creadList :: ReadS [ListLicenseManagerReportGenerators]
readsPrec :: Int -> ReadS ListLicenseManagerReportGenerators
$creadsPrec :: Int -> ReadS ListLicenseManagerReportGenerators
Prelude.Read, Int -> ListLicenseManagerReportGenerators -> ShowS
[ListLicenseManagerReportGenerators] -> ShowS
ListLicenseManagerReportGenerators -> String
(Int -> ListLicenseManagerReportGenerators -> ShowS)
-> (ListLicenseManagerReportGenerators -> String)
-> ([ListLicenseManagerReportGenerators] -> ShowS)
-> Show ListLicenseManagerReportGenerators
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLicenseManagerReportGenerators] -> ShowS
$cshowList :: [ListLicenseManagerReportGenerators] -> ShowS
show :: ListLicenseManagerReportGenerators -> String
$cshow :: ListLicenseManagerReportGenerators -> String
showsPrec :: Int -> ListLicenseManagerReportGenerators -> ShowS
$cshowsPrec :: Int -> ListLicenseManagerReportGenerators -> ShowS
Prelude.Show, (forall x.
 ListLicenseManagerReportGenerators
 -> Rep ListLicenseManagerReportGenerators x)
-> (forall x.
    Rep ListLicenseManagerReportGenerators x
    -> ListLicenseManagerReportGenerators)
-> Generic ListLicenseManagerReportGenerators
forall x.
Rep ListLicenseManagerReportGenerators x
-> ListLicenseManagerReportGenerators
forall x.
ListLicenseManagerReportGenerators
-> Rep ListLicenseManagerReportGenerators x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLicenseManagerReportGenerators x
-> ListLicenseManagerReportGenerators
$cfrom :: forall x.
ListLicenseManagerReportGenerators
-> Rep ListLicenseManagerReportGenerators x
Prelude.Generic)

-- |
-- Create a value of 'ListLicenseManagerReportGenerators' 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:
--
-- 'filters', 'listLicenseManagerReportGenerators_filters' - Filters to scope the results. The following filters are supported:
--
-- -   @LicenseConfigurationArn@
--
-- 'nextToken', 'listLicenseManagerReportGenerators_nextToken' - Token for the next set of results.
--
-- 'maxResults', 'listLicenseManagerReportGenerators_maxResults' - Maximum number of results to return in a single call.
newListLicenseManagerReportGenerators ::
  ListLicenseManagerReportGenerators
newListLicenseManagerReportGenerators :: ListLicenseManagerReportGenerators
newListLicenseManagerReportGenerators =
  ListLicenseManagerReportGenerators' :: Maybe [Filter]
-> Maybe Text
-> Maybe Natural
-> ListLicenseManagerReportGenerators
ListLicenseManagerReportGenerators'
    { $sel:filters:ListLicenseManagerReportGenerators' :: Maybe [Filter]
filters =
        Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLicenseManagerReportGenerators' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListLicenseManagerReportGenerators' :: Maybe Natural
maxResults = Maybe Natural
forall a. Maybe a
Prelude.Nothing
    }

-- | Filters to scope the results. The following filters are supported:
--
-- -   @LicenseConfigurationArn@
listLicenseManagerReportGenerators_filters :: Lens.Lens' ListLicenseManagerReportGenerators (Prelude.Maybe [Filter])
listLicenseManagerReportGenerators_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> ListLicenseManagerReportGenerators
-> f ListLicenseManagerReportGenerators
listLicenseManagerReportGenerators_filters = (ListLicenseManagerReportGenerators -> Maybe [Filter])
-> (ListLicenseManagerReportGenerators
    -> Maybe [Filter] -> ListLicenseManagerReportGenerators)
-> Lens
     ListLicenseManagerReportGenerators
     ListLicenseManagerReportGenerators
     (Maybe [Filter])
     (Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseManagerReportGenerators' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: ListLicenseManagerReportGenerators
s@ListLicenseManagerReportGenerators' {} Maybe [Filter]
a -> ListLicenseManagerReportGenerators
s {$sel:filters:ListLicenseManagerReportGenerators' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: ListLicenseManagerReportGenerators) ((Maybe [Filter] -> f (Maybe [Filter]))
 -> ListLicenseManagerReportGenerators
 -> f ListLicenseManagerReportGenerators)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
    -> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> ListLicenseManagerReportGenerators
-> f ListLicenseManagerReportGenerators
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso [Filter] [Filter] [Filter] [Filter]
-> Iso
     (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter]) (Maybe [Filter])
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 [Filter] [Filter] [Filter] [Filter]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Token for the next set of results.
listLicenseManagerReportGenerators_nextToken :: Lens.Lens' ListLicenseManagerReportGenerators (Prelude.Maybe Prelude.Text)
listLicenseManagerReportGenerators_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListLicenseManagerReportGenerators
-> f ListLicenseManagerReportGenerators
listLicenseManagerReportGenerators_nextToken = (ListLicenseManagerReportGenerators -> Maybe Text)
-> (ListLicenseManagerReportGenerators
    -> Maybe Text -> ListLicenseManagerReportGenerators)
-> Lens
     ListLicenseManagerReportGenerators
     ListLicenseManagerReportGenerators
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseManagerReportGenerators' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLicenseManagerReportGenerators
s@ListLicenseManagerReportGenerators' {} Maybe Text
a -> ListLicenseManagerReportGenerators
s {$sel:nextToken:ListLicenseManagerReportGenerators' :: Maybe Text
nextToken = Maybe Text
a} :: ListLicenseManagerReportGenerators)

-- | Maximum number of results to return in a single call.
listLicenseManagerReportGenerators_maxResults :: Lens.Lens' ListLicenseManagerReportGenerators (Prelude.Maybe Prelude.Natural)
listLicenseManagerReportGenerators_maxResults :: (Maybe Natural -> f (Maybe Natural))
-> ListLicenseManagerReportGenerators
-> f ListLicenseManagerReportGenerators
listLicenseManagerReportGenerators_maxResults = (ListLicenseManagerReportGenerators -> Maybe Natural)
-> (ListLicenseManagerReportGenerators
    -> Maybe Natural -> ListLicenseManagerReportGenerators)
-> Lens
     ListLicenseManagerReportGenerators
     ListLicenseManagerReportGenerators
     (Maybe Natural)
     (Maybe Natural)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseManagerReportGenerators' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: ListLicenseManagerReportGenerators
s@ListLicenseManagerReportGenerators' {} Maybe Natural
a -> ListLicenseManagerReportGenerators
s {$sel:maxResults:ListLicenseManagerReportGenerators' :: Maybe Natural
maxResults = Maybe Natural
a} :: ListLicenseManagerReportGenerators)

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

instance
  Prelude.NFData
    ListLicenseManagerReportGenerators

instance
  Core.ToHeaders
    ListLicenseManagerReportGenerators
  where
  toHeaders :: ListLicenseManagerReportGenerators -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> ListLicenseManagerReportGenerators -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const
      ( [ResponseHeaders] -> ResponseHeaders
forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              HeaderName -> ByteString -> ResponseHeaders
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Core.=# ( ByteString
"AWSLicenseManager.ListLicenseManagerReportGenerators" ::
                          Prelude.ByteString
                      ),
            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.ToJSON
    ListLicenseManagerReportGenerators
  where
  toJSON :: ListLicenseManagerReportGenerators -> Value
toJSON ListLicenseManagerReportGenerators' {Maybe Natural
Maybe [Filter]
Maybe Text
maxResults :: Maybe Natural
nextToken :: Maybe Text
filters :: Maybe [Filter]
$sel:maxResults:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Natural
$sel:nextToken:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe Text
$sel:filters:ListLicenseManagerReportGenerators' :: ListLicenseManagerReportGenerators -> Maybe [Filter]
..} =
    [Pair] -> Value
Core.object
      ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
          [ (Text
"Filters" Text -> [Filter] -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) ([Filter] -> Pair) -> Maybe [Filter] -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe [Filter]
filters,
            (Text
"NextToken" Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Text -> Pair) -> Maybe Text -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
            (Text
"MaxResults" Text -> Natural -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Natural -> Pair) -> Maybe Natural -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Natural
maxResults
          ]
      )

instance
  Core.ToPath
    ListLicenseManagerReportGenerators
  where
  toPath :: ListLicenseManagerReportGenerators -> ByteString
toPath = ByteString -> ListLicenseManagerReportGenerators -> ByteString
forall a b. a -> b -> a
Prelude.const ByteString
"/"

instance
  Core.ToQuery
    ListLicenseManagerReportGenerators
  where
  toQuery :: ListLicenseManagerReportGenerators -> QueryString
toQuery = QueryString -> ListLicenseManagerReportGenerators -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty

-- | /See:/ 'newListLicenseManagerReportGeneratorsResponse' smart constructor.
data ListLicenseManagerReportGeneratorsResponse = ListLicenseManagerReportGeneratorsResponse'
  { -- | Token for the next set of results.
    ListLicenseManagerReportGeneratorsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | A report generator that creates periodic reports about your license
    -- configurations.
    ListLicenseManagerReportGeneratorsResponse
-> Maybe [ReportGenerator]
reportGenerators :: Prelude.Maybe [ReportGenerator],
    -- | The response's http status code.
    ListLicenseManagerReportGeneratorsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLicenseManagerReportGeneratorsResponse
-> ListLicenseManagerReportGeneratorsResponse -> Bool
(ListLicenseManagerReportGeneratorsResponse
 -> ListLicenseManagerReportGeneratorsResponse -> Bool)
-> (ListLicenseManagerReportGeneratorsResponse
    -> ListLicenseManagerReportGeneratorsResponse -> Bool)
-> Eq ListLicenseManagerReportGeneratorsResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLicenseManagerReportGeneratorsResponse
-> ListLicenseManagerReportGeneratorsResponse -> Bool
$c/= :: ListLicenseManagerReportGeneratorsResponse
-> ListLicenseManagerReportGeneratorsResponse -> Bool
== :: ListLicenseManagerReportGeneratorsResponse
-> ListLicenseManagerReportGeneratorsResponse -> Bool
$c== :: ListLicenseManagerReportGeneratorsResponse
-> ListLicenseManagerReportGeneratorsResponse -> Bool
Prelude.Eq, ReadPrec [ListLicenseManagerReportGeneratorsResponse]
ReadPrec ListLicenseManagerReportGeneratorsResponse
Int -> ReadS ListLicenseManagerReportGeneratorsResponse
ReadS [ListLicenseManagerReportGeneratorsResponse]
(Int -> ReadS ListLicenseManagerReportGeneratorsResponse)
-> ReadS [ListLicenseManagerReportGeneratorsResponse]
-> ReadPrec ListLicenseManagerReportGeneratorsResponse
-> ReadPrec [ListLicenseManagerReportGeneratorsResponse]
-> Read ListLicenseManagerReportGeneratorsResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLicenseManagerReportGeneratorsResponse]
$creadListPrec :: ReadPrec [ListLicenseManagerReportGeneratorsResponse]
readPrec :: ReadPrec ListLicenseManagerReportGeneratorsResponse
$creadPrec :: ReadPrec ListLicenseManagerReportGeneratorsResponse
readList :: ReadS [ListLicenseManagerReportGeneratorsResponse]
$creadList :: ReadS [ListLicenseManagerReportGeneratorsResponse]
readsPrec :: Int -> ReadS ListLicenseManagerReportGeneratorsResponse
$creadsPrec :: Int -> ReadS ListLicenseManagerReportGeneratorsResponse
Prelude.Read, Int -> ListLicenseManagerReportGeneratorsResponse -> ShowS
[ListLicenseManagerReportGeneratorsResponse] -> ShowS
ListLicenseManagerReportGeneratorsResponse -> String
(Int -> ListLicenseManagerReportGeneratorsResponse -> ShowS)
-> (ListLicenseManagerReportGeneratorsResponse -> String)
-> ([ListLicenseManagerReportGeneratorsResponse] -> ShowS)
-> Show ListLicenseManagerReportGeneratorsResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLicenseManagerReportGeneratorsResponse] -> ShowS
$cshowList :: [ListLicenseManagerReportGeneratorsResponse] -> ShowS
show :: ListLicenseManagerReportGeneratorsResponse -> String
$cshow :: ListLicenseManagerReportGeneratorsResponse -> String
showsPrec :: Int -> ListLicenseManagerReportGeneratorsResponse -> ShowS
$cshowsPrec :: Int -> ListLicenseManagerReportGeneratorsResponse -> ShowS
Prelude.Show, (forall x.
 ListLicenseManagerReportGeneratorsResponse
 -> Rep ListLicenseManagerReportGeneratorsResponse x)
-> (forall x.
    Rep ListLicenseManagerReportGeneratorsResponse x
    -> ListLicenseManagerReportGeneratorsResponse)
-> Generic ListLicenseManagerReportGeneratorsResponse
forall x.
Rep ListLicenseManagerReportGeneratorsResponse x
-> ListLicenseManagerReportGeneratorsResponse
forall x.
ListLicenseManagerReportGeneratorsResponse
-> Rep ListLicenseManagerReportGeneratorsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLicenseManagerReportGeneratorsResponse x
-> ListLicenseManagerReportGeneratorsResponse
$cfrom :: forall x.
ListLicenseManagerReportGeneratorsResponse
-> Rep ListLicenseManagerReportGeneratorsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLicenseManagerReportGeneratorsResponse' 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', 'listLicenseManagerReportGeneratorsResponse_nextToken' - Token for the next set of results.
--
-- 'reportGenerators', 'listLicenseManagerReportGeneratorsResponse_reportGenerators' - A report generator that creates periodic reports about your license
-- configurations.
--
-- 'httpStatus', 'listLicenseManagerReportGeneratorsResponse_httpStatus' - The response's http status code.
newListLicenseManagerReportGeneratorsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLicenseManagerReportGeneratorsResponse
newListLicenseManagerReportGeneratorsResponse :: Int -> ListLicenseManagerReportGeneratorsResponse
newListLicenseManagerReportGeneratorsResponse
  Int
pHttpStatus_ =
    ListLicenseManagerReportGeneratorsResponse' :: Maybe Text
-> Maybe [ReportGenerator]
-> Int
-> ListLicenseManagerReportGeneratorsResponse
ListLicenseManagerReportGeneratorsResponse'
      { $sel:nextToken:ListLicenseManagerReportGeneratorsResponse' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:reportGenerators:ListLicenseManagerReportGeneratorsResponse' :: Maybe [ReportGenerator]
reportGenerators =
          Maybe [ReportGenerator]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListLicenseManagerReportGeneratorsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | Token for the next set of results.
listLicenseManagerReportGeneratorsResponse_nextToken :: Lens.Lens' ListLicenseManagerReportGeneratorsResponse (Prelude.Maybe Prelude.Text)
listLicenseManagerReportGeneratorsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListLicenseManagerReportGeneratorsResponse
-> f ListLicenseManagerReportGeneratorsResponse
listLicenseManagerReportGeneratorsResponse_nextToken = (ListLicenseManagerReportGeneratorsResponse -> Maybe Text)
-> (ListLicenseManagerReportGeneratorsResponse
    -> Maybe Text -> ListLicenseManagerReportGeneratorsResponse)
-> Lens
     ListLicenseManagerReportGeneratorsResponse
     ListLicenseManagerReportGeneratorsResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseManagerReportGeneratorsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLicenseManagerReportGeneratorsResponse' :: ListLicenseManagerReportGeneratorsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLicenseManagerReportGeneratorsResponse
s@ListLicenseManagerReportGeneratorsResponse' {} Maybe Text
a -> ListLicenseManagerReportGeneratorsResponse
s {$sel:nextToken:ListLicenseManagerReportGeneratorsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListLicenseManagerReportGeneratorsResponse)

-- | A report generator that creates periodic reports about your license
-- configurations.
listLicenseManagerReportGeneratorsResponse_reportGenerators :: Lens.Lens' ListLicenseManagerReportGeneratorsResponse (Prelude.Maybe [ReportGenerator])
listLicenseManagerReportGeneratorsResponse_reportGenerators :: (Maybe [ReportGenerator] -> f (Maybe [ReportGenerator]))
-> ListLicenseManagerReportGeneratorsResponse
-> f ListLicenseManagerReportGeneratorsResponse
listLicenseManagerReportGeneratorsResponse_reportGenerators = (ListLicenseManagerReportGeneratorsResponse
 -> Maybe [ReportGenerator])
-> (ListLicenseManagerReportGeneratorsResponse
    -> Maybe [ReportGenerator]
    -> ListLicenseManagerReportGeneratorsResponse)
-> Lens
     ListLicenseManagerReportGeneratorsResponse
     ListLicenseManagerReportGeneratorsResponse
     (Maybe [ReportGenerator])
     (Maybe [ReportGenerator])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseManagerReportGeneratorsResponse' {Maybe [ReportGenerator]
reportGenerators :: Maybe [ReportGenerator]
$sel:reportGenerators:ListLicenseManagerReportGeneratorsResponse' :: ListLicenseManagerReportGeneratorsResponse
-> Maybe [ReportGenerator]
reportGenerators} -> Maybe [ReportGenerator]
reportGenerators) (\s :: ListLicenseManagerReportGeneratorsResponse
s@ListLicenseManagerReportGeneratorsResponse' {} Maybe [ReportGenerator]
a -> ListLicenseManagerReportGeneratorsResponse
s {$sel:reportGenerators:ListLicenseManagerReportGeneratorsResponse' :: Maybe [ReportGenerator]
reportGenerators = Maybe [ReportGenerator]
a} :: ListLicenseManagerReportGeneratorsResponse) ((Maybe [ReportGenerator] -> f (Maybe [ReportGenerator]))
 -> ListLicenseManagerReportGeneratorsResponse
 -> f ListLicenseManagerReportGeneratorsResponse)
-> ((Maybe [ReportGenerator] -> f (Maybe [ReportGenerator]))
    -> Maybe [ReportGenerator] -> f (Maybe [ReportGenerator]))
-> (Maybe [ReportGenerator] -> f (Maybe [ReportGenerator]))
-> ListLicenseManagerReportGeneratorsResponse
-> f ListLicenseManagerReportGeneratorsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [ReportGenerator]
  [ReportGenerator]
  [ReportGenerator]
  [ReportGenerator]
-> Iso
     (Maybe [ReportGenerator])
     (Maybe [ReportGenerator])
     (Maybe [ReportGenerator])
     (Maybe [ReportGenerator])
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
  [ReportGenerator]
  [ReportGenerator]
  [ReportGenerator]
  [ReportGenerator]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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

instance
  Prelude.NFData
    ListLicenseManagerReportGeneratorsResponse