{-# 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 #-}
module Amazonka.Budgets.DescribeBudgetNotificationsForAccount
(
DescribeBudgetNotificationsForAccount (..),
newDescribeBudgetNotificationsForAccount,
describeBudgetNotificationsForAccount_maxResults,
describeBudgetNotificationsForAccount_nextToken,
describeBudgetNotificationsForAccount_accountId,
DescribeBudgetNotificationsForAccountResponse (..),
newDescribeBudgetNotificationsForAccountResponse,
describeBudgetNotificationsForAccountResponse_budgetNotificationsForAccount,
describeBudgetNotificationsForAccountResponse_nextToken,
describeBudgetNotificationsForAccountResponse_httpStatus,
)
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
data DescribeBudgetNotificationsForAccount = DescribeBudgetNotificationsForAccount'
{
DescribeBudgetNotificationsForAccount -> Maybe Natural
maxResults :: Prelude.Maybe Prelude.Natural,
DescribeBudgetNotificationsForAccount -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeBudgetNotificationsForAccount -> Text
accountId :: Prelude.Text
}
deriving (DescribeBudgetNotificationsForAccount
-> DescribeBudgetNotificationsForAccount -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBudgetNotificationsForAccount
-> DescribeBudgetNotificationsForAccount -> Bool
$c/= :: DescribeBudgetNotificationsForAccount
-> DescribeBudgetNotificationsForAccount -> Bool
== :: DescribeBudgetNotificationsForAccount
-> DescribeBudgetNotificationsForAccount -> Bool
$c== :: DescribeBudgetNotificationsForAccount
-> DescribeBudgetNotificationsForAccount -> Bool
Prelude.Eq, ReadPrec [DescribeBudgetNotificationsForAccount]
ReadPrec DescribeBudgetNotificationsForAccount
Int -> ReadS DescribeBudgetNotificationsForAccount
ReadS [DescribeBudgetNotificationsForAccount]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeBudgetNotificationsForAccount]
$creadListPrec :: ReadPrec [DescribeBudgetNotificationsForAccount]
readPrec :: ReadPrec DescribeBudgetNotificationsForAccount
$creadPrec :: ReadPrec DescribeBudgetNotificationsForAccount
readList :: ReadS [DescribeBudgetNotificationsForAccount]
$creadList :: ReadS [DescribeBudgetNotificationsForAccount]
readsPrec :: Int -> ReadS DescribeBudgetNotificationsForAccount
$creadsPrec :: Int -> ReadS DescribeBudgetNotificationsForAccount
Prelude.Read, Int -> DescribeBudgetNotificationsForAccount -> ShowS
[DescribeBudgetNotificationsForAccount] -> ShowS
DescribeBudgetNotificationsForAccount -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBudgetNotificationsForAccount] -> ShowS
$cshowList :: [DescribeBudgetNotificationsForAccount] -> ShowS
show :: DescribeBudgetNotificationsForAccount -> String
$cshow :: DescribeBudgetNotificationsForAccount -> String
showsPrec :: Int -> DescribeBudgetNotificationsForAccount -> ShowS
$cshowsPrec :: Int -> DescribeBudgetNotificationsForAccount -> ShowS
Prelude.Show, forall x.
Rep DescribeBudgetNotificationsForAccount x
-> DescribeBudgetNotificationsForAccount
forall x.
DescribeBudgetNotificationsForAccount
-> Rep DescribeBudgetNotificationsForAccount x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeBudgetNotificationsForAccount x
-> DescribeBudgetNotificationsForAccount
$cfrom :: forall x.
DescribeBudgetNotificationsForAccount
-> Rep DescribeBudgetNotificationsForAccount x
Prelude.Generic)
newDescribeBudgetNotificationsForAccount ::
Prelude.Text ->
DescribeBudgetNotificationsForAccount
newDescribeBudgetNotificationsForAccount :: Text -> DescribeBudgetNotificationsForAccount
newDescribeBudgetNotificationsForAccount Text
pAccountId_ =
DescribeBudgetNotificationsForAccount'
{ $sel:maxResults:DescribeBudgetNotificationsForAccount' :: Maybe Natural
maxResults =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeBudgetNotificationsForAccount' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:accountId:DescribeBudgetNotificationsForAccount' :: Text
accountId = Text
pAccountId_
}
describeBudgetNotificationsForAccount_maxResults :: Lens.Lens' DescribeBudgetNotificationsForAccount (Prelude.Maybe Prelude.Natural)
describeBudgetNotificationsForAccount_maxResults :: Lens' DescribeBudgetNotificationsForAccount (Maybe Natural)
describeBudgetNotificationsForAccount_maxResults = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetNotificationsForAccount' {Maybe Natural
maxResults :: Maybe Natural
$sel:maxResults:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> Maybe Natural
maxResults} -> Maybe Natural
maxResults) (\s :: DescribeBudgetNotificationsForAccount
s@DescribeBudgetNotificationsForAccount' {} Maybe Natural
a -> DescribeBudgetNotificationsForAccount
s {$sel:maxResults:DescribeBudgetNotificationsForAccount' :: Maybe Natural
maxResults = Maybe Natural
a} :: DescribeBudgetNotificationsForAccount)
describeBudgetNotificationsForAccount_nextToken :: Lens.Lens' DescribeBudgetNotificationsForAccount (Prelude.Maybe Prelude.Text)
describeBudgetNotificationsForAccount_nextToken :: Lens' DescribeBudgetNotificationsForAccount (Maybe Text)
describeBudgetNotificationsForAccount_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetNotificationsForAccount' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeBudgetNotificationsForAccount
s@DescribeBudgetNotificationsForAccount' {} Maybe Text
a -> DescribeBudgetNotificationsForAccount
s {$sel:nextToken:DescribeBudgetNotificationsForAccount' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeBudgetNotificationsForAccount)
describeBudgetNotificationsForAccount_accountId :: Lens.Lens' DescribeBudgetNotificationsForAccount Prelude.Text
describeBudgetNotificationsForAccount_accountId :: Lens' DescribeBudgetNotificationsForAccount Text
describeBudgetNotificationsForAccount_accountId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetNotificationsForAccount' {Text
accountId :: Text
$sel:accountId:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> Text
accountId} -> Text
accountId) (\s :: DescribeBudgetNotificationsForAccount
s@DescribeBudgetNotificationsForAccount' {} Text
a -> DescribeBudgetNotificationsForAccount
s {$sel:accountId:DescribeBudgetNotificationsForAccount' :: Text
accountId = Text
a} :: DescribeBudgetNotificationsForAccount)
instance
Core.AWSPager
DescribeBudgetNotificationsForAccount
where
page :: DescribeBudgetNotificationsForAccount
-> AWSResponse DescribeBudgetNotificationsForAccount
-> Maybe DescribeBudgetNotificationsForAccount
page DescribeBudgetNotificationsForAccount
rq AWSResponse DescribeBudgetNotificationsForAccount
rs
| forall a. AWSTruncated a => a -> Bool
Core.stop
( AWSResponse DescribeBudgetNotificationsForAccount
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeBudgetNotificationsForAccountResponse (Maybe Text)
describeBudgetNotificationsForAccountResponse_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 DescribeBudgetNotificationsForAccount
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens'
DescribeBudgetNotificationsForAccountResponse
(Maybe [BudgetNotificationsForAccount])
describeBudgetNotificationsForAccountResponse_budgetNotificationsForAccount
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
| Bool
Prelude.otherwise =
forall a. a -> Maybe a
Prelude.Just
forall a b. (a -> b) -> a -> b
Prelude.$ DescribeBudgetNotificationsForAccount
rq
forall a b. a -> (a -> b) -> b
Prelude.& Lens' DescribeBudgetNotificationsForAccount (Maybe Text)
describeBudgetNotificationsForAccount_nextToken
forall s t a b. ASetter s t a b -> b -> s -> t
Lens..~ AWSResponse DescribeBudgetNotificationsForAccount
rs
forall s a. s -> Getting (First a) s a -> Maybe a
Lens.^? Lens' DescribeBudgetNotificationsForAccountResponse (Maybe Text)
describeBudgetNotificationsForAccountResponse_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
DescribeBudgetNotificationsForAccount
where
type
AWSResponse
DescribeBudgetNotificationsForAccount =
DescribeBudgetNotificationsForAccountResponse
request :: (Service -> Service)
-> DescribeBudgetNotificationsForAccount
-> Request DescribeBudgetNotificationsForAccount
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 DescribeBudgetNotificationsForAccount
-> ClientResponse ClientBody
-> m (Either
Error
(ClientResponse
(AWSResponse DescribeBudgetNotificationsForAccount)))
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 [BudgetNotificationsForAccount]
-> Maybe Text
-> Int
-> DescribeBudgetNotificationsForAccountResponse
DescribeBudgetNotificationsForAccountResponse'
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
"BudgetNotificationsForAccount"
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
DescribeBudgetNotificationsForAccount
where
hashWithSalt :: Int -> DescribeBudgetNotificationsForAccount -> Int
hashWithSalt
Int
_salt
DescribeBudgetNotificationsForAccount' {Maybe Natural
Maybe Text
Text
accountId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:accountId:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> Text
$sel:nextToken:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> Maybe Text
$sel:maxResults:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> 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
instance
Prelude.NFData
DescribeBudgetNotificationsForAccount
where
rnf :: DescribeBudgetNotificationsForAccount -> ()
rnf DescribeBudgetNotificationsForAccount' {Maybe Natural
Maybe Text
Text
accountId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:accountId:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> Text
$sel:nextToken:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> Maybe Text
$sel:maxResults:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> 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
instance
Data.ToHeaders
DescribeBudgetNotificationsForAccount
where
toHeaders :: DescribeBudgetNotificationsForAccount -> 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.DescribeBudgetNotificationsForAccount" ::
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
DescribeBudgetNotificationsForAccount
where
toJSON :: DescribeBudgetNotificationsForAccount -> Value
toJSON DescribeBudgetNotificationsForAccount' {Maybe Natural
Maybe Text
Text
accountId :: Text
nextToken :: Maybe Text
maxResults :: Maybe Natural
$sel:accountId:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> Text
$sel:nextToken:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> Maybe Text
$sel:maxResults:DescribeBudgetNotificationsForAccount' :: DescribeBudgetNotificationsForAccount -> 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)
]
)
instance
Data.ToPath
DescribeBudgetNotificationsForAccount
where
toPath :: DescribeBudgetNotificationsForAccount -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/"
instance
Data.ToQuery
DescribeBudgetNotificationsForAccount
where
toQuery :: DescribeBudgetNotificationsForAccount -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data DescribeBudgetNotificationsForAccountResponse = DescribeBudgetNotificationsForAccountResponse'
{
DescribeBudgetNotificationsForAccountResponse
-> Maybe [BudgetNotificationsForAccount]
budgetNotificationsForAccount :: Prelude.Maybe [BudgetNotificationsForAccount],
DescribeBudgetNotificationsForAccountResponse -> Maybe Text
nextToken :: Prelude.Maybe Prelude.Text,
DescribeBudgetNotificationsForAccountResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeBudgetNotificationsForAccountResponse
-> DescribeBudgetNotificationsForAccountResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBudgetNotificationsForAccountResponse
-> DescribeBudgetNotificationsForAccountResponse -> Bool
$c/= :: DescribeBudgetNotificationsForAccountResponse
-> DescribeBudgetNotificationsForAccountResponse -> Bool
== :: DescribeBudgetNotificationsForAccountResponse
-> DescribeBudgetNotificationsForAccountResponse -> Bool
$c== :: DescribeBudgetNotificationsForAccountResponse
-> DescribeBudgetNotificationsForAccountResponse -> Bool
Prelude.Eq, ReadPrec [DescribeBudgetNotificationsForAccountResponse]
ReadPrec DescribeBudgetNotificationsForAccountResponse
Int -> ReadS DescribeBudgetNotificationsForAccountResponse
ReadS [DescribeBudgetNotificationsForAccountResponse]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeBudgetNotificationsForAccountResponse]
$creadListPrec :: ReadPrec [DescribeBudgetNotificationsForAccountResponse]
readPrec :: ReadPrec DescribeBudgetNotificationsForAccountResponse
$creadPrec :: ReadPrec DescribeBudgetNotificationsForAccountResponse
readList :: ReadS [DescribeBudgetNotificationsForAccountResponse]
$creadList :: ReadS [DescribeBudgetNotificationsForAccountResponse]
readsPrec :: Int -> ReadS DescribeBudgetNotificationsForAccountResponse
$creadsPrec :: Int -> ReadS DescribeBudgetNotificationsForAccountResponse
Prelude.Read, Int -> DescribeBudgetNotificationsForAccountResponse -> ShowS
[DescribeBudgetNotificationsForAccountResponse] -> ShowS
DescribeBudgetNotificationsForAccountResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBudgetNotificationsForAccountResponse] -> ShowS
$cshowList :: [DescribeBudgetNotificationsForAccountResponse] -> ShowS
show :: DescribeBudgetNotificationsForAccountResponse -> String
$cshow :: DescribeBudgetNotificationsForAccountResponse -> String
showsPrec :: Int -> DescribeBudgetNotificationsForAccountResponse -> ShowS
$cshowsPrec :: Int -> DescribeBudgetNotificationsForAccountResponse -> ShowS
Prelude.Show, forall x.
Rep DescribeBudgetNotificationsForAccountResponse x
-> DescribeBudgetNotificationsForAccountResponse
forall x.
DescribeBudgetNotificationsForAccountResponse
-> Rep DescribeBudgetNotificationsForAccountResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeBudgetNotificationsForAccountResponse x
-> DescribeBudgetNotificationsForAccountResponse
$cfrom :: forall x.
DescribeBudgetNotificationsForAccountResponse
-> Rep DescribeBudgetNotificationsForAccountResponse x
Prelude.Generic)
newDescribeBudgetNotificationsForAccountResponse ::
Prelude.Int ->
DescribeBudgetNotificationsForAccountResponse
newDescribeBudgetNotificationsForAccountResponse :: Int -> DescribeBudgetNotificationsForAccountResponse
newDescribeBudgetNotificationsForAccountResponse
Int
pHttpStatus_ =
DescribeBudgetNotificationsForAccountResponse'
{ $sel:budgetNotificationsForAccount:DescribeBudgetNotificationsForAccountResponse' :: Maybe [BudgetNotificationsForAccount]
budgetNotificationsForAccount =
forall a. Maybe a
Prelude.Nothing,
$sel:nextToken:DescribeBudgetNotificationsForAccountResponse' :: Maybe Text
nextToken = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeBudgetNotificationsForAccountResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeBudgetNotificationsForAccountResponse_budgetNotificationsForAccount :: Lens.Lens' DescribeBudgetNotificationsForAccountResponse (Prelude.Maybe [BudgetNotificationsForAccount])
describeBudgetNotificationsForAccountResponse_budgetNotificationsForAccount :: Lens'
DescribeBudgetNotificationsForAccountResponse
(Maybe [BudgetNotificationsForAccount])
describeBudgetNotificationsForAccountResponse_budgetNotificationsForAccount = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetNotificationsForAccountResponse' {Maybe [BudgetNotificationsForAccount]
budgetNotificationsForAccount :: Maybe [BudgetNotificationsForAccount]
$sel:budgetNotificationsForAccount:DescribeBudgetNotificationsForAccountResponse' :: DescribeBudgetNotificationsForAccountResponse
-> Maybe [BudgetNotificationsForAccount]
budgetNotificationsForAccount} -> Maybe [BudgetNotificationsForAccount]
budgetNotificationsForAccount) (\s :: DescribeBudgetNotificationsForAccountResponse
s@DescribeBudgetNotificationsForAccountResponse' {} Maybe [BudgetNotificationsForAccount]
a -> DescribeBudgetNotificationsForAccountResponse
s {$sel:budgetNotificationsForAccount:DescribeBudgetNotificationsForAccountResponse' :: Maybe [BudgetNotificationsForAccount]
budgetNotificationsForAccount = Maybe [BudgetNotificationsForAccount]
a} :: DescribeBudgetNotificationsForAccountResponse) 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
describeBudgetNotificationsForAccountResponse_nextToken :: Lens.Lens' DescribeBudgetNotificationsForAccountResponse (Prelude.Maybe Prelude.Text)
describeBudgetNotificationsForAccountResponse_nextToken :: Lens' DescribeBudgetNotificationsForAccountResponse (Maybe Text)
describeBudgetNotificationsForAccountResponse_nextToken = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetNotificationsForAccountResponse' {Maybe Text
nextToken :: Maybe Text
$sel:nextToken:DescribeBudgetNotificationsForAccountResponse' :: DescribeBudgetNotificationsForAccountResponse -> Maybe Text
nextToken} -> Maybe Text
nextToken) (\s :: DescribeBudgetNotificationsForAccountResponse
s@DescribeBudgetNotificationsForAccountResponse' {} Maybe Text
a -> DescribeBudgetNotificationsForAccountResponse
s {$sel:nextToken:DescribeBudgetNotificationsForAccountResponse' :: Maybe Text
nextToken = Maybe Text
a} :: DescribeBudgetNotificationsForAccountResponse)
describeBudgetNotificationsForAccountResponse_httpStatus :: Lens.Lens' DescribeBudgetNotificationsForAccountResponse Prelude.Int
describeBudgetNotificationsForAccountResponse_httpStatus :: Lens' DescribeBudgetNotificationsForAccountResponse Int
describeBudgetNotificationsForAccountResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBudgetNotificationsForAccountResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeBudgetNotificationsForAccountResponse' :: DescribeBudgetNotificationsForAccountResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeBudgetNotificationsForAccountResponse
s@DescribeBudgetNotificationsForAccountResponse' {} Int
a -> DescribeBudgetNotificationsForAccountResponse
s {$sel:httpStatus:DescribeBudgetNotificationsForAccountResponse' :: Int
httpStatus = Int
a} :: DescribeBudgetNotificationsForAccountResponse)
instance
Prelude.NFData
DescribeBudgetNotificationsForAccountResponse
where
rnf :: DescribeBudgetNotificationsForAccountResponse -> ()
rnf
DescribeBudgetNotificationsForAccountResponse' {Int
Maybe [BudgetNotificationsForAccount]
Maybe Text
httpStatus :: Int
nextToken :: Maybe Text
budgetNotificationsForAccount :: Maybe [BudgetNotificationsForAccount]
$sel:httpStatus:DescribeBudgetNotificationsForAccountResponse' :: DescribeBudgetNotificationsForAccountResponse -> Int
$sel:nextToken:DescribeBudgetNotificationsForAccountResponse' :: DescribeBudgetNotificationsForAccountResponse -> Maybe Text
$sel:budgetNotificationsForAccount:DescribeBudgetNotificationsForAccountResponse' :: DescribeBudgetNotificationsForAccountResponse
-> Maybe [BudgetNotificationsForAccount]
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe [BudgetNotificationsForAccount]
budgetNotificationsForAccount
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