{-# 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.ListLicenseConversionTasks
-- 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 license type conversion tasks for your account.
module Amazonka.LicenseManager.ListLicenseConversionTasks
  ( -- * Creating a Request
    ListLicenseConversionTasks (..),
    newListLicenseConversionTasks,

    -- * Request Lenses
    listLicenseConversionTasks_filters,
    listLicenseConversionTasks_nextToken,
    listLicenseConversionTasks_maxResults,

    -- * Destructuring the Response
    ListLicenseConversionTasksResponse (..),
    newListLicenseConversionTasksResponse,

    -- * Response Lenses
    listLicenseConversionTasksResponse_licenseConversionTasks,
    listLicenseConversionTasksResponse_nextToken,
    listLicenseConversionTasksResponse_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:/ 'newListLicenseConversionTasks' smart constructor.
data ListLicenseConversionTasks = ListLicenseConversionTasks'
  { -- | Filters to scope the results. Valid filters are @ResourceArns@ and
    -- @Status@.
    ListLicenseConversionTasks -> Maybe [Filter]
filters :: Prelude.Maybe [Filter],
    -- | Token for the next set of results.
    ListLicenseConversionTasks -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Maximum number of results to return in a single call.
    ListLicenseConversionTasks -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int
  }
  deriving (ListLicenseConversionTasks -> ListLicenseConversionTasks -> Bool
(ListLicenseConversionTasks -> ListLicenseConversionTasks -> Bool)
-> (ListLicenseConversionTasks
    -> ListLicenseConversionTasks -> Bool)
-> Eq ListLicenseConversionTasks
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLicenseConversionTasks -> ListLicenseConversionTasks -> Bool
$c/= :: ListLicenseConversionTasks -> ListLicenseConversionTasks -> Bool
== :: ListLicenseConversionTasks -> ListLicenseConversionTasks -> Bool
$c== :: ListLicenseConversionTasks -> ListLicenseConversionTasks -> Bool
Prelude.Eq, ReadPrec [ListLicenseConversionTasks]
ReadPrec ListLicenseConversionTasks
Int -> ReadS ListLicenseConversionTasks
ReadS [ListLicenseConversionTasks]
(Int -> ReadS ListLicenseConversionTasks)
-> ReadS [ListLicenseConversionTasks]
-> ReadPrec ListLicenseConversionTasks
-> ReadPrec [ListLicenseConversionTasks]
-> Read ListLicenseConversionTasks
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLicenseConversionTasks]
$creadListPrec :: ReadPrec [ListLicenseConversionTasks]
readPrec :: ReadPrec ListLicenseConversionTasks
$creadPrec :: ReadPrec ListLicenseConversionTasks
readList :: ReadS [ListLicenseConversionTasks]
$creadList :: ReadS [ListLicenseConversionTasks]
readsPrec :: Int -> ReadS ListLicenseConversionTasks
$creadsPrec :: Int -> ReadS ListLicenseConversionTasks
Prelude.Read, Int -> ListLicenseConversionTasks -> ShowS
[ListLicenseConversionTasks] -> ShowS
ListLicenseConversionTasks -> String
(Int -> ListLicenseConversionTasks -> ShowS)
-> (ListLicenseConversionTasks -> String)
-> ([ListLicenseConversionTasks] -> ShowS)
-> Show ListLicenseConversionTasks
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLicenseConversionTasks] -> ShowS
$cshowList :: [ListLicenseConversionTasks] -> ShowS
show :: ListLicenseConversionTasks -> String
$cshow :: ListLicenseConversionTasks -> String
showsPrec :: Int -> ListLicenseConversionTasks -> ShowS
$cshowsPrec :: Int -> ListLicenseConversionTasks -> ShowS
Prelude.Show, (forall x.
 ListLicenseConversionTasks -> Rep ListLicenseConversionTasks x)
-> (forall x.
    Rep ListLicenseConversionTasks x -> ListLicenseConversionTasks)
-> Generic ListLicenseConversionTasks
forall x.
Rep ListLicenseConversionTasks x -> ListLicenseConversionTasks
forall x.
ListLicenseConversionTasks -> Rep ListLicenseConversionTasks x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLicenseConversionTasks x -> ListLicenseConversionTasks
$cfrom :: forall x.
ListLicenseConversionTasks -> Rep ListLicenseConversionTasks x
Prelude.Generic)

-- |
-- Create a value of 'ListLicenseConversionTasks' 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', 'listLicenseConversionTasks_filters' - Filters to scope the results. Valid filters are @ResourceArns@ and
-- @Status@.
--
-- 'nextToken', 'listLicenseConversionTasks_nextToken' - Token for the next set of results.
--
-- 'maxResults', 'listLicenseConversionTasks_maxResults' - Maximum number of results to return in a single call.
newListLicenseConversionTasks ::
  ListLicenseConversionTasks
newListLicenseConversionTasks :: ListLicenseConversionTasks
newListLicenseConversionTasks =
  ListLicenseConversionTasks' :: Maybe [Filter]
-> Maybe Text -> Maybe Int -> ListLicenseConversionTasks
ListLicenseConversionTasks'
    { $sel:filters:ListLicenseConversionTasks' :: Maybe [Filter]
filters =
        Maybe [Filter]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLicenseConversionTasks' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:maxResults:ListLicenseConversionTasks' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing
    }

-- | Filters to scope the results. Valid filters are @ResourceArns@ and
-- @Status@.
listLicenseConversionTasks_filters :: Lens.Lens' ListLicenseConversionTasks (Prelude.Maybe [Filter])
listLicenseConversionTasks_filters :: (Maybe [Filter] -> f (Maybe [Filter]))
-> ListLicenseConversionTasks -> f ListLicenseConversionTasks
listLicenseConversionTasks_filters = (ListLicenseConversionTasks -> Maybe [Filter])
-> (ListLicenseConversionTasks
    -> Maybe [Filter] -> ListLicenseConversionTasks)
-> Lens
     ListLicenseConversionTasks
     ListLicenseConversionTasks
     (Maybe [Filter])
     (Maybe [Filter])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseConversionTasks' {Maybe [Filter]
filters :: Maybe [Filter]
$sel:filters:ListLicenseConversionTasks' :: ListLicenseConversionTasks -> Maybe [Filter]
filters} -> Maybe [Filter]
filters) (\s :: ListLicenseConversionTasks
s@ListLicenseConversionTasks' {} Maybe [Filter]
a -> ListLicenseConversionTasks
s {$sel:filters:ListLicenseConversionTasks' :: Maybe [Filter]
filters = Maybe [Filter]
a} :: ListLicenseConversionTasks) ((Maybe [Filter] -> f (Maybe [Filter]))
 -> ListLicenseConversionTasks -> f ListLicenseConversionTasks)
-> ((Maybe [Filter] -> f (Maybe [Filter]))
    -> Maybe [Filter] -> f (Maybe [Filter]))
-> (Maybe [Filter] -> f (Maybe [Filter]))
-> ListLicenseConversionTasks
-> f ListLicenseConversionTasks
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.
listLicenseConversionTasks_nextToken :: Lens.Lens' ListLicenseConversionTasks (Prelude.Maybe Prelude.Text)
listLicenseConversionTasks_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListLicenseConversionTasks -> f ListLicenseConversionTasks
listLicenseConversionTasks_nextToken = (ListLicenseConversionTasks -> Maybe Text)
-> (ListLicenseConversionTasks
    -> Maybe Text -> ListLicenseConversionTasks)
-> Lens
     ListLicenseConversionTasks
     ListLicenseConversionTasks
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseConversionTasks' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLicenseConversionTasks' :: ListLicenseConversionTasks -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLicenseConversionTasks
s@ListLicenseConversionTasks' {} Maybe Text
a -> ListLicenseConversionTasks
s {$sel:nextToken:ListLicenseConversionTasks' :: Maybe Text
nextToken = Maybe Text
a} :: ListLicenseConversionTasks)

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

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

instance Prelude.NFData ListLicenseConversionTasks

instance Core.ToHeaders ListLicenseConversionTasks where
  toHeaders :: ListLicenseConversionTasks -> ResponseHeaders
toHeaders =
    ResponseHeaders -> ListLicenseConversionTasks -> 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.ListLicenseConversionTasks" ::
                          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 ListLicenseConversionTasks where
  toJSON :: ListLicenseConversionTasks -> Value
toJSON ListLicenseConversionTasks' {Maybe Int
Maybe [Filter]
Maybe Text
maxResults :: Maybe Int
nextToken :: Maybe Text
filters :: Maybe [Filter]
$sel:maxResults:ListLicenseConversionTasks' :: ListLicenseConversionTasks -> Maybe Int
$sel:nextToken:ListLicenseConversionTasks' :: ListLicenseConversionTasks -> Maybe Text
$sel:filters:ListLicenseConversionTasks' :: ListLicenseConversionTasks -> 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 -> Int -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..=) (Int -> Pair) -> Maybe Int -> Maybe Pair
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults
          ]
      )

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

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

-- | /See:/ 'newListLicenseConversionTasksResponse' smart constructor.
data ListLicenseConversionTasksResponse = ListLicenseConversionTasksResponse'
  { -- | Information about the license configuration tasks for your account.
    ListLicenseConversionTasksResponse -> Maybe [LicenseConversionTask]
licenseConversionTasks :: Prelude.Maybe [LicenseConversionTask],
    -- | Token for the next set of results.
    ListLicenseConversionTasksResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListLicenseConversionTasksResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListLicenseConversionTasksResponse
-> ListLicenseConversionTasksResponse -> Bool
(ListLicenseConversionTasksResponse
 -> ListLicenseConversionTasksResponse -> Bool)
-> (ListLicenseConversionTasksResponse
    -> ListLicenseConversionTasksResponse -> Bool)
-> Eq ListLicenseConversionTasksResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListLicenseConversionTasksResponse
-> ListLicenseConversionTasksResponse -> Bool
$c/= :: ListLicenseConversionTasksResponse
-> ListLicenseConversionTasksResponse -> Bool
== :: ListLicenseConversionTasksResponse
-> ListLicenseConversionTasksResponse -> Bool
$c== :: ListLicenseConversionTasksResponse
-> ListLicenseConversionTasksResponse -> Bool
Prelude.Eq, ReadPrec [ListLicenseConversionTasksResponse]
ReadPrec ListLicenseConversionTasksResponse
Int -> ReadS ListLicenseConversionTasksResponse
ReadS [ListLicenseConversionTasksResponse]
(Int -> ReadS ListLicenseConversionTasksResponse)
-> ReadS [ListLicenseConversionTasksResponse]
-> ReadPrec ListLicenseConversionTasksResponse
-> ReadPrec [ListLicenseConversionTasksResponse]
-> Read ListLicenseConversionTasksResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListLicenseConversionTasksResponse]
$creadListPrec :: ReadPrec [ListLicenseConversionTasksResponse]
readPrec :: ReadPrec ListLicenseConversionTasksResponse
$creadPrec :: ReadPrec ListLicenseConversionTasksResponse
readList :: ReadS [ListLicenseConversionTasksResponse]
$creadList :: ReadS [ListLicenseConversionTasksResponse]
readsPrec :: Int -> ReadS ListLicenseConversionTasksResponse
$creadsPrec :: Int -> ReadS ListLicenseConversionTasksResponse
Prelude.Read, Int -> ListLicenseConversionTasksResponse -> ShowS
[ListLicenseConversionTasksResponse] -> ShowS
ListLicenseConversionTasksResponse -> String
(Int -> ListLicenseConversionTasksResponse -> ShowS)
-> (ListLicenseConversionTasksResponse -> String)
-> ([ListLicenseConversionTasksResponse] -> ShowS)
-> Show ListLicenseConversionTasksResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListLicenseConversionTasksResponse] -> ShowS
$cshowList :: [ListLicenseConversionTasksResponse] -> ShowS
show :: ListLicenseConversionTasksResponse -> String
$cshow :: ListLicenseConversionTasksResponse -> String
showsPrec :: Int -> ListLicenseConversionTasksResponse -> ShowS
$cshowsPrec :: Int -> ListLicenseConversionTasksResponse -> ShowS
Prelude.Show, (forall x.
 ListLicenseConversionTasksResponse
 -> Rep ListLicenseConversionTasksResponse x)
-> (forall x.
    Rep ListLicenseConversionTasksResponse x
    -> ListLicenseConversionTasksResponse)
-> Generic ListLicenseConversionTasksResponse
forall x.
Rep ListLicenseConversionTasksResponse x
-> ListLicenseConversionTasksResponse
forall x.
ListLicenseConversionTasksResponse
-> Rep ListLicenseConversionTasksResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListLicenseConversionTasksResponse x
-> ListLicenseConversionTasksResponse
$cfrom :: forall x.
ListLicenseConversionTasksResponse
-> Rep ListLicenseConversionTasksResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListLicenseConversionTasksResponse' 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:
--
-- 'licenseConversionTasks', 'listLicenseConversionTasksResponse_licenseConversionTasks' - Information about the license configuration tasks for your account.
--
-- 'nextToken', 'listLicenseConversionTasksResponse_nextToken' - Token for the next set of results.
--
-- 'httpStatus', 'listLicenseConversionTasksResponse_httpStatus' - The response's http status code.
newListLicenseConversionTasksResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListLicenseConversionTasksResponse
newListLicenseConversionTasksResponse :: Int -> ListLicenseConversionTasksResponse
newListLicenseConversionTasksResponse Int
pHttpStatus_ =
  ListLicenseConversionTasksResponse' :: Maybe [LicenseConversionTask]
-> Maybe Text -> Int -> ListLicenseConversionTasksResponse
ListLicenseConversionTasksResponse'
    { $sel:licenseConversionTasks:ListLicenseConversionTasksResponse' :: Maybe [LicenseConversionTask]
licenseConversionTasks =
        Maybe [LicenseConversionTask]
forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:ListLicenseConversionTasksResponse' :: Maybe Text
nextToken = Maybe Text
forall a. Maybe a
Prelude.Nothing,
      $sel:httpStatus:ListLicenseConversionTasksResponse' :: Int
httpStatus = Int
pHttpStatus_
    }

-- | Information about the license configuration tasks for your account.
listLicenseConversionTasksResponse_licenseConversionTasks :: Lens.Lens' ListLicenseConversionTasksResponse (Prelude.Maybe [LicenseConversionTask])
listLicenseConversionTasksResponse_licenseConversionTasks :: (Maybe [LicenseConversionTask]
 -> f (Maybe [LicenseConversionTask]))
-> ListLicenseConversionTasksResponse
-> f ListLicenseConversionTasksResponse
listLicenseConversionTasksResponse_licenseConversionTasks = (ListLicenseConversionTasksResponse
 -> Maybe [LicenseConversionTask])
-> (ListLicenseConversionTasksResponse
    -> Maybe [LicenseConversionTask]
    -> ListLicenseConversionTasksResponse)
-> Lens
     ListLicenseConversionTasksResponse
     ListLicenseConversionTasksResponse
     (Maybe [LicenseConversionTask])
     (Maybe [LicenseConversionTask])
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseConversionTasksResponse' {Maybe [LicenseConversionTask]
licenseConversionTasks :: Maybe [LicenseConversionTask]
$sel:licenseConversionTasks:ListLicenseConversionTasksResponse' :: ListLicenseConversionTasksResponse -> Maybe [LicenseConversionTask]
licenseConversionTasks} -> Maybe [LicenseConversionTask]
licenseConversionTasks) (\s :: ListLicenseConversionTasksResponse
s@ListLicenseConversionTasksResponse' {} Maybe [LicenseConversionTask]
a -> ListLicenseConversionTasksResponse
s {$sel:licenseConversionTasks:ListLicenseConversionTasksResponse' :: Maybe [LicenseConversionTask]
licenseConversionTasks = Maybe [LicenseConversionTask]
a} :: ListLicenseConversionTasksResponse) ((Maybe [LicenseConversionTask]
  -> f (Maybe [LicenseConversionTask]))
 -> ListLicenseConversionTasksResponse
 -> f ListLicenseConversionTasksResponse)
-> ((Maybe [LicenseConversionTask]
     -> f (Maybe [LicenseConversionTask]))
    -> Maybe [LicenseConversionTask]
    -> f (Maybe [LicenseConversionTask]))
-> (Maybe [LicenseConversionTask]
    -> f (Maybe [LicenseConversionTask]))
-> ListLicenseConversionTasksResponse
-> f ListLicenseConversionTasksResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [LicenseConversionTask]
  [LicenseConversionTask]
  [LicenseConversionTask]
  [LicenseConversionTask]
-> Iso
     (Maybe [LicenseConversionTask])
     (Maybe [LicenseConversionTask])
     (Maybe [LicenseConversionTask])
     (Maybe [LicenseConversionTask])
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
  [LicenseConversionTask]
  [LicenseConversionTask]
  [LicenseConversionTask]
  [LicenseConversionTask]
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.
listLicenseConversionTasksResponse_nextToken :: Lens.Lens' ListLicenseConversionTasksResponse (Prelude.Maybe Prelude.Text)
listLicenseConversionTasksResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListLicenseConversionTasksResponse
-> f ListLicenseConversionTasksResponse
listLicenseConversionTasksResponse_nextToken = (ListLicenseConversionTasksResponse -> Maybe Text)
-> (ListLicenseConversionTasksResponse
    -> Maybe Text -> ListLicenseConversionTasksResponse)
-> Lens
     ListLicenseConversionTasksResponse
     ListLicenseConversionTasksResponse
     (Maybe Text)
     (Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListLicenseConversionTasksResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListLicenseConversionTasksResponse' :: ListLicenseConversionTasksResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListLicenseConversionTasksResponse
s@ListLicenseConversionTasksResponse' {} Maybe Text
a -> ListLicenseConversionTasksResponse
s {$sel:nextToken:ListLicenseConversionTasksResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListLicenseConversionTasksResponse)

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

instance
  Prelude.NFData
    ListLicenseConversionTasksResponse