{-# 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.AppStream.DescribeUsageReportSubscriptions
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Retrieves a list that describes one or more usage report subscriptions.
module Amazonka.AppStream.DescribeUsageReportSubscriptions
  ( -- * Creating a Request
    DescribeUsageReportSubscriptions (..),
    newDescribeUsageReportSubscriptions,

    -- * Request Lenses
    describeUsageReportSubscriptions_maxResults,
    describeUsageReportSubscriptions_nextToken,

    -- * Destructuring the Response
    DescribeUsageReportSubscriptionsResponse (..),
    newDescribeUsageReportSubscriptionsResponse,

    -- * Response Lenses
    describeUsageReportSubscriptionsResponse_nextToken,
    describeUsageReportSubscriptionsResponse_usageReportSubscriptions,
    describeUsageReportSubscriptionsResponse_httpStatus,
  )
where

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

-- | /See:/ 'newDescribeUsageReportSubscriptions' smart constructor.
data DescribeUsageReportSubscriptions = DescribeUsageReportSubscriptions'
  { -- | The maximum size of each page of results.
    DescribeUsageReportSubscriptions -> Maybe Int
maxResults :: Prelude.Maybe Prelude.Int,
    -- | The pagination token to use to retrieve the next page of results for
    -- this operation. If this value is null, it retrieves the first page.
    DescribeUsageReportSubscriptions -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text
  }
  deriving (DescribeUsageReportSubscriptions
-> DescribeUsageReportSubscriptions -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeUsageReportSubscriptions
-> DescribeUsageReportSubscriptions -> Bool
$c/= :: DescribeUsageReportSubscriptions
-> DescribeUsageReportSubscriptions -> Bool
== :: DescribeUsageReportSubscriptions
-> DescribeUsageReportSubscriptions -> Bool
$c== :: DescribeUsageReportSubscriptions
-> DescribeUsageReportSubscriptions -> Bool
Prelude.Eq, ReadPrec [DescribeUsageReportSubscriptions]
ReadPrec DescribeUsageReportSubscriptions
Int -> ReadS DescribeUsageReportSubscriptions
ReadS [DescribeUsageReportSubscriptions]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeUsageReportSubscriptions]
$creadListPrec :: ReadPrec [DescribeUsageReportSubscriptions]
readPrec :: ReadPrec DescribeUsageReportSubscriptions
$creadPrec :: ReadPrec DescribeUsageReportSubscriptions
readList :: ReadS [DescribeUsageReportSubscriptions]
$creadList :: ReadS [DescribeUsageReportSubscriptions]
readsPrec :: Int -> ReadS DescribeUsageReportSubscriptions
$creadsPrec :: Int -> ReadS DescribeUsageReportSubscriptions
Prelude.Read, Int -> DescribeUsageReportSubscriptions -> ShowS
[DescribeUsageReportSubscriptions] -> ShowS
DescribeUsageReportSubscriptions -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeUsageReportSubscriptions] -> ShowS
$cshowList :: [DescribeUsageReportSubscriptions] -> ShowS
show :: DescribeUsageReportSubscriptions -> String
$cshow :: DescribeUsageReportSubscriptions -> String
showsPrec :: Int -> DescribeUsageReportSubscriptions -> ShowS
$cshowsPrec :: Int -> DescribeUsageReportSubscriptions -> ShowS
Prelude.Show, forall x.
Rep DescribeUsageReportSubscriptions x
-> DescribeUsageReportSubscriptions
forall x.
DescribeUsageReportSubscriptions
-> Rep DescribeUsageReportSubscriptions x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeUsageReportSubscriptions x
-> DescribeUsageReportSubscriptions
$cfrom :: forall x.
DescribeUsageReportSubscriptions
-> Rep DescribeUsageReportSubscriptions x
Prelude.Generic)

-- |
-- Create a value of 'DescribeUsageReportSubscriptions' 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', 'describeUsageReportSubscriptions_maxResults' - The maximum size of each page of results.
--
-- 'nextToken', 'describeUsageReportSubscriptions_nextToken' - The pagination token to use to retrieve the next page of results for
-- this operation. If this value is null, it retrieves the first page.
newDescribeUsageReportSubscriptions ::
  DescribeUsageReportSubscriptions
newDescribeUsageReportSubscriptions :: DescribeUsageReportSubscriptions
newDescribeUsageReportSubscriptions =
  DescribeUsageReportSubscriptions'
    { $sel:maxResults:DescribeUsageReportSubscriptions' :: Maybe Int
maxResults =
        forall a. Maybe a
Prelude.Nothing,
      $sel:nextToken:DescribeUsageReportSubscriptions' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing
    }

-- | The maximum size of each page of results.
describeUsageReportSubscriptions_maxResults :: Lens.Lens' DescribeUsageReportSubscriptions (Prelude.Maybe Prelude.Int)
describeUsageReportSubscriptions_maxResults :: Lens' DescribeUsageReportSubscriptions (Maybe Int)
describeUsageReportSubscriptions_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUsageReportSubscriptions' {Maybe Int
maxResults :: Maybe Int
$sel:maxResults:DescribeUsageReportSubscriptions' :: DescribeUsageReportSubscriptions -> Maybe Int
maxResults} -> Maybe Int
maxResults) (\s :: DescribeUsageReportSubscriptions
s@DescribeUsageReportSubscriptions' {} Maybe Int
a -> DescribeUsageReportSubscriptions
s {$sel:maxResults:DescribeUsageReportSubscriptions' :: Maybe Int
maxResults = Maybe Int
a} :: DescribeUsageReportSubscriptions)

-- | The pagination token to use to retrieve the next page of results for
-- this operation. If this value is null, it retrieves the first page.
describeUsageReportSubscriptions_nextToken :: Lens.Lens' DescribeUsageReportSubscriptions (Prelude.Maybe Prelude.Text)
describeUsageReportSubscriptions_nextToken :: Lens' DescribeUsageReportSubscriptions (Maybe Text)
describeUsageReportSubscriptions_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUsageReportSubscriptions' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeUsageReportSubscriptions' :: DescribeUsageReportSubscriptions -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeUsageReportSubscriptions
s@DescribeUsageReportSubscriptions' {} Maybe Text
a -> DescribeUsageReportSubscriptions
s {$sel:nextToken:DescribeUsageReportSubscriptions' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeUsageReportSubscriptions)

instance
  Core.AWSRequest
    DescribeUsageReportSubscriptions
  where
  type
    AWSResponse DescribeUsageReportSubscriptions =
      DescribeUsageReportSubscriptionsResponse
  request :: (Service -> Service)
-> DescribeUsageReportSubscriptions
-> Request DescribeUsageReportSubscriptions
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 DescribeUsageReportSubscriptions
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeUsageReportSubscriptions)))
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 Text
-> Maybe [UsageReportSubscription]
-> Int
-> DescribeUsageReportSubscriptionsResponse
DescribeUsageReportSubscriptionsResponse'
            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
"NextToken")
            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
"UsageReportSubscriptions"
                            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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
      )

instance
  Prelude.Hashable
    DescribeUsageReportSubscriptions
  where
  hashWithSalt :: Int -> DescribeUsageReportSubscriptions -> Int
hashWithSalt
    Int
_salt
    DescribeUsageReportSubscriptions' {Maybe Int
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Int
$sel:nextToken:DescribeUsageReportSubscriptions' :: DescribeUsageReportSubscriptions -> Maybe Text
$sel:maxResults:DescribeUsageReportSubscriptions' :: DescribeUsageReportSubscriptions -> 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

instance
  Prelude.NFData
    DescribeUsageReportSubscriptions
  where
  rnf :: DescribeUsageReportSubscriptions -> ()
rnf DescribeUsageReportSubscriptions' {Maybe Int
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Int
$sel:nextToken:DescribeUsageReportSubscriptions' :: DescribeUsageReportSubscriptions -> Maybe Text
$sel:maxResults:DescribeUsageReportSubscriptions' :: DescribeUsageReportSubscriptions -> 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

instance
  Data.ToHeaders
    DescribeUsageReportSubscriptions
  where
  toHeaders :: DescribeUsageReportSubscriptions -> 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
"PhotonAdminProxyService.DescribeUsageReportSubscriptions" ::
                          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 DescribeUsageReportSubscriptions where
  toJSON :: DescribeUsageReportSubscriptions -> Value
toJSON DescribeUsageReportSubscriptions' {Maybe Int
Maybe Text
nextToken :: Maybe Text
maxResults :: Maybe Int
$sel:nextToken:DescribeUsageReportSubscriptions' :: DescribeUsageReportSubscriptions -> Maybe Text
$sel:maxResults:DescribeUsageReportSubscriptions' :: DescribeUsageReportSubscriptions -> 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
          ]
      )

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

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

-- | /See:/ 'newDescribeUsageReportSubscriptionsResponse' smart constructor.
data DescribeUsageReportSubscriptionsResponse = DescribeUsageReportSubscriptionsResponse'
  { -- | The pagination token to use to retrieve the next page of results for
    -- this operation. If there are no more pages, this value is null.
    DescribeUsageReportSubscriptionsResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | Information about the usage report subscription.
    DescribeUsageReportSubscriptionsResponse
-> Maybe [UsageReportSubscription]
usageReportSubscriptions :: Prelude.Maybe [UsageReportSubscription],
    -- | The response's http status code.
    DescribeUsageReportSubscriptionsResponse -> Int
httpStatus :: Prelude.Int
  }
  deriving (DescribeUsageReportSubscriptionsResponse
-> DescribeUsageReportSubscriptionsResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeUsageReportSubscriptionsResponse
-> DescribeUsageReportSubscriptionsResponse -> Bool
$c/= :: DescribeUsageReportSubscriptionsResponse
-> DescribeUsageReportSubscriptionsResponse -> Bool
== :: DescribeUsageReportSubscriptionsResponse
-> DescribeUsageReportSubscriptionsResponse -> Bool
$c== :: DescribeUsageReportSubscriptionsResponse
-> DescribeUsageReportSubscriptionsResponse -> Bool
Prelude.Eq, ReadPrec [DescribeUsageReportSubscriptionsResponse]
ReadPrec DescribeUsageReportSubscriptionsResponse
Int -> ReadS DescribeUsageReportSubscriptionsResponse
ReadS [DescribeUsageReportSubscriptionsResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeUsageReportSubscriptionsResponse]
$creadListPrec :: ReadPrec [DescribeUsageReportSubscriptionsResponse]
readPrec :: ReadPrec DescribeUsageReportSubscriptionsResponse
$creadPrec :: ReadPrec DescribeUsageReportSubscriptionsResponse
readList :: ReadS [DescribeUsageReportSubscriptionsResponse]
$creadList :: ReadS [DescribeUsageReportSubscriptionsResponse]
readsPrec :: Int -> ReadS DescribeUsageReportSubscriptionsResponse
$creadsPrec :: Int -> ReadS DescribeUsageReportSubscriptionsResponse
Prelude.Read, Int -> DescribeUsageReportSubscriptionsResponse -> ShowS
[DescribeUsageReportSubscriptionsResponse] -> ShowS
DescribeUsageReportSubscriptionsResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeUsageReportSubscriptionsResponse] -> ShowS
$cshowList :: [DescribeUsageReportSubscriptionsResponse] -> ShowS
show :: DescribeUsageReportSubscriptionsResponse -> String
$cshow :: DescribeUsageReportSubscriptionsResponse -> String
showsPrec :: Int -> DescribeUsageReportSubscriptionsResponse -> ShowS
$cshowsPrec :: Int -> DescribeUsageReportSubscriptionsResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeUsageReportSubscriptionsResponse x
-> DescribeUsageReportSubscriptionsResponse
forall x.
DescribeUsageReportSubscriptionsResponse
-> Rep DescribeUsageReportSubscriptionsResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeUsageReportSubscriptionsResponse x
-> DescribeUsageReportSubscriptionsResponse
$cfrom :: forall x.
DescribeUsageReportSubscriptionsResponse
-> Rep DescribeUsageReportSubscriptionsResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeUsageReportSubscriptionsResponse' 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', 'describeUsageReportSubscriptionsResponse_nextToken' - The pagination token to use to retrieve the next page of results for
-- this operation. If there are no more pages, this value is null.
--
-- 'usageReportSubscriptions', 'describeUsageReportSubscriptionsResponse_usageReportSubscriptions' - Information about the usage report subscription.
--
-- 'httpStatus', 'describeUsageReportSubscriptionsResponse_httpStatus' - The response's http status code.
newDescribeUsageReportSubscriptionsResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeUsageReportSubscriptionsResponse
newDescribeUsageReportSubscriptionsResponse :: Int -> DescribeUsageReportSubscriptionsResponse
newDescribeUsageReportSubscriptionsResponse
  Int
pHttpStatus_ =
    DescribeUsageReportSubscriptionsResponse'
      { $sel:nextToken:DescribeUsageReportSubscriptionsResponse' :: Maybe Text
nextToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:usageReportSubscriptions:DescribeUsageReportSubscriptionsResponse' :: Maybe [UsageReportSubscription]
usageReportSubscriptions =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeUsageReportSubscriptionsResponse' :: Int
httpStatus = Int
pHttpStatus_
      }

-- | The pagination token to use to retrieve the next page of results for
-- this operation. If there are no more pages, this value is null.
describeUsageReportSubscriptionsResponse_nextToken :: Lens.Lens' DescribeUsageReportSubscriptionsResponse (Prelude.Maybe Prelude.Text)
describeUsageReportSubscriptionsResponse_nextToken :: Lens' DescribeUsageReportSubscriptionsResponse (Maybe Text)
describeUsageReportSubscriptionsResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUsageReportSubscriptionsResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeUsageReportSubscriptionsResponse' :: DescribeUsageReportSubscriptionsResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeUsageReportSubscriptionsResponse
s@DescribeUsageReportSubscriptionsResponse' {} Maybe Text
a -> DescribeUsageReportSubscriptionsResponse
s {$sel:nextToken:DescribeUsageReportSubscriptionsResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeUsageReportSubscriptionsResponse)

-- | Information about the usage report subscription.
describeUsageReportSubscriptionsResponse_usageReportSubscriptions :: Lens.Lens' DescribeUsageReportSubscriptionsResponse (Prelude.Maybe [UsageReportSubscription])
describeUsageReportSubscriptionsResponse_usageReportSubscriptions :: Lens'
  DescribeUsageReportSubscriptionsResponse
  (Maybe [UsageReportSubscription])
describeUsageReportSubscriptionsResponse_usageReportSubscriptions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeUsageReportSubscriptionsResponse' {Maybe [UsageReportSubscription]
usageReportSubscriptions :: Maybe [UsageReportSubscription]
$sel:usageReportSubscriptions:DescribeUsageReportSubscriptionsResponse' :: DescribeUsageReportSubscriptionsResponse
-> Maybe [UsageReportSubscription]
usageReportSubscriptions} -> Maybe [UsageReportSubscription]
usageReportSubscriptions) (\s :: DescribeUsageReportSubscriptionsResponse
s@DescribeUsageReportSubscriptionsResponse' {} Maybe [UsageReportSubscription]
a -> DescribeUsageReportSubscriptionsResponse
s {$sel:usageReportSubscriptions:DescribeUsageReportSubscriptionsResponse' :: Maybe [UsageReportSubscription]
usageReportSubscriptions = Maybe [UsageReportSubscription]
a} :: DescribeUsageReportSubscriptionsResponse) 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

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

instance
  Prelude.NFData
    DescribeUsageReportSubscriptionsResponse
  where
  rnf :: DescribeUsageReportSubscriptionsResponse -> ()
rnf DescribeUsageReportSubscriptionsResponse' {Int
Maybe [UsageReportSubscription]
Maybe Text
httpStatus :: Int
usageReportSubscriptions :: Maybe [UsageReportSubscription]
nextToken :: Maybe Text
$sel:httpStatus:DescribeUsageReportSubscriptionsResponse' :: DescribeUsageReportSubscriptionsResponse -> Int
$sel:usageReportSubscriptions:DescribeUsageReportSubscriptionsResponse' :: DescribeUsageReportSubscriptionsResponse
-> Maybe [UsageReportSubscription]
$sel:nextToken:DescribeUsageReportSubscriptionsResponse' :: DescribeUsageReportSubscriptionsResponse -> Maybe Text
..} =
    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 Maybe [UsageReportSubscription]
usageReportSubscriptions
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus