{-# 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-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 configuration operations that failed.
module Amazonka.LicenseManager.ListFailuresForLicenseConfigurationOperations
  ( -- * Creating a Request
    ListFailuresForLicenseConfigurationOperations (..),
    newListFailuresForLicenseConfigurationOperations,

    -- * Request Lenses
    listFailuresForLicenseConfigurationOperations_nextToken,
    listFailuresForLicenseConfigurationOperations_maxResults,
    listFailuresForLicenseConfigurationOperations_licenseConfigurationArn,

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

    -- * Response Lenses
    listFailuresForLicenseConfigurationOperationsResponse_nextToken,
    listFailuresForLicenseConfigurationOperationsResponse_licenseOperationFailureList,
    listFailuresForLicenseConfigurationOperationsResponse_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:/ 'newListFailuresForLicenseConfigurationOperations' smart constructor.
data ListFailuresForLicenseConfigurationOperations = ListFailuresForLicenseConfigurationOperations'
  { -- | Token for the next set of results.
    ListFailuresForLicenseConfigurationOperations -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Maximum number of results to return in a single call.
    ListFailuresForLicenseConfigurationOperations -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
    -- | Amazon Resource Name of the license configuration.
    ListFailuresForLicenseConfigurationOperations -> Text
licenseConfigurationArn :: Prelude.Text
  }
  deriving (ListFailuresForLicenseConfigurationOperations
-> ListFailuresForLicenseConfigurationOperations -> Bool
(ListFailuresForLicenseConfigurationOperations
 -> ListFailuresForLicenseConfigurationOperations -> Bool)
-> (ListFailuresForLicenseConfigurationOperations
    -> ListFailuresForLicenseConfigurationOperations -> Bool)
-> Eq ListFailuresForLicenseConfigurationOperations
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]
(Int -> ReadS ListFailuresForLicenseConfigurationOperations)
-> ReadS [ListFailuresForLicenseConfigurationOperations]
-> ReadPrec ListFailuresForLicenseConfigurationOperations
-> ReadPrec [ListFailuresForLicenseConfigurationOperations]
-> Read 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
(Int -> ListFailuresForLicenseConfigurationOperations -> ShowS)
-> (ListFailuresForLicenseConfigurationOperations -> String)
-> ([ListFailuresForLicenseConfigurationOperations] -> ShowS)
-> Show ListFailuresForLicenseConfigurationOperations
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.
 ListFailuresForLicenseConfigurationOperations
 -> Rep ListFailuresForLicenseConfigurationOperations x)
-> (forall x.
    Rep ListFailuresForLicenseConfigurationOperations x
    -> ListFailuresForLicenseConfigurationOperations)
-> Generic ListFailuresForLicenseConfigurationOperations
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:
--
-- 'nextToken', 'listFailuresForLicenseConfigurationOperations_nextToken' - Token for the next set of results.
--
-- 'maxResults', 'listFailuresForLicenseConfigurationOperations_maxResults' - Maximum number of results to return in a single call.
--
-- 'licenseConfigurationArn', 'listFailuresForLicenseConfigurationOperations_licenseConfigurationArn' - Amazon Resource Name of the license configuration.
newListFailuresForLicenseConfigurationOperations ::
  -- | 'licenseConfigurationArn'
  Prelude.Text ->
  ListFailuresForLicenseConfigurationOperations
newListFailuresForLicenseConfigurationOperations :: Text -> ListFailuresForLicenseConfigurationOperations
newListFailuresForLicenseConfigurationOperations
  Text
pLicenseConfigurationArn_ =
    ListFailuresForLicenseConfigurationOperations' :: Maybe Text
-> Maybe Int
-> Text
-> ListFailuresForLicenseConfigurationOperations
ListFailuresForLicenseConfigurationOperations'
      { $sel:nextToken:ListFailuresForLicenseConfigurationOperations' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:maxResults:ListFailuresForLicenseConfigurationOperations' :: Maybe Int
maxResults = Maybe Int
forall a. Maybe a
Prelude.Nothing,
        $sel:licenseConfigurationArn:ListFailuresForLicenseConfigurationOperations' :: Text
licenseConfigurationArn =
          Text
pLicenseConfigurationArn_
      }

-- | Token for the next set of results.
listFailuresForLicenseConfigurationOperations_nextToken :: Lens.Lens' ListFailuresForLicenseConfigurationOperations (Prelude.Maybe Prelude.Text)
listFailuresForLicenseConfigurationOperations_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFailuresForLicenseConfigurationOperations
-> f ListFailuresForLicenseConfigurationOperations
listFailuresForLicenseConfigurationOperations_nextToken = (ListFailuresForLicenseConfigurationOperations -> Maybe Text)
-> (ListFailuresForLicenseConfigurationOperations
    -> Maybe Text -> ListFailuresForLicenseConfigurationOperations)
-> Lens
     ListFailuresForLicenseConfigurationOperations
     ListFailuresForLicenseConfigurationOperations
     (Maybe Text)
     (Maybe Text)
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)

-- | Maximum number of results to return in a single call.
listFailuresForLicenseConfigurationOperations_maxResults :: Lens.Lens' ListFailuresForLicenseConfigurationOperations (Prelude.Maybe Prelude.Int)
listFailuresForLicenseConfigurationOperations_maxResults :: (Maybe Int -> f (Maybe Int))
-> ListFailuresForLicenseConfigurationOperations
-> f ListFailuresForLicenseConfigurationOperations
listFailuresForLicenseConfigurationOperations_maxResults = (ListFailuresForLicenseConfigurationOperations -> Maybe Int)
-> (ListFailuresForLicenseConfigurationOperations
    -> Maybe Int -> ListFailuresForLicenseConfigurationOperations)
-> Lens
     ListFailuresForLicenseConfigurationOperations
     ListFailuresForLicenseConfigurationOperations
     (Maybe Int)
     (Maybe Int)
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)

-- | Amazon Resource Name of the license configuration.
listFailuresForLicenseConfigurationOperations_licenseConfigurationArn :: Lens.Lens' ListFailuresForLicenseConfigurationOperations Prelude.Text
listFailuresForLicenseConfigurationOperations_licenseConfigurationArn :: (Text -> f Text)
-> ListFailuresForLicenseConfigurationOperations
-> f ListFailuresForLicenseConfigurationOperations
listFailuresForLicenseConfigurationOperations_licenseConfigurationArn = (ListFailuresForLicenseConfigurationOperations -> Text)
-> (ListFailuresForLicenseConfigurationOperations
    -> Text -> ListFailuresForLicenseConfigurationOperations)
-> Lens
     ListFailuresForLicenseConfigurationOperations
     ListFailuresForLicenseConfigurationOperations
     Text
     Text
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 :: ListFailuresForLicenseConfigurationOperations
-> Request ListFailuresForLicenseConfigurationOperations
request = Service
-> ListFailuresForLicenseConfigurationOperations
-> Request ListFailuresForLicenseConfigurationOperations
forall a. (ToRequest a, ToJSON a) => Service -> a -> Request a
Request.postJSON Service
defaultService
  response :: Logger
-> Service
-> Proxy ListFailuresForLicenseConfigurationOperations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse ListFailuresForLicenseConfigurationOperations)))
response =
    (Int
 -> ResponseHeaders
 -> Object
 -> Either
      String (AWSResponse ListFailuresForLicenseConfigurationOperations))
-> Logger
-> Service
-> Proxy ListFailuresForLicenseConfigurationOperations
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse
           (AWSResponse ListFailuresForLicenseConfigurationOperations)))
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 [LicenseOperationFailure]
-> Int
-> ListFailuresForLicenseConfigurationOperationsResponse
ListFailuresForLicenseConfigurationOperationsResponse'
            (Maybe Text
 -> Maybe [LicenseOperationFailure]
 -> Int
 -> ListFailuresForLicenseConfigurationOperationsResponse)
-> Either String (Maybe Text)
-> Either
     String
     (Maybe [LicenseOperationFailure]
      -> Int -> ListFailuresForLicenseConfigurationOperationsResponse)
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 [LicenseOperationFailure]
   -> Int -> ListFailuresForLicenseConfigurationOperationsResponse)
-> Either String (Maybe [LicenseOperationFailure])
-> Either
     String
     (Int -> ListFailuresForLicenseConfigurationOperationsResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x Object
-> Text -> Either String (Maybe (Maybe [LicenseOperationFailure]))
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"LicenseOperationFailureList"
                              Either String (Maybe (Maybe [LicenseOperationFailure]))
-> Maybe [LicenseOperationFailure]
-> Either String (Maybe [LicenseOperationFailure])
forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ Maybe [LicenseOperationFailure]
forall a. Monoid a => a
Prelude.mempty
                          )
              Either
  String
  (Int -> ListFailuresForLicenseConfigurationOperationsResponse)
-> Either String Int
-> Either
     String ListFailuresForLicenseConfigurationOperationsResponse
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
    ListFailuresForLicenseConfigurationOperations

instance
  Prelude.NFData
    ListFailuresForLicenseConfigurationOperations

instance
  Core.ToHeaders
    ListFailuresForLicenseConfigurationOperations
  where
  toHeaders :: ListFailuresForLicenseConfigurationOperations -> ResponseHeaders
toHeaders =
    ResponseHeaders
-> ListFailuresForLicenseConfigurationOperations -> 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.ListFailuresForLicenseConfigurationOperations" ::
                          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
    ListFailuresForLicenseConfigurationOperations
  where
  toJSON :: ListFailuresForLicenseConfigurationOperations -> Value
toJSON
    ListFailuresForLicenseConfigurationOperations' {Maybe Int
Maybe Text
Text
licenseConfigurationArn :: Text
maxResults :: Maybe Int
nextToken :: Maybe Text
$sel:licenseConfigurationArn:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Text
$sel:maxResults:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Maybe Int
$sel:nextToken:ListFailuresForLicenseConfigurationOperations' :: ListFailuresForLicenseConfigurationOperations -> Maybe Text
..} =
      [Pair] -> Value
Core.object
        ( [Maybe Pair] -> [Pair]
forall a. [Maybe a] -> [a]
Prelude.catMaybes
            [ (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,
              Pair -> Maybe Pair
forall a. a -> Maybe a
Prelude.Just
                ( Text
"LicenseConfigurationArn"
                    Text -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Text -> v -> kv
Core..= Text
licenseConfigurationArn
                )
            ]
        )

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

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

-- | /See:/ 'newListFailuresForLicenseConfigurationOperationsResponse' smart constructor.
data ListFailuresForLicenseConfigurationOperationsResponse = ListFailuresForLicenseConfigurationOperationsResponse'
  { -- | Token for the next set of results.
    ListFailuresForLicenseConfigurationOperationsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | License configuration operations that failed.
    ListFailuresForLicenseConfigurationOperationsResponse
-> Maybe [LicenseOperationFailure]
licenseOperationFailureList :: Prelude.Maybe [LicenseOperationFailure],
    -- | The response's http status code.
    ListFailuresForLicenseConfigurationOperationsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (ListFailuresForLicenseConfigurationOperationsResponse
-> ListFailuresForLicenseConfigurationOperationsResponse -> Bool
(ListFailuresForLicenseConfigurationOperationsResponse
 -> ListFailuresForLicenseConfigurationOperationsResponse -> Bool)
-> (ListFailuresForLicenseConfigurationOperationsResponse
    -> ListFailuresForLicenseConfigurationOperationsResponse -> Bool)
-> Eq ListFailuresForLicenseConfigurationOperationsResponse
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]
(Int
 -> ReadS ListFailuresForLicenseConfigurationOperationsResponse)
-> ReadS [ListFailuresForLicenseConfigurationOperationsResponse]
-> ReadPrec ListFailuresForLicenseConfigurationOperationsResponse
-> ReadPrec [ListFailuresForLicenseConfigurationOperationsResponse]
-> Read 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
(Int
 -> ListFailuresForLicenseConfigurationOperationsResponse -> ShowS)
-> (ListFailuresForLicenseConfigurationOperationsResponse
    -> String)
-> ([ListFailuresForLicenseConfigurationOperationsResponse]
    -> ShowS)
-> Show ListFailuresForLicenseConfigurationOperationsResponse
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.
 ListFailuresForLicenseConfigurationOperationsResponse
 -> Rep ListFailuresForLicenseConfigurationOperationsResponse x)
-> (forall x.
    Rep ListFailuresForLicenseConfigurationOperationsResponse x
    -> ListFailuresForLicenseConfigurationOperationsResponse)
-> Generic ListFailuresForLicenseConfigurationOperationsResponse
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:
--
-- 'nextToken', 'listFailuresForLicenseConfigurationOperationsResponse_nextToken' - Token for the next set of results.
--
-- 'licenseOperationFailureList', 'listFailuresForLicenseConfigurationOperationsResponse_licenseOperationFailureList' - License configuration operations that failed.
--
-- 'httpStatus', 'listFailuresForLicenseConfigurationOperationsResponse_httpStatus' - The response's http status code.
newListFailuresForLicenseConfigurationOperationsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  ListFailuresForLicenseConfigurationOperationsResponse
newListFailuresForLicenseConfigurationOperationsResponse :: Int -> ListFailuresForLicenseConfigurationOperationsResponse
newListFailuresForLicenseConfigurationOperationsResponse
  Int
pHttpStatus_ =
    ListFailuresForLicenseConfigurationOperationsResponse' :: Maybe Text
-> Maybe [LicenseOperationFailure]
-> Int
-> ListFailuresForLicenseConfigurationOperationsResponse
ListFailuresForLicenseConfigurationOperationsResponse'
      { $sel:nextToken:ListFailuresForLicenseConfigurationOperationsResponse' :: Maybe Text
nextToken =
          Maybe Text
forall a. Maybe a
Prelude.Nothing,
        $sel:licenseOperationFailureList:ListFailuresForLicenseConfigurationOperationsResponse' :: Maybe [LicenseOperationFailure]
licenseOperationFailureList =
          Maybe [LicenseOperationFailure]
forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:ListFailuresForLicenseConfigurationOperationsResponse' :: Int
httpStatus =
          Int
pHttpStatus_
      }

-- | Token for the next set of results.
listFailuresForLicenseConfigurationOperationsResponse_nextToken :: Lens.Lens' ListFailuresForLicenseConfigurationOperationsResponse (Prelude.Maybe Prelude.Text)
listFailuresForLicenseConfigurationOperationsResponse_nextToken :: (Maybe Text -> f (Maybe Text))
-> ListFailuresForLicenseConfigurationOperationsResponse
-> f ListFailuresForLicenseConfigurationOperationsResponse
listFailuresForLicenseConfigurationOperationsResponse_nextToken = (ListFailuresForLicenseConfigurationOperationsResponse
 -> Maybe Text)
-> (ListFailuresForLicenseConfigurationOperationsResponse
    -> Maybe Text
    -> ListFailuresForLicenseConfigurationOperationsResponse)
-> Lens
     ListFailuresForLicenseConfigurationOperationsResponse
     ListFailuresForLicenseConfigurationOperationsResponse
     (Maybe Text)
     (Maybe Text)
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)

-- | License configuration operations that failed.
listFailuresForLicenseConfigurationOperationsResponse_licenseOperationFailureList :: Lens.Lens' ListFailuresForLicenseConfigurationOperationsResponse (Prelude.Maybe [LicenseOperationFailure])
listFailuresForLicenseConfigurationOperationsResponse_licenseOperationFailureList :: (Maybe [LicenseOperationFailure]
 -> f (Maybe [LicenseOperationFailure]))
-> ListFailuresForLicenseConfigurationOperationsResponse
-> f ListFailuresForLicenseConfigurationOperationsResponse
listFailuresForLicenseConfigurationOperationsResponse_licenseOperationFailureList = (ListFailuresForLicenseConfigurationOperationsResponse
 -> Maybe [LicenseOperationFailure])
-> (ListFailuresForLicenseConfigurationOperationsResponse
    -> Maybe [LicenseOperationFailure]
    -> ListFailuresForLicenseConfigurationOperationsResponse)
-> Lens
     ListFailuresForLicenseConfigurationOperationsResponse
     ListFailuresForLicenseConfigurationOperationsResponse
     (Maybe [LicenseOperationFailure])
     (Maybe [LicenseOperationFailure])
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) ((Maybe [LicenseOperationFailure]
  -> f (Maybe [LicenseOperationFailure]))
 -> ListFailuresForLicenseConfigurationOperationsResponse
 -> f ListFailuresForLicenseConfigurationOperationsResponse)
-> ((Maybe [LicenseOperationFailure]
     -> f (Maybe [LicenseOperationFailure]))
    -> Maybe [LicenseOperationFailure]
    -> f (Maybe [LicenseOperationFailure]))
-> (Maybe [LicenseOperationFailure]
    -> f (Maybe [LicenseOperationFailure]))
-> ListFailuresForLicenseConfigurationOperationsResponse
-> f ListFailuresForLicenseConfigurationOperationsResponse
forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. AnIso
  [LicenseOperationFailure]
  [LicenseOperationFailure]
  [LicenseOperationFailure]
  [LicenseOperationFailure]
-> Iso
     (Maybe [LicenseOperationFailure])
     (Maybe [LicenseOperationFailure])
     (Maybe [LicenseOperationFailure])
     (Maybe [LicenseOperationFailure])
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
  [LicenseOperationFailure]
  [LicenseOperationFailure]
  [LicenseOperationFailure]
  [LicenseOperationFailure]
forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | The response's http status code.
listFailuresForLicenseConfigurationOperationsResponse_httpStatus :: Lens.Lens' ListFailuresForLicenseConfigurationOperationsResponse Prelude.Int
listFailuresForLicenseConfigurationOperationsResponse_httpStatus :: (Int -> f Int)
-> ListFailuresForLicenseConfigurationOperationsResponse
-> f ListFailuresForLicenseConfigurationOperationsResponse
listFailuresForLicenseConfigurationOperationsResponse_httpStatus = (ListFailuresForLicenseConfigurationOperationsResponse -> Int)
-> (ListFailuresForLicenseConfigurationOperationsResponse
    -> Int -> ListFailuresForLicenseConfigurationOperationsResponse)
-> Lens
     ListFailuresForLicenseConfigurationOperationsResponse
     ListFailuresForLicenseConfigurationOperationsResponse
     Int
     Int
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