{-# 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.Budgets.DescribeBudgetActionsForBudget
-- Copyright   : (c) 2013-2023 Brendan Hay
-- License     : Mozilla Public License, v. 2.0.
-- Maintainer  : Brendan Hay
-- Stability   : auto-generated
-- Portability : non-portable (GHC extensions)
--
-- Describes all of the budget actions for a budget.
--
-- This operation returns paginated results.
module Amazonka.Budgets.DescribeBudgetActionsForBudget
  ( -- * Creating a Request
    DescribeBudgetActionsForBudget (..),
    newDescribeBudgetActionsForBudget,

    -- * Request Lenses
    describeBudgetActionsForBudget_maxResults,
    describeBudgetActionsForBudget_nextToken,
    describeBudgetActionsForBudget_accountId,
    describeBudgetActionsForBudget_budgetName,

    -- * Destructuring the Response
    DescribeBudgetActionsForBudgetResponse (..),
    newDescribeBudgetActionsForBudgetResponse,

    -- * Response Lenses
    describeBudgetActionsForBudgetResponse_nextToken,
    describeBudgetActionsForBudgetResponse_httpStatus,
    describeBudgetActionsForBudgetResponse_actions,
  )
where

import Amazonka.Budgets.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:/ 'newDescribeBudgetActionsForBudget' smart constructor.
data DescribeBudgetActionsForBudget = DescribeBudgetActionsForBudget'
  { DescribeBudgetActionsForBudget -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
    DescribeBudgetActionsForBudget -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    DescribeBudgetActionsForBudget -> Text
accountId :: Prelude.Text,
    DescribeBudgetActionsForBudget -> Text
budgetName :: Prelude.Text
  }
  deriving (DescribeBudgetActionsForBudget
-> DescribeBudgetActionsForBudget -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBudgetActionsForBudget
-> DescribeBudgetActionsForBudget -> Bool
$c/= :: DescribeBudgetActionsForBudget
-> DescribeBudgetActionsForBudget -> Bool
== :: DescribeBudgetActionsForBudget
-> DescribeBudgetActionsForBudget -> Bool
$c== :: DescribeBudgetActionsForBudget
-> DescribeBudgetActionsForBudget -> Bool
Prelude.Eq, ReadPrec [DescribeBudgetActionsForBudget]
ReadPrec DescribeBudgetActionsForBudget
Int -> ReadS DescribeBudgetActionsForBudget
ReadS [DescribeBudgetActionsForBudget]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeBudgetActionsForBudget]
$creadListPrec :: ReadPrec [DescribeBudgetActionsForBudget]
readPrec :: ReadPrec DescribeBudgetActionsForBudget
$creadPrec :: ReadPrec DescribeBudgetActionsForBudget
readList :: ReadS [DescribeBudgetActionsForBudget]
$creadList :: ReadS [DescribeBudgetActionsForBudget]
readsPrec :: Int -> ReadS DescribeBudgetActionsForBudget
$creadsPrec :: Int -> ReadS DescribeBudgetActionsForBudget
Prelude.Read, Int -> DescribeBudgetActionsForBudget -> ShowS
[DescribeBudgetActionsForBudget] -> ShowS
DescribeBudgetActionsForBudget -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBudgetActionsForBudget] -> ShowS
$cshowList :: [DescribeBudgetActionsForBudget] -> ShowS
show :: DescribeBudgetActionsForBudget -> String
$cshow :: DescribeBudgetActionsForBudget -> String
showsPrec :: Int -> DescribeBudgetActionsForBudget -> ShowS
$cshowsPrec :: Int -> DescribeBudgetActionsForBudget -> ShowS
Prelude.Show, forall x.
Rep DescribeBudgetActionsForBudget x
-> DescribeBudgetActionsForBudget
forall x.
DescribeBudgetActionsForBudget
-> Rep DescribeBudgetActionsForBudget x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeBudgetActionsForBudget x
-> DescribeBudgetActionsForBudget
$cfrom :: forall x.
DescribeBudgetActionsForBudget
-> Rep DescribeBudgetActionsForBudget x
Prelude.Generic)

-- |
-- Create a value of 'DescribeBudgetActionsForBudget' 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', 'describeBudgetActionsForBudget_maxResults' - Undocumented member.
--
-- 'nextToken', 'describeBudgetActionsForBudget_nextToken' - Undocumented member.
--
-- 'accountId', 'describeBudgetActionsForBudget_accountId' - Undocumented member.
--
-- 'budgetName', 'describeBudgetActionsForBudget_budgetName' - Undocumented member.
newDescribeBudgetActionsForBudget ::
  -- | 'accountId'
  Prelude.Text ->
  -- | 'budgetName'
  Prelude.Text ->
  DescribeBudgetActionsForBudget
newDescribeBudgetActionsForBudget :: Text -> Text -> DescribeBudgetActionsForBudget
newDescribeBudgetActionsForBudget
  Text
pAccountId_
  Text
pBudgetName_ =
    DescribeBudgetActionsForBudget'
      { $sel:maxResults:DescribeBudgetActionsForBudget' :: Maybe Natural
maxResults =
          forall a. Maybe a
Prelude.Nothing,
        $sel:nextToken:DescribeBudgetActionsForBudget' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
        $sel:accountId:DescribeBudgetActionsForBudget' :: Text
accountId = Text
pAccountId_,
        $sel:budgetName:DescribeBudgetActionsForBudget' :: Text
budgetName = Text
pBudgetName_
      }

-- | Undocumented member.
describeBudgetActionsForBudget_maxResults :: Lens.Lens' DescribeBudgetActionsForBudget (Prelude.Maybe Prelude.Natural)
describeBudgetActionsForBudget_maxResults :: Lens' DescribeBudgetActionsForBudget (Maybe Natural)
describeBudgetActionsForBudget_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetActionsForBudget' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeBudgetActionsForBudget
s@DescribeBudgetActionsForBudget' {} Maybe Natural
a -> DescribeBudgetActionsForBudget
s {$sel:maxResults:DescribeBudgetActionsForBudget' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeBudgetActionsForBudget)

-- | Undocumented member.
describeBudgetActionsForBudget_nextToken :: Lens.Lens' DescribeBudgetActionsForBudget (Prelude.Maybe Prelude.Text)
describeBudgetActionsForBudget_nextToken :: Lens' DescribeBudgetActionsForBudget (Maybe Text)
describeBudgetActionsForBudget_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetActionsForBudget' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeBudgetActionsForBudget
s@DescribeBudgetActionsForBudget' {} Maybe Text
a -> DescribeBudgetActionsForBudget
s {$sel:nextToken:DescribeBudgetActionsForBudget' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeBudgetActionsForBudget)

-- | Undocumented member.
describeBudgetActionsForBudget_accountId :: Lens.Lens' DescribeBudgetActionsForBudget Prelude.Text
describeBudgetActionsForBudget_accountId :: Lens' DescribeBudgetActionsForBudget Text
describeBudgetActionsForBudget_accountId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetActionsForBudget' {Text
accountId :: Text
$sel:accountId:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Text
accountId} -> Text
accountId) (\s :: DescribeBudgetActionsForBudget
s@DescribeBudgetActionsForBudget' {} Text
a -> DescribeBudgetActionsForBudget
s {$sel:accountId:DescribeBudgetActionsForBudget' :: Text
accountId = Text
a} :: DescribeBudgetActionsForBudget)

-- | Undocumented member.
describeBudgetActionsForBudget_budgetName :: Lens.Lens' DescribeBudgetActionsForBudget Prelude.Text
describeBudgetActionsForBudget_budgetName :: Lens' DescribeBudgetActionsForBudget Text
describeBudgetActionsForBudget_budgetName = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetActionsForBudget' {Text
budgetName :: Text
$sel:budgetName:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Text
budgetName} -> Text
budgetName) (\s :: DescribeBudgetActionsForBudget
s@DescribeBudgetActionsForBudget' {} Text
a -> DescribeBudgetActionsForBudget
s {$sel:budgetName:DescribeBudgetActionsForBudget' :: Text
budgetName = Text
a} :: DescribeBudgetActionsForBudget)

instance Core.AWSPager DescribeBudgetActionsForBudget where
  page :: DescribeBudgetActionsForBudget
-> AWSResponse DescribeBudgetActionsForBudget
-> Maybe DescribeBudgetActionsForBudget
page DescribeBudgetActionsForBudget
rq AWSResponse DescribeBudgetActionsForBudget
rs
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeBudgetActionsForBudget
rs
            forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeBudgetActionsForBudgetResponse (Maybe Text)
describeBudgetActionsForBudgetResponse_nextToken
            forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just
        ) =
        forall a. Maybe a
Prelude.Nothing
    | forall a. AWSTruncated a => a -> Bool
Core.stop
        ( AWSResponse DescribeBudgetActionsForBudget
rs
            forall s a. s -> Getting a s a -> a
Lens.^. Lens' DescribeBudgetActionsForBudgetResponse [Action]
describeBudgetActionsForBudgetResponse_actions
        ) =
        forall a. Maybe a
Prelude.Nothing
    | Bool
Prelude.otherwise =
        forall a. a -> Maybe a
Prelude.Just
          forall a b. (a -> b) -> a -> b
Prelude.$ DescribeBudgetActionsForBudget
rq
          forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeBudgetActionsForBudget (Maybe Text)
describeBudgetActionsForBudget_nextToken
          forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeBudgetActionsForBudget
rs
          forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeBudgetActionsForBudgetResponse (Maybe Text)
describeBudgetActionsForBudgetResponse_nextToken
          forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall a b. Prism (Maybe a) (Maybe b) a b
Lens._Just

instance
  Core.AWSRequest
    DescribeBudgetActionsForBudget
  where
  type
    AWSResponse DescribeBudgetActionsForBudget =
      DescribeBudgetActionsForBudgetResponse
  request :: (Service -> Service)
-> DescribeBudgetActionsForBudget
-> Request DescribeBudgetActionsForBudget
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 DescribeBudgetActionsForBudget
-> ClientResponse ClientBody
-> m (Either
        Error
        (ClientResponse (AWSResponse DescribeBudgetActionsForBudget)))
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
-> Int -> [Action] -> DescribeBudgetActionsForBudgetResponse
DescribeBudgetActionsForBudgetResponse'
            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.<*> (forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
            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
"Actions" forall (f :: * -> *) a. Functor f => f (Maybe a) -> a -> f a
Core..!@ forall a. Monoid a => a
Prelude.mempty)
      )

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

instance
  Prelude.NFData
    DescribeBudgetActionsForBudget
  where
  rnf :: DescribeBudgetActionsForBudget -> ()
rnf DescribeBudgetActionsForBudget' {Maybe Natural
Maybe Text
Text
budgetName :: Text
accountId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:budgetName:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Text
$sel:accountId:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Text
$sel:nextToken:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Maybe Text
$sel:maxResults:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Maybe Natural
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
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
accountId
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
budgetName

instance
  Data.ToHeaders
    DescribeBudgetActionsForBudget
  where
  toHeaders :: DescribeBudgetActionsForBudget -> 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
"AWSBudgetServiceGateway.DescribeBudgetActionsForBudget" ::
                          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 DescribeBudgetActionsForBudget where
  toJSON :: DescribeBudgetActionsForBudget -> Value
toJSON DescribeBudgetActionsForBudget' {Maybe Natural
Maybe Text
Text
budgetName :: Text
accountId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:budgetName:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Text
$sel:accountId:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Text
$sel:nextToken:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Maybe Text
$sel:maxResults:DescribeBudgetActionsForBudget' :: DescribeBudgetActionsForBudget -> Maybe Natural
..} =
    [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 Natural
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
"AccountId" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
accountId),
            forall a. a -> Maybe a
Prelude.Just (Key
"BudgetName" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
budgetName)
          ]
      )

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

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

-- | /See:/ 'newDescribeBudgetActionsForBudgetResponse' smart constructor.
data DescribeBudgetActionsForBudgetResponse = DescribeBudgetActionsForBudgetResponse'
  { DescribeBudgetActionsForBudgetResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
    -- | The response's http status code.
    DescribeBudgetActionsForBudgetResponse -> Int
httpStatus :: Prelude.Int,
    -- | A list of the budget action resources information.
    DescribeBudgetActionsForBudgetResponse -> [Action]
actions :: [Action]
  }
  deriving (DescribeBudgetActionsForBudgetResponse
-> DescribeBudgetActionsForBudgetResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBudgetActionsForBudgetResponse
-> DescribeBudgetActionsForBudgetResponse -> Bool
$c/= :: DescribeBudgetActionsForBudgetResponse
-> DescribeBudgetActionsForBudgetResponse -> Bool
== :: DescribeBudgetActionsForBudgetResponse
-> DescribeBudgetActionsForBudgetResponse -> Bool
$c== :: DescribeBudgetActionsForBudgetResponse
-> DescribeBudgetActionsForBudgetResponse -> Bool
Prelude.Eq, Int -> DescribeBudgetActionsForBudgetResponse -> ShowS
[DescribeBudgetActionsForBudgetResponse] -> ShowS
DescribeBudgetActionsForBudgetResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBudgetActionsForBudgetResponse] -> ShowS
$cshowList :: [DescribeBudgetActionsForBudgetResponse] -> ShowS
show :: DescribeBudgetActionsForBudgetResponse -> String
$cshow :: DescribeBudgetActionsForBudgetResponse -> String
showsPrec :: Int -> DescribeBudgetActionsForBudgetResponse -> ShowS
$cshowsPrec :: Int -> DescribeBudgetActionsForBudgetResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeBudgetActionsForBudgetResponse x
-> DescribeBudgetActionsForBudgetResponse
forall x.
DescribeBudgetActionsForBudgetResponse
-> Rep DescribeBudgetActionsForBudgetResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeBudgetActionsForBudgetResponse x
-> DescribeBudgetActionsForBudgetResponse
$cfrom :: forall x.
DescribeBudgetActionsForBudgetResponse
-> Rep DescribeBudgetActionsForBudgetResponse x
Prelude.Generic)

-- |
-- Create a value of 'DescribeBudgetActionsForBudgetResponse' 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', 'describeBudgetActionsForBudgetResponse_nextToken' - Undocumented member.
--
-- 'httpStatus', 'describeBudgetActionsForBudgetResponse_httpStatus' - The response's http status code.
--
-- 'actions', 'describeBudgetActionsForBudgetResponse_actions' - A list of the budget action resources information.
newDescribeBudgetActionsForBudgetResponse ::
  -- | 'httpStatus'
  Prelude.Int ->
  DescribeBudgetActionsForBudgetResponse
newDescribeBudgetActionsForBudgetResponse :: Int -> DescribeBudgetActionsForBudgetResponse
newDescribeBudgetActionsForBudgetResponse
  Int
pHttpStatus_ =
    DescribeBudgetActionsForBudgetResponse'
      { $sel:nextToken:DescribeBudgetActionsForBudgetResponse' :: Maybe Text
nextToken =
          forall a. Maybe a
Prelude.Nothing,
        $sel:httpStatus:DescribeBudgetActionsForBudgetResponse' :: Int
httpStatus = Int
pHttpStatus_,
        $sel:actions:DescribeBudgetActionsForBudgetResponse' :: [Action]
actions = forall a. Monoid a => a
Prelude.mempty
      }

-- | Undocumented member.
describeBudgetActionsForBudgetResponse_nextToken :: Lens.Lens' DescribeBudgetActionsForBudgetResponse (Prelude.Maybe Prelude.Text)
describeBudgetActionsForBudgetResponse_nextToken :: Lens' DescribeBudgetActionsForBudgetResponse (Maybe Text)
describeBudgetActionsForBudgetResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetActionsForBudgetResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeBudgetActionsForBudgetResponse' :: DescribeBudgetActionsForBudgetResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeBudgetActionsForBudgetResponse
s@DescribeBudgetActionsForBudgetResponse' {} Maybe Text
a -> DescribeBudgetActionsForBudgetResponse
s {$sel:nextToken:DescribeBudgetActionsForBudgetResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeBudgetActionsForBudgetResponse)

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

-- | A list of the budget action resources information.
describeBudgetActionsForBudgetResponse_actions :: Lens.Lens' DescribeBudgetActionsForBudgetResponse [Action]
describeBudgetActionsForBudgetResponse_actions :: Lens' DescribeBudgetActionsForBudgetResponse [Action]
describeBudgetActionsForBudgetResponse_actions = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetActionsForBudgetResponse' {[Action]
actions :: [Action]
$sel:actions:DescribeBudgetActionsForBudgetResponse' :: DescribeBudgetActionsForBudgetResponse -> [Action]
actions} -> [Action]
actions) (\s :: DescribeBudgetActionsForBudgetResponse
s@DescribeBudgetActionsForBudgetResponse' {} [Action]
a -> DescribeBudgetActionsForBudgetResponse
s {$sel:actions:DescribeBudgetActionsForBudgetResponse' :: [Action]
actions = [Action]
a} :: DescribeBudgetActionsForBudgetResponse) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

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