{-# 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.BillingConductor.UpdateBillingGroup
(
UpdateBillingGroup (..),
newUpdateBillingGroup,
updateBillingGroup_computationPreference,
updateBillingGroup_description,
updateBillingGroup_name,
updateBillingGroup_status,
updateBillingGroup_arn,
UpdateBillingGroupResponse (..),
newUpdateBillingGroupResponse,
updateBillingGroupResponse_arn,
updateBillingGroupResponse_description,
updateBillingGroupResponse_lastModifiedTime,
updateBillingGroupResponse_name,
updateBillingGroupResponse_pricingPlanArn,
updateBillingGroupResponse_primaryAccountId,
updateBillingGroupResponse_size,
updateBillingGroupResponse_status,
updateBillingGroupResponse_statusReason,
updateBillingGroupResponse_httpStatus,
)
where
import Amazonka.BillingConductor.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 UpdateBillingGroup = UpdateBillingGroup'
{
UpdateBillingGroup -> Maybe ComputationPreference
computationPreference :: Prelude.Maybe ComputationPreference,
UpdateBillingGroup -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Data.Sensitive Prelude.Text),
UpdateBillingGroup -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Data.Sensitive Prelude.Text),
UpdateBillingGroup -> Maybe BillingGroupStatus
status :: Prelude.Maybe BillingGroupStatus,
UpdateBillingGroup -> Text
arn :: Prelude.Text
}
deriving (UpdateBillingGroup -> UpdateBillingGroup -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateBillingGroup -> UpdateBillingGroup -> Bool
$c/= :: UpdateBillingGroup -> UpdateBillingGroup -> Bool
== :: UpdateBillingGroup -> UpdateBillingGroup -> Bool
$c== :: UpdateBillingGroup -> UpdateBillingGroup -> Bool
Prelude.Eq, Int -> UpdateBillingGroup -> ShowS
[UpdateBillingGroup] -> ShowS
UpdateBillingGroup -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateBillingGroup] -> ShowS
$cshowList :: [UpdateBillingGroup] -> ShowS
show :: UpdateBillingGroup -> String
$cshow :: UpdateBillingGroup -> String
showsPrec :: Int -> UpdateBillingGroup -> ShowS
$cshowsPrec :: Int -> UpdateBillingGroup -> ShowS
Prelude.Show, forall x. Rep UpdateBillingGroup x -> UpdateBillingGroup
forall x. UpdateBillingGroup -> Rep UpdateBillingGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep UpdateBillingGroup x -> UpdateBillingGroup
$cfrom :: forall x. UpdateBillingGroup -> Rep UpdateBillingGroup x
Prelude.Generic)
newUpdateBillingGroup ::
Prelude.Text ->
UpdateBillingGroup
newUpdateBillingGroup :: Text -> UpdateBillingGroup
newUpdateBillingGroup Text
pArn_ =
UpdateBillingGroup'
{ $sel:computationPreference:UpdateBillingGroup' :: Maybe ComputationPreference
computationPreference =
forall a. Maybe a
Prelude.Nothing,
$sel:description:UpdateBillingGroup' :: Maybe (Sensitive Text)
description = forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateBillingGroup' :: Maybe (Sensitive Text)
name = forall a. Maybe a
Prelude.Nothing,
$sel:status:UpdateBillingGroup' :: Maybe BillingGroupStatus
status = forall a. Maybe a
Prelude.Nothing,
$sel:arn:UpdateBillingGroup' :: Text
arn = Text
pArn_
}
updateBillingGroup_computationPreference :: Lens.Lens' UpdateBillingGroup (Prelude.Maybe ComputationPreference)
updateBillingGroup_computationPreference :: Lens' UpdateBillingGroup (Maybe ComputationPreference)
updateBillingGroup_computationPreference = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroup' {Maybe ComputationPreference
computationPreference :: Maybe ComputationPreference
$sel:computationPreference:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe ComputationPreference
computationPreference} -> Maybe ComputationPreference
computationPreference) (\s :: UpdateBillingGroup
s@UpdateBillingGroup' {} Maybe ComputationPreference
a -> UpdateBillingGroup
s {$sel:computationPreference:UpdateBillingGroup' :: Maybe ComputationPreference
computationPreference = Maybe ComputationPreference
a} :: UpdateBillingGroup)
updateBillingGroup_description :: Lens.Lens' UpdateBillingGroup (Prelude.Maybe Prelude.Text)
updateBillingGroup_description :: Lens' UpdateBillingGroup (Maybe Text)
updateBillingGroup_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroup' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: UpdateBillingGroup
s@UpdateBillingGroup' {} Maybe (Sensitive Text)
a -> UpdateBillingGroup
s {$sel:description:UpdateBillingGroup' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: UpdateBillingGroup) 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 a. Iso' (Sensitive a) a
Data._Sensitive
updateBillingGroup_name :: Lens.Lens' UpdateBillingGroup (Prelude.Maybe Prelude.Text)
updateBillingGroup_name :: Lens' UpdateBillingGroup (Maybe Text)
updateBillingGroup_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroup' {Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:name:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe (Sensitive Text)
name} -> Maybe (Sensitive Text)
name) (\s :: UpdateBillingGroup
s@UpdateBillingGroup' {} Maybe (Sensitive Text)
a -> UpdateBillingGroup
s {$sel:name:UpdateBillingGroup' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
a} :: UpdateBillingGroup) 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 a. Iso' (Sensitive a) a
Data._Sensitive
updateBillingGroup_status :: Lens.Lens' UpdateBillingGroup (Prelude.Maybe BillingGroupStatus)
updateBillingGroup_status :: Lens' UpdateBillingGroup (Maybe BillingGroupStatus)
updateBillingGroup_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroup' {Maybe BillingGroupStatus
status :: Maybe BillingGroupStatus
$sel:status:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe BillingGroupStatus
status} -> Maybe BillingGroupStatus
status) (\s :: UpdateBillingGroup
s@UpdateBillingGroup' {} Maybe BillingGroupStatus
a -> UpdateBillingGroup
s {$sel:status:UpdateBillingGroup' :: Maybe BillingGroupStatus
status = Maybe BillingGroupStatus
a} :: UpdateBillingGroup)
updateBillingGroup_arn :: Lens.Lens' UpdateBillingGroup Prelude.Text
updateBillingGroup_arn :: Lens' UpdateBillingGroup Text
updateBillingGroup_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroup' {Text
arn :: Text
$sel:arn:UpdateBillingGroup' :: UpdateBillingGroup -> Text
arn} -> Text
arn) (\s :: UpdateBillingGroup
s@UpdateBillingGroup' {} Text
a -> UpdateBillingGroup
s {$sel:arn:UpdateBillingGroup' :: Text
arn = Text
a} :: UpdateBillingGroup)
instance Core.AWSRequest UpdateBillingGroup where
type
AWSResponse UpdateBillingGroup =
UpdateBillingGroupResponse
request :: (Service -> Service)
-> UpdateBillingGroup -> Request UpdateBillingGroup
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 UpdateBillingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse UpdateBillingGroup)))
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 (Sensitive Text)
-> Maybe Integer
-> Maybe (Sensitive Text)
-> Maybe Text
-> Maybe Text
-> Maybe Natural
-> Maybe BillingGroupStatus
-> Maybe Text
-> Int
-> UpdateBillingGroupResponse
UpdateBillingGroupResponse'
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
"Arn")
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
"Description")
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
"LastModifiedTime")
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
"Name")
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
"PricingPlanArn")
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
"PrimaryAccountId")
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
"Size")
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
"Status")
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
"StatusReason")
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 UpdateBillingGroup where
hashWithSalt :: Int -> UpdateBillingGroup -> Int
hashWithSalt Int
_salt UpdateBillingGroup' {Maybe (Sensitive Text)
Maybe BillingGroupStatus
Maybe ComputationPreference
Text
arn :: Text
status :: Maybe BillingGroupStatus
name :: Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
computationPreference :: Maybe ComputationPreference
$sel:arn:UpdateBillingGroup' :: UpdateBillingGroup -> Text
$sel:status:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe BillingGroupStatus
$sel:name:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe (Sensitive Text)
$sel:description:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe (Sensitive Text)
$sel:computationPreference:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe ComputationPreference
..} =
Int
_salt
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe ComputationPreference
computationPreference
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
description
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe (Sensitive Text)
name
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe BillingGroupStatus
status
forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Text
arn
instance Prelude.NFData UpdateBillingGroup where
rnf :: UpdateBillingGroup -> ()
rnf UpdateBillingGroup' {Maybe (Sensitive Text)
Maybe BillingGroupStatus
Maybe ComputationPreference
Text
arn :: Text
status :: Maybe BillingGroupStatus
name :: Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
computationPreference :: Maybe ComputationPreference
$sel:arn:UpdateBillingGroup' :: UpdateBillingGroup -> Text
$sel:status:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe BillingGroupStatus
$sel:name:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe (Sensitive Text)
$sel:description:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe (Sensitive Text)
$sel:computationPreference:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe ComputationPreference
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe ComputationPreference
computationPreference
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BillingGroupStatus
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Text
arn
instance Data.ToHeaders UpdateBillingGroup where
toHeaders :: UpdateBillingGroup -> ResponseHeaders
toHeaders =
forall a b. a -> b -> a
Prelude.const
( forall a. Monoid a => [a] -> a
Prelude.mconcat
[ HeaderName
"Content-Type"
forall a. ToHeader a => HeaderName -> a -> ResponseHeaders
Data.=# ( ByteString
"application/x-amz-json-1.1" ::
Prelude.ByteString
)
]
)
instance Data.ToJSON UpdateBillingGroup where
toJSON :: UpdateBillingGroup -> Value
toJSON UpdateBillingGroup' {Maybe (Sensitive Text)
Maybe BillingGroupStatus
Maybe ComputationPreference
Text
arn :: Text
status :: Maybe BillingGroupStatus
name :: Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
computationPreference :: Maybe ComputationPreference
$sel:arn:UpdateBillingGroup' :: UpdateBillingGroup -> Text
$sel:status:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe BillingGroupStatus
$sel:name:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe (Sensitive Text)
$sel:description:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe (Sensitive Text)
$sel:computationPreference:UpdateBillingGroup' :: UpdateBillingGroup -> Maybe ComputationPreference
..} =
[Pair] -> Value
Data.object
( forall a. [Maybe a] -> [a]
Prelude.catMaybes
[ (Key
"ComputationPreference" 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 ComputationPreference
computationPreference,
(Key
"Description" 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 (Sensitive Text)
description,
(Key
"Name" 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 (Sensitive Text)
name,
(Key
"Status" 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 BillingGroupStatus
status,
forall a. a -> Maybe a
Prelude.Just (Key
"Arn" forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
Data..= Text
arn)
]
)
instance Data.ToPath UpdateBillingGroup where
toPath :: UpdateBillingGroup -> ByteString
toPath = forall a b. a -> b -> a
Prelude.const ByteString
"/update-billing-group"
instance Data.ToQuery UpdateBillingGroup where
toQuery :: UpdateBillingGroup -> QueryString
toQuery = forall a b. a -> b -> a
Prelude.const forall a. Monoid a => a
Prelude.mempty
data UpdateBillingGroupResponse = UpdateBillingGroupResponse'
{
UpdateBillingGroupResponse -> Maybe Text
arn :: Prelude.Maybe Prelude.Text,
UpdateBillingGroupResponse -> Maybe (Sensitive Text)
description :: Prelude.Maybe (Data.Sensitive Prelude.Text),
UpdateBillingGroupResponse -> Maybe Integer
lastModifiedTime :: Prelude.Maybe Prelude.Integer,
UpdateBillingGroupResponse -> Maybe (Sensitive Text)
name :: Prelude.Maybe (Data.Sensitive Prelude.Text),
UpdateBillingGroupResponse -> Maybe Text
pricingPlanArn :: Prelude.Maybe Prelude.Text,
UpdateBillingGroupResponse -> Maybe Text
primaryAccountId :: Prelude.Maybe Prelude.Text,
UpdateBillingGroupResponse -> Maybe Natural
size :: Prelude.Maybe Prelude.Natural,
UpdateBillingGroupResponse -> Maybe BillingGroupStatus
status :: Prelude.Maybe BillingGroupStatus,
UpdateBillingGroupResponse -> Maybe Text
statusReason :: Prelude.Maybe Prelude.Text,
UpdateBillingGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (UpdateBillingGroupResponse -> UpdateBillingGroupResponse -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: UpdateBillingGroupResponse -> UpdateBillingGroupResponse -> Bool
$c/= :: UpdateBillingGroupResponse -> UpdateBillingGroupResponse -> Bool
== :: UpdateBillingGroupResponse -> UpdateBillingGroupResponse -> Bool
$c== :: UpdateBillingGroupResponse -> UpdateBillingGroupResponse -> Bool
Prelude.Eq, Int -> UpdateBillingGroupResponse -> ShowS
[UpdateBillingGroupResponse] -> ShowS
UpdateBillingGroupResponse -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [UpdateBillingGroupResponse] -> ShowS
$cshowList :: [UpdateBillingGroupResponse] -> ShowS
show :: UpdateBillingGroupResponse -> String
$cshow :: UpdateBillingGroupResponse -> String
showsPrec :: Int -> UpdateBillingGroupResponse -> ShowS
$cshowsPrec :: Int -> UpdateBillingGroupResponse -> ShowS
Prelude.Show, forall x.
Rep UpdateBillingGroupResponse x -> UpdateBillingGroupResponse
forall x.
UpdateBillingGroupResponse -> Rep UpdateBillingGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep UpdateBillingGroupResponse x -> UpdateBillingGroupResponse
$cfrom :: forall x.
UpdateBillingGroupResponse -> Rep UpdateBillingGroupResponse x
Prelude.Generic)
newUpdateBillingGroupResponse ::
Prelude.Int ->
UpdateBillingGroupResponse
newUpdateBillingGroupResponse :: Int -> UpdateBillingGroupResponse
newUpdateBillingGroupResponse Int
pHttpStatus_ =
UpdateBillingGroupResponse'
{ $sel:arn:UpdateBillingGroupResponse' :: Maybe Text
arn = forall a. Maybe a
Prelude.Nothing,
$sel:description:UpdateBillingGroupResponse' :: Maybe (Sensitive Text)
description = forall a. Maybe a
Prelude.Nothing,
$sel:lastModifiedTime:UpdateBillingGroupResponse' :: Maybe Integer
lastModifiedTime = forall a. Maybe a
Prelude.Nothing,
$sel:name:UpdateBillingGroupResponse' :: Maybe (Sensitive Text)
name = forall a. Maybe a
Prelude.Nothing,
$sel:pricingPlanArn:UpdateBillingGroupResponse' :: Maybe Text
pricingPlanArn = forall a. Maybe a
Prelude.Nothing,
$sel:primaryAccountId:UpdateBillingGroupResponse' :: Maybe Text
primaryAccountId = forall a. Maybe a
Prelude.Nothing,
$sel:size:UpdateBillingGroupResponse' :: Maybe Natural
size = forall a. Maybe a
Prelude.Nothing,
$sel:status:UpdateBillingGroupResponse' :: Maybe BillingGroupStatus
status = forall a. Maybe a
Prelude.Nothing,
$sel:statusReason:UpdateBillingGroupResponse' :: Maybe Text
statusReason = forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:UpdateBillingGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
updateBillingGroupResponse_arn :: Lens.Lens' UpdateBillingGroupResponse (Prelude.Maybe Prelude.Text)
updateBillingGroupResponse_arn :: Lens' UpdateBillingGroupResponse (Maybe Text)
updateBillingGroupResponse_arn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroupResponse' {Maybe Text
arn :: Maybe Text
$sel:arn:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Text
arn} -> Maybe Text
arn) (\s :: UpdateBillingGroupResponse
s@UpdateBillingGroupResponse' {} Maybe Text
a -> UpdateBillingGroupResponse
s {$sel:arn:UpdateBillingGroupResponse' :: Maybe Text
arn = Maybe Text
a} :: UpdateBillingGroupResponse)
updateBillingGroupResponse_description :: Lens.Lens' UpdateBillingGroupResponse (Prelude.Maybe Prelude.Text)
updateBillingGroupResponse_description :: Lens' UpdateBillingGroupResponse (Maybe Text)
updateBillingGroupResponse_description = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroupResponse' {Maybe (Sensitive Text)
description :: Maybe (Sensitive Text)
$sel:description:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe (Sensitive Text)
description} -> Maybe (Sensitive Text)
description) (\s :: UpdateBillingGroupResponse
s@UpdateBillingGroupResponse' {} Maybe (Sensitive Text)
a -> UpdateBillingGroupResponse
s {$sel:description:UpdateBillingGroupResponse' :: Maybe (Sensitive Text)
description = Maybe (Sensitive Text)
a} :: UpdateBillingGroupResponse) 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 a. Iso' (Sensitive a) a
Data._Sensitive
updateBillingGroupResponse_lastModifiedTime :: Lens.Lens' UpdateBillingGroupResponse (Prelude.Maybe Prelude.Integer)
updateBillingGroupResponse_lastModifiedTime :: Lens' UpdateBillingGroupResponse (Maybe Integer)
updateBillingGroupResponse_lastModifiedTime = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroupResponse' {Maybe Integer
lastModifiedTime :: Maybe Integer
$sel:lastModifiedTime:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Integer
lastModifiedTime} -> Maybe Integer
lastModifiedTime) (\s :: UpdateBillingGroupResponse
s@UpdateBillingGroupResponse' {} Maybe Integer
a -> UpdateBillingGroupResponse
s {$sel:lastModifiedTime:UpdateBillingGroupResponse' :: Maybe Integer
lastModifiedTime = Maybe Integer
a} :: UpdateBillingGroupResponse)
updateBillingGroupResponse_name :: Lens.Lens' UpdateBillingGroupResponse (Prelude.Maybe Prelude.Text)
updateBillingGroupResponse_name :: Lens' UpdateBillingGroupResponse (Maybe Text)
updateBillingGroupResponse_name = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroupResponse' {Maybe (Sensitive Text)
name :: Maybe (Sensitive Text)
$sel:name:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe (Sensitive Text)
name} -> Maybe (Sensitive Text)
name) (\s :: UpdateBillingGroupResponse
s@UpdateBillingGroupResponse' {} Maybe (Sensitive Text)
a -> UpdateBillingGroupResponse
s {$sel:name:UpdateBillingGroupResponse' :: Maybe (Sensitive Text)
name = Maybe (Sensitive Text)
a} :: UpdateBillingGroupResponse) 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 a. Iso' (Sensitive a) a
Data._Sensitive
updateBillingGroupResponse_pricingPlanArn :: Lens.Lens' UpdateBillingGroupResponse (Prelude.Maybe Prelude.Text)
updateBillingGroupResponse_pricingPlanArn :: Lens' UpdateBillingGroupResponse (Maybe Text)
updateBillingGroupResponse_pricingPlanArn = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroupResponse' {Maybe Text
pricingPlanArn :: Maybe Text
$sel:pricingPlanArn:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Text
pricingPlanArn} -> Maybe Text
pricingPlanArn) (\s :: UpdateBillingGroupResponse
s@UpdateBillingGroupResponse' {} Maybe Text
a -> UpdateBillingGroupResponse
s {$sel:pricingPlanArn:UpdateBillingGroupResponse' :: Maybe Text
pricingPlanArn = Maybe Text
a} :: UpdateBillingGroupResponse)
updateBillingGroupResponse_primaryAccountId :: Lens.Lens' UpdateBillingGroupResponse (Prelude.Maybe Prelude.Text)
updateBillingGroupResponse_primaryAccountId :: Lens' UpdateBillingGroupResponse (Maybe Text)
updateBillingGroupResponse_primaryAccountId = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroupResponse' {Maybe Text
primaryAccountId :: Maybe Text
$sel:primaryAccountId:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Text
primaryAccountId} -> Maybe Text
primaryAccountId) (\s :: UpdateBillingGroupResponse
s@UpdateBillingGroupResponse' {} Maybe Text
a -> UpdateBillingGroupResponse
s {$sel:primaryAccountId:UpdateBillingGroupResponse' :: Maybe Text
primaryAccountId = Maybe Text
a} :: UpdateBillingGroupResponse)
updateBillingGroupResponse_size :: Lens.Lens' UpdateBillingGroupResponse (Prelude.Maybe Prelude.Natural)
updateBillingGroupResponse_size :: Lens' UpdateBillingGroupResponse (Maybe Natural)
updateBillingGroupResponse_size = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroupResponse' {Maybe Natural
size :: Maybe Natural
$sel:size:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Natural
size} -> Maybe Natural
size) (\s :: UpdateBillingGroupResponse
s@UpdateBillingGroupResponse' {} Maybe Natural
a -> UpdateBillingGroupResponse
s {$sel:size:UpdateBillingGroupResponse' :: Maybe Natural
size = Maybe Natural
a} :: UpdateBillingGroupResponse)
updateBillingGroupResponse_status :: Lens.Lens' UpdateBillingGroupResponse (Prelude.Maybe BillingGroupStatus)
updateBillingGroupResponse_status :: Lens' UpdateBillingGroupResponse (Maybe BillingGroupStatus)
updateBillingGroupResponse_status = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroupResponse' {Maybe BillingGroupStatus
status :: Maybe BillingGroupStatus
$sel:status:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe BillingGroupStatus
status} -> Maybe BillingGroupStatus
status) (\s :: UpdateBillingGroupResponse
s@UpdateBillingGroupResponse' {} Maybe BillingGroupStatus
a -> UpdateBillingGroupResponse
s {$sel:status:UpdateBillingGroupResponse' :: Maybe BillingGroupStatus
status = Maybe BillingGroupStatus
a} :: UpdateBillingGroupResponse)
updateBillingGroupResponse_statusReason :: Lens.Lens' UpdateBillingGroupResponse (Prelude.Maybe Prelude.Text)
updateBillingGroupResponse_statusReason :: Lens' UpdateBillingGroupResponse (Maybe Text)
updateBillingGroupResponse_statusReason = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroupResponse' {Maybe Text
statusReason :: Maybe Text
$sel:statusReason:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Text
statusReason} -> Maybe Text
statusReason) (\s :: UpdateBillingGroupResponse
s@UpdateBillingGroupResponse' {} Maybe Text
a -> UpdateBillingGroupResponse
s {$sel:statusReason:UpdateBillingGroupResponse' :: Maybe Text
statusReason = Maybe Text
a} :: UpdateBillingGroupResponse)
updateBillingGroupResponse_httpStatus :: Lens.Lens' UpdateBillingGroupResponse Prelude.Int
updateBillingGroupResponse_httpStatus :: Lens' UpdateBillingGroupResponse Int
updateBillingGroupResponse_httpStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\UpdateBillingGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: UpdateBillingGroupResponse
s@UpdateBillingGroupResponse' {} Int
a -> UpdateBillingGroupResponse
s {$sel:httpStatus:UpdateBillingGroupResponse' :: Int
httpStatus = Int
a} :: UpdateBillingGroupResponse)
instance Prelude.NFData UpdateBillingGroupResponse where
rnf :: UpdateBillingGroupResponse -> ()
rnf UpdateBillingGroupResponse' {Int
Maybe Integer
Maybe Natural
Maybe Text
Maybe (Sensitive Text)
Maybe BillingGroupStatus
httpStatus :: Int
statusReason :: Maybe Text
status :: Maybe BillingGroupStatus
size :: Maybe Natural
primaryAccountId :: Maybe Text
pricingPlanArn :: Maybe Text
name :: Maybe (Sensitive Text)
lastModifiedTime :: Maybe Integer
description :: Maybe (Sensitive Text)
arn :: Maybe Text
$sel:httpStatus:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Int
$sel:statusReason:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Text
$sel:status:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe BillingGroupStatus
$sel:size:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Natural
$sel:primaryAccountId:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Text
$sel:pricingPlanArn:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Text
$sel:name:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe (Sensitive Text)
$sel:lastModifiedTime:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Integer
$sel:description:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe (Sensitive Text)
$sel:arn:UpdateBillingGroupResponse' :: UpdateBillingGroupResponse -> Maybe Text
..} =
forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
arn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
description
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Integer
lastModifiedTime
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe (Sensitive Text)
name
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
pricingPlanArn
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
primaryAccountId
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Natural
size
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe BillingGroupStatus
status
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
statusReason
seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Int
httpStatus