{-# 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.ListFailuresForLicenseConfigurationOperations
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Lists the license configuration operations that failed.
module Amazonka.LicenseManager.ListFailuresForLicenseConfigurationOperations
  ( -- * Creating a Request
    ListFailuresForLicenseConfigurationOperations (..),
    newListFailuresForLicenseConfigurationOperations,

    -- * Request Lenses
    listFailuresForLicenseConfigurationOperations_maxResults,
    listFailuresForLicenseConfigurationOperations_nextToken,
    listFailuresForLicenseConfigurationOperations_licenseConfigurationArn,

    -- * Destructuring the Response
    ListFailuresForLicenseConfigurationOperationsResponse (..),
    newListFailuresForLicenseConfigurationOperationsResponse,

    -- * Response Lenses
    listFailuresForLicenseConfigurationOperationsResponse_licenseOperationFailureList,
    listFailuresForLicenseConfigurationOperationsResponse_nextToken,
    listFailuresForLicenseConfigurationOperationsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newListFailuresForLicenseConfigurationOperations' smart constructor.
data ListFailuresForLicenseConfigurationOperations = ListFailuresForLicenseConfigurationOperations'
  { -- | Maximum number of results to return in a single call.
    ListFailuresForLicenseConfigurationOperations -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
    -- | Token for the next set of results.
    ListFailuresForLicenseConfigurationOperations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Amazon Resource Name of the license configuration.
    ListFailuresForLicenseConfigurationOperations -> Text
licenseConfigurationArn :: Prelude.Text
  }
  deriving (ListFailuresForLicenseConfigurationOperations
-> ListFailuresForLicenseConfigurationOperations -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFailuresForLicenseConfigurationOperations
-> ListFailuresForLicenseConfigurationOperations -> Bool
$c/= :: ListFailuresForLicenseConfigurationOperations
-> ListFailuresForLicenseConfigurationOperations -> Bool
== :: ListFailuresForLicenseConfigurationOperations
-> ListFailuresForLicenseConfigurationOperations -> Bool
$c== :: ListFailuresForLicenseConfigurationOperations
-> ListFailuresForLicenseConfigurationOperations -> Bool
Prelude.Eq, ReadPrec [ListFailuresForLicenseConfigurationOperations]
ReadPrec ListFailuresForLicenseConfigurationOperations
Int -> ReadS ListFailuresForLicenseConfigurationOperations
ReadS [ListFailuresForLicenseConfigurationOperations]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFailuresForLicenseConfigurationOperations]
$creadListPrec :: ReadPrec [ListFailuresForLicenseConfigurationOperations]
readPrec :: ReadPrec ListFailuresForLicenseConfigurationOperations
$creadPrec :: ReadPrec ListFailuresForLicenseConfigurationOperations
readList :: ReadS [ListFailuresForLicenseConfigurationOperations]
$creadList :: ReadS [ListFailuresForLicenseConfigurationOperations]
readsPrec :: Int -> ReadS ListFailuresForLicenseConfigurationOperations
$creadsPrec :: Int -> ReadS ListFailuresForLicenseConfigurationOperations
Prelude.Read, Int -> ListFailuresForLicenseConfigurationOperations -> ShowS
[ListFailuresForLicenseConfigurationOperations] -> ShowS
ListFailuresForLicenseConfigurationOperations -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFailuresForLicenseConfigurationOperations] -> ShowS
$cshowList :: [ListFailuresForLicenseConfigurationOperations] -> ShowS
show :: ListFailuresForLicenseConfigurationOperations -> String
$cshow :: ListFailuresForLicenseConfigurationOperations -> String
showsPrec :: Int -> ListFailuresForLicenseConfigurationOperations -> ShowS
$cshowsPrec :: Int -> ListFailuresForLicenseConfigurationOperations -> ShowS
Prelude.Show, forall x.
Rep ListFailuresForLicenseConfigurationOperations x
-> ListFailuresForLicenseConfigurationOperations
forall x.
ListFailuresForLicenseConfigurationOperations
-> Rep ListFailuresForLicenseConfigurationOperations x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFailuresForLicenseConfigurationOperations x
-> ListFailuresForLicenseConfigurationOperations
$cfrom :: forall x.
ListFailuresForLicenseConfigurationOperations
-> Rep ListFailuresForLicenseConfigurationOperations x
Prelude.Generic)

-- |
-- Create a value of 'ListFailuresForLicenseConfigurationOperations' 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:
--
-- 'maxResults', 'listFailuresForLicenseConfigurationOperations_maxResults' - Maximum number of results to return in a single call.
--
-- 'nextToken', 'listFailuresForLicenseConfigurationOperations_nextToken' - Token for the next set of results.
--
-- 'licenseConfigurationArn', 'listFailuresForLicenseConfigurationOperations_licenseConfigurationArn' - Amazon Resource Name of the license configuration.
newListFailuresForLicenseConfigurationOperations ::
  -- | 'licenseConfigurationArn'
  Prelude.Text ->
  ListFailuresForLicenseConfigurationOperations
newListFailuresForLicenseConfigurationOperations :: Text -> ListFailuresForLicenseConfigurationOperations
newListFailuresForLicenseConfigurationOperations
  Text
pLicenseConfigurationArn_ =
    ListFailuresForLicenseConfigurationOperations'
      { $sel:maxResults:ListFailuresForLicenseConfigurationOperations' :: Maybe Int
maxResults =
          forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListFailuresForLicenseConfigurationOperations' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
        $sel:licenseConfigurationArn:ListFailuresForLicenseConfigurationOperations' :: Text
licenseConfigurationArn =
          Text
pLicenseConfigurationArn_
      }

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

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

-- | Amazon Resource Name of the license configuration.
listFailuresForLicenseConfigurationOperations_licenseConfigurationArn :: Lens.Lens' ListFailuresForLicenseConfigurationOperations Prelude.Text
listFailuresForLicenseConfigurationOperations_licenseConfigurationArn :: Lens' ListFailuresForLicenseConfigurationOperations Text
listFailuresForLicenseConfigurationOperations_licenseConfigurationArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFailuresForLicenseConfigurationOperations' {Text
licenseConfigurationArn :: Text
$sel:licenseConfigurationArn:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Text
licenseConfigurationArn} -> Text
licenseConfigurationArn) (\s :: ListFailuresForLicenseConfigurationOperations
s@ListFailuresForLicenseConfigurationOperations' {} Text
a -> ListFailuresForLicenseConfigurationOperations
s {$sel:licenseConfigurationArn:ListFailuresForLicenseConfigurationOperations' :: Text
licenseConfigurationArn = Text
a} :: ListFailuresForLicenseConfigurationOperations)

instance
  Core.AWSRequest
    ListFailuresForLicenseConfigurationOperations
  where
  type
    AWSResponse
      ListFailuresForLicenseConfigurationOperations =
      ListFailuresForLicenseConfigurationOperationsResponse
  request :: (Service -> Service)
-> ListFailuresForLicenseConfigurationOperations
-> Request ListFailuresForLicenseConfigurationOperations
request Service -> Service
overrides =
    forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON (Service -> Service
overrides Service
defaultService)
  response :: forall (m :: * -> *).
MonadResource m =>
(ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy ListFailuresForLicenseConfigurationOperations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse ListFailuresForLicenseConfigurationOperations)))
response =
    forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> (ByteStringLazy -> IO ByteStringLazy)
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
      ( \Int
s ResponseHeaders
h Object
x ->
          Maybe [LicenseOperationFailure]
-> Maybe Text
-> Int
-> ListFailuresForLicenseConfigurationOperationsResponse
ListFailuresForLicenseConfigurationOperationsResponse'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"LicenseOperationFailureList"
                            forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Either String (Maybe a)
Data..?> Key
"NextToken")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    ListFailuresForLicenseConfigurationOperations
  where
  hashWithSalt :: Int -> ListFailuresForLicenseConfigurationOperations -> Int
hashWithSalt
    Int
_salt
    ListFailuresForLicenseConfigurationOperations' {Maybe Int
Maybe Text
Text
licenseConfigurationArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Int
$sel:licenseConfigurationArn:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Text
$sel:nextToken:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Maybe Text
$sel:maxResults:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Maybe Int
..} =
      Int
_salt
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Int
maxResults
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
nextToken
        forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
licenseConfigurationArn

instance
  Prelude.NFData
    ListFailuresForLicenseConfigurationOperations
  where
  rnf :: ListFailuresForLicenseConfigurationOperations -> ()
rnf
    ListFailuresForLicenseConfigurationOperations' {Maybe Int
Maybe Text
Text
licenseConfigurationArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Int
$sel:licenseConfigurationArn:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Text
$sel:nextToken:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Maybe Text
$sel:maxResults:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Maybe Int
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Maybe Int
maxResults
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
licenseConfigurationArn

instance
  Data.ToHeaders
    ListFailuresForLicenseConfigurationOperations
  where
  toHeaders :: ListFailuresForLicenseConfigurationOperations -> ResponseHeaders
toHeaders =
    forall a b. a -> b -> a
Prelude.const
      ( forall a. Monoid a => [a] -> a
Prelude.mconcat
          [ HeaderName
"X-Amz-Target"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"AWSLicenseManager.ListFailuresForLicenseConfigurationOperations" ::
                          Prelude.ByteString
                      ),
            HeaderName
"Content-Type"
              forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
                          Prelude.ByteString
                      )
          ]
      )

instance
  Data.ToJSON
    ListFailuresForLicenseConfigurationOperations
  where
  toJSON :: ListFailuresForLicenseConfigurationOperations -> Value
toJSON
    ListFailuresForLicenseConfigurationOperations' {Maybe Int
Maybe Text
Text
licenseConfigurationArn :: Text
nextToken :: Maybe Text
maxResults :: Maybe Int
$sel:licenseConfigurationArn:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Text
$sel:nextToken:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Maybe Text
$sel:maxResults:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Maybe Int
..} =
      [Pair] -> Value
Data.object
        ( forall a. [Maybe a] -> [a]
Prelude.catMaybes
            [ (Key
"MaxResults" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Int
maxResults,
              (Key
"NextToken" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..=) forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> Maybe Text
nextToken,
              forall a. a -> Maybe a
Prelude.Just
                ( Key
"LicenseConfigurationArn"
                    forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
licenseConfigurationArn
                )
            ]
        )

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

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

-- | /See:/ 'newListFailuresForLicenseConfigurationOperationsResponse' smart constructor.
data ListFailuresForLicenseConfigurationOperationsResponse = ListFailuresForLicenseConfigurationOperationsResponse'
  { -- | License configuration operations that failed.
    ListFailuresForLicenseConfigurationOperationsResponse
-> Maybe [LicenseOperationFailure]
licenseOperationFailureList :: Prelude.Maybe [LicenseOperationFailure],
    -- | Token for the next set of results.
    ListFailuresForLicenseConfigurationOperationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    ListFailuresForLicenseConfigurationOperationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListFailuresForLicenseConfigurationOperationsResponse
-> ListFailuresForLicenseConfigurationOperationsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ListFailuresForLicenseConfigurationOperationsResponse
-> ListFailuresForLicenseConfigurationOperationsResponse -> Bool
$c/= :: ListFailuresForLicenseConfigurationOperationsResponse
-> ListFailuresForLicenseConfigurationOperationsResponse -> Bool
== :: ListFailuresForLicenseConfigurationOperationsResponse
-> ListFailuresForLicenseConfigurationOperationsResponse -> Bool
$c== :: ListFailuresForLicenseConfigurationOperationsResponse
-> ListFailuresForLicenseConfigurationOperationsResponse -> Bool
Prelude.Eq, ReadPrec [ListFailuresForLicenseConfigurationOperationsResponse]
ReadPrec ListFailuresForLicenseConfigurationOperationsResponse
Int -> ReadS ListFailuresForLicenseConfigurationOperationsResponse
ReadS [ListFailuresForLicenseConfigurationOperationsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [ListFailuresForLicenseConfigurationOperationsResponse]
$creadListPrec :: ReadPrec [ListFailuresForLicenseConfigurationOperationsResponse]
readPrec :: ReadPrec ListFailuresForLicenseConfigurationOperationsResponse
$creadPrec :: ReadPrec ListFailuresForLicenseConfigurationOperationsResponse
readList :: ReadS [ListFailuresForLicenseConfigurationOperationsResponse]
$creadList :: ReadS [ListFailuresForLicenseConfigurationOperationsResponse]
readsPrec :: Int -> ReadS ListFailuresForLicenseConfigurationOperationsResponse
$creadsPrec :: Int -> ReadS ListFailuresForLicenseConfigurationOperationsResponse
Prelude.Read, Int
-> ListFailuresForLicenseConfigurationOperationsResponse -> ShowS
[ListFailuresForLicenseConfigurationOperationsResponse] -> ShowS
ListFailuresForLicenseConfigurationOperationsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [ListFailuresForLicenseConfigurationOperationsResponse] -> ShowS
$cshowList :: [ListFailuresForLicenseConfigurationOperationsResponse] -> ShowS
show :: ListFailuresForLicenseConfigurationOperationsResponse -> String
$cshow :: ListFailuresForLicenseConfigurationOperationsResponse -> String
showsPrec :: Int
-> ListFailuresForLicenseConfigurationOperationsResponse -> ShowS
$cshowsPrec :: Int
-> ListFailuresForLicenseConfigurationOperationsResponse -> ShowS
Prelude.Show, forall x.
Rep ListFailuresForLicenseConfigurationOperationsResponse x
-> ListFailuresForLicenseConfigurationOperationsResponse
forall x.
ListFailuresForLicenseConfigurationOperationsResponse
-> Rep ListFailuresForLicenseConfigurationOperationsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep ListFailuresForLicenseConfigurationOperationsResponse x
-> ListFailuresForLicenseConfigurationOperationsResponse
$cfrom :: forall x.
ListFailuresForLicenseConfigurationOperationsResponse
-> Rep ListFailuresForLicenseConfigurationOperationsResponse x
Prelude.Generic)

-- |
-- Create a value of 'ListFailuresForLicenseConfigurationOperationsResponse' 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:
--
-- 'licenseOperationFailureList', 'listFailuresForLicenseConfigurationOperationsResponse_licenseOperationFailureList' - License configuration operations that failed.
--
-- 'nextToken', 'listFailuresForLicenseConfigurationOperationsResponse_nextToken' - Token for the next set of results.
--
-- 'httpStatus', 'listFailuresForLicenseConfigurationOperationsResponse_httpStatus' - The response's http status code.
newListFailuresForLicenseConfigurationOperationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListFailuresForLicenseConfigurationOperationsResponse
newListFailuresForLicenseConfigurationOperationsResponse :: Int -> ListFailuresForLicenseConfigurationOperationsResponse
newListFailuresForLicenseConfigurationOperationsResponse
  Int
pHttpStatus_ =
    ListFailuresForLicenseConfigurationOperationsResponse'
      { $sel:licenseOperationFailureList:ListFailuresForLicenseConfigurationOperationsResponse' :: Maybe [LicenseOperationFailure]
licenseOperationFailureList =
          forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:ListFailuresForLicenseConfigurationOperationsResponse' :: Maybe Text
nextToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListFailuresForLicenseConfigurationOperationsResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | License configuration operations that failed.
listFailuresForLicenseConfigurationOperationsResponse_licenseOperationFailureList :: Lens.Lens' ListFailuresForLicenseConfigurationOperationsResponse (Prelude.Maybe [LicenseOperationFailure])
listFailuresForLicenseConfigurationOperationsResponse_licenseOperationFailureList :: Lens'
  ListFailuresForLicenseConfigurationOperationsResponse
  (Maybe [LicenseOperationFailure])
listFailuresForLicenseConfigurationOperationsResponse_licenseOperationFailureList = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFailuresForLicenseConfigurationOperationsResponse' {Maybe [LicenseOperationFailure]
licenseOperationFailureList :: Maybe [LicenseOperationFailure]
$sel:licenseOperationFailureList:ListFailuresForLicenseConfigurationOperationsResponse' :: ListFailuresForLicenseConfigurationOperationsResponse
-> Maybe [LicenseOperationFailure]
licenseOperationFailureList} -> Maybe [LicenseOperationFailure]
licenseOperationFailureList) (\s :: ListFailuresForLicenseConfigurationOperationsResponse
s@ListFailuresForLicenseConfigurationOperationsResponse' {} Maybe [LicenseOperationFailure]
a -> ListFailuresForLicenseConfigurationOperationsResponse
s {$sel:licenseOperationFailureList:ListFailuresForLicenseConfigurationOperationsResponse' :: Maybe [LicenseOperationFailure]
licenseOperationFailureList = Maybe [LicenseOperationFailure]
a} :: ListFailuresForLicenseConfigurationOperationsResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. 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 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.
listFailuresForLicenseConfigurationOperationsResponse_nextToken :: Lens.Lens' ListFailuresForLicenseConfigurationOperationsResponse (Prelude.Maybe Prelude.Text)
listFailuresForLicenseConfigurationOperationsResponse_nextToken :: Lens'
  ListFailuresForLicenseConfigurationOperationsResponse (Maybe Text)
listFailuresForLicenseConfigurationOperationsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\ListFailuresForLicenseConfigurationOperationsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:ListFailuresForLicenseConfigurationOperationsResponse' :: ListFailuresForLicenseConfigurationOperationsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: ListFailuresForLicenseConfigurationOperationsResponse
s@ListFailuresForLicenseConfigurationOperationsResponse' {} Maybe Text
a -> ListFailuresForLicenseConfigurationOperationsResponse
s {$sel:nextToken:ListFailuresForLicenseConfigurationOperationsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: ListFailuresForLicenseConfigurationOperationsResponse)

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

instance
  Prelude.NFData
    ListFailuresForLicenseConfigurationOperationsResponse
  where
  rnf :: ListFailuresForLicenseConfigurationOperationsResponse -> ()
rnf
    ListFailuresForLicenseConfigurationOperationsResponse' {Int
Maybe [LicenseOperationFailure]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
licenseOperationFailureList :: Maybe [LicenseOperationFailure]
$sel:httpStatus:ListFailuresForLicenseConfigurationOperationsResponse' :: ListFailuresForLicenseConfigurationOperationsResponse -> Int
$sel:nextToken:ListFailuresForLicenseConfigurationOperationsResponse' :: ListFailuresForLicenseConfigurationOperationsResponse -> Maybe Text
$sel:licenseOperationFailureList:ListFailuresForLicenseConfigurationOperationsResponse' :: ListFailuresForLicenseConfigurationOperationsResponse
-> Maybe [LicenseOperationFailure]
..} =
      forall a. NFData a => a -> ()
Prelude.rnf Maybe [LicenseOperationFailure]
licenseOperationFailureList
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
nextToken
        seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus