{-# 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.IoT.DescribeBillingGroup
(
DescribeBillingGroup (..),
newDescribeBillingGroup,
describeBillingGroup_billingGroupName,
DescribeBillingGroupResponse (..),
newDescribeBillingGroupResponse,
describeBillingGroupResponse_billingGroupArn,
describeBillingGroupResponse_version,
describeBillingGroupResponse_billingGroupProperties,
describeBillingGroupResponse_billingGroupName,
describeBillingGroupResponse_billingGroupId,
describeBillingGroupResponse_billingGroupMetadata,
describeBillingGroupResponse_httpStatus,
)
where
import qualified Amazonka.Core as Core
import Amazonka.IoT.Types
import qualified Amazonka.Lens as Lens
import qualified Amazonka.Prelude as Prelude
import qualified Amazonka.Request as Request
import qualified Amazonka.Response as Response
data DescribeBillingGroup = DescribeBillingGroup'
{
DescribeBillingGroup -> Text
billingGroupName :: Prelude.Text
}
deriving (DescribeBillingGroup -> DescribeBillingGroup -> Bool
(DescribeBillingGroup -> DescribeBillingGroup -> Bool)
-> (DescribeBillingGroup -> DescribeBillingGroup -> Bool)
-> Eq DescribeBillingGroup
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBillingGroup -> DescribeBillingGroup -> Bool
$c/= :: DescribeBillingGroup -> DescribeBillingGroup -> Bool
== :: DescribeBillingGroup -> DescribeBillingGroup -> Bool
$c== :: DescribeBillingGroup -> DescribeBillingGroup -> Bool
Prelude.Eq, ReadPrec [DescribeBillingGroup]
ReadPrec DescribeBillingGroup
Int -> ReadS DescribeBillingGroup
ReadS [DescribeBillingGroup]
(Int -> ReadS DescribeBillingGroup)
-> ReadS [DescribeBillingGroup]
-> ReadPrec DescribeBillingGroup
-> ReadPrec [DescribeBillingGroup]
-> Read DescribeBillingGroup
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeBillingGroup]
$creadListPrec :: ReadPrec [DescribeBillingGroup]
readPrec :: ReadPrec DescribeBillingGroup
$creadPrec :: ReadPrec DescribeBillingGroup
readList :: ReadS [DescribeBillingGroup]
$creadList :: ReadS [DescribeBillingGroup]
readsPrec :: Int -> ReadS DescribeBillingGroup
$creadsPrec :: Int -> ReadS DescribeBillingGroup
Prelude.Read, Int -> DescribeBillingGroup -> ShowS
[DescribeBillingGroup] -> ShowS
DescribeBillingGroup -> String
(Int -> DescribeBillingGroup -> ShowS)
-> (DescribeBillingGroup -> String)
-> ([DescribeBillingGroup] -> ShowS)
-> Show DescribeBillingGroup
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBillingGroup] -> ShowS
$cshowList :: [DescribeBillingGroup] -> ShowS
show :: DescribeBillingGroup -> String
$cshow :: DescribeBillingGroup -> String
showsPrec :: Int -> DescribeBillingGroup -> ShowS
$cshowsPrec :: Int -> DescribeBillingGroup -> ShowS
Prelude.Show, (forall x. DescribeBillingGroup -> Rep DescribeBillingGroup x)
-> (forall x. Rep DescribeBillingGroup x -> DescribeBillingGroup)
-> Generic DescribeBillingGroup
forall x. Rep DescribeBillingGroup x -> DescribeBillingGroup
forall x. DescribeBillingGroup -> Rep DescribeBillingGroup x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep DescribeBillingGroup x -> DescribeBillingGroup
$cfrom :: forall x. DescribeBillingGroup -> Rep DescribeBillingGroup x
Prelude.Generic)
newDescribeBillingGroup ::
Prelude.Text ->
DescribeBillingGroup
newDescribeBillingGroup :: Text -> DescribeBillingGroup
newDescribeBillingGroup Text
pBillingGroupName_ =
DescribeBillingGroup' :: Text -> DescribeBillingGroup
DescribeBillingGroup'
{ $sel:billingGroupName:DescribeBillingGroup' :: Text
billingGroupName =
Text
pBillingGroupName_
}
describeBillingGroup_billingGroupName :: Lens.Lens' DescribeBillingGroup Prelude.Text
describeBillingGroup_billingGroupName :: (Text -> f Text) -> DescribeBillingGroup -> f DescribeBillingGroup
describeBillingGroup_billingGroupName = (DescribeBillingGroup -> Text)
-> (DescribeBillingGroup -> Text -> DescribeBillingGroup)
-> Lens DescribeBillingGroup DescribeBillingGroup Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBillingGroup' {Text
billingGroupName :: Text
$sel:billingGroupName:DescribeBillingGroup' :: DescribeBillingGroup -> Text
billingGroupName} -> Text
billingGroupName) (\s :: DescribeBillingGroup
s@DescribeBillingGroup' {} Text
a -> DescribeBillingGroup
s {$sel:billingGroupName:DescribeBillingGroup' :: Text
billingGroupName = Text
a} :: DescribeBillingGroup)
instance Core.AWSRequest DescribeBillingGroup where
type
AWSResponse DescribeBillingGroup =
DescribeBillingGroupResponse
request :: DescribeBillingGroup -> Request DescribeBillingGroup
request = Service -> DescribeBillingGroup -> Request DescribeBillingGroup
forall a. ToRequest a => Service -> a -> Request a
Request.get Service
defaultService
response :: Logger
-> Service
-> Proxy DescribeBillingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeBillingGroup)))
response =
(Int
-> ResponseHeaders
-> Object
-> Either String (AWSResponse DescribeBillingGroup))
-> Logger
-> Service
-> Proxy DescribeBillingGroup
-> ClientResponse ClientBody
-> m (Either
Error (ClientResponse (AWSResponse DescribeBillingGroup)))
forall (m :: * -> *) a.
MonadResource m =>
(Int -> ResponseHeaders -> Object -> Either String (AWSResponse a))
-> Logger
-> Service
-> Proxy a
-> ClientResponse ClientBody
-> m (Either Error (ClientResponse (AWSResponse a)))
Response.receiveJSON
( \Int
s ResponseHeaders
h Object
x ->
Maybe Text
-> Maybe Integer
-> Maybe BillingGroupProperties
-> Maybe Text
-> Maybe Text
-> Maybe BillingGroupMetadata
-> Int
-> DescribeBillingGroupResponse
DescribeBillingGroupResponse'
(Maybe Text
-> Maybe Integer
-> Maybe BillingGroupProperties
-> Maybe Text
-> Maybe Text
-> Maybe BillingGroupMetadata
-> Int
-> DescribeBillingGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Integer
-> Maybe BillingGroupProperties
-> Maybe Text
-> Maybe Text
-> Maybe BillingGroupMetadata
-> Int
-> DescribeBillingGroupResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"billingGroupArn")
Either
String
(Maybe Integer
-> Maybe BillingGroupProperties
-> Maybe Text
-> Maybe Text
-> Maybe BillingGroupMetadata
-> Int
-> DescribeBillingGroupResponse)
-> Either String (Maybe Integer)
-> Either
String
(Maybe BillingGroupProperties
-> Maybe Text
-> Maybe Text
-> Maybe BillingGroupMetadata
-> Int
-> DescribeBillingGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Integer)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"version")
Either
String
(Maybe BillingGroupProperties
-> Maybe Text
-> Maybe Text
-> Maybe BillingGroupMetadata
-> Int
-> DescribeBillingGroupResponse)
-> Either String (Maybe BillingGroupProperties)
-> Either
String
(Maybe Text
-> Maybe Text
-> Maybe BillingGroupMetadata
-> Int
-> DescribeBillingGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe BillingGroupProperties)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"billingGroupProperties")
Either
String
(Maybe Text
-> Maybe Text
-> Maybe BillingGroupMetadata
-> Int
-> DescribeBillingGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe Text
-> Maybe BillingGroupMetadata
-> Int
-> DescribeBillingGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"billingGroupName")
Either
String
(Maybe Text
-> Maybe BillingGroupMetadata
-> Int
-> DescribeBillingGroupResponse)
-> Either String (Maybe Text)
-> Either
String
(Maybe BillingGroupMetadata -> Int -> DescribeBillingGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe Text)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"billingGroupId")
Either
String
(Maybe BillingGroupMetadata -> Int -> DescribeBillingGroupResponse)
-> Either String (Maybe BillingGroupMetadata)
-> Either String (Int -> DescribeBillingGroupResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x Object -> Text -> Either String (Maybe BillingGroupMetadata)
forall a. FromJSON a => Object -> Text -> Either String (Maybe a)
Core..?> Text
"billingGroupMetadata")
Either String (Int -> DescribeBillingGroupResponse)
-> Either String Int -> Either String DescribeBillingGroupResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Int -> Either String Int
forall (f :: * -> *) a. Applicative f => a -> f a
Prelude.pure (Int -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum Int
s))
)
instance Prelude.Hashable DescribeBillingGroup
instance Prelude.NFData DescribeBillingGroup
instance Core.ToHeaders DescribeBillingGroup where
toHeaders :: DescribeBillingGroup -> ResponseHeaders
toHeaders = ResponseHeaders -> DescribeBillingGroup -> ResponseHeaders
forall a b. a -> b -> a
Prelude.const ResponseHeaders
forall a. Monoid a => a
Prelude.mempty
instance Core.ToPath DescribeBillingGroup where
toPath :: DescribeBillingGroup -> ByteString
toPath DescribeBillingGroup' {Text
billingGroupName :: Text
$sel:billingGroupName:DescribeBillingGroup' :: DescribeBillingGroup -> Text
..} =
[ByteString] -> ByteString
forall a. Monoid a => [a] -> a
Prelude.mconcat
[ByteString
"/billing-groups/", Text -> ByteString
forall a. ToByteString a => a -> ByteString
Core.toBS Text
billingGroupName]
instance Core.ToQuery DescribeBillingGroup where
toQuery :: DescribeBillingGroup -> QueryString
toQuery = QueryString -> DescribeBillingGroup -> QueryString
forall a b. a -> b -> a
Prelude.const QueryString
forall a. Monoid a => a
Prelude.mempty
data DescribeBillingGroupResponse = DescribeBillingGroupResponse'
{
DescribeBillingGroupResponse -> Maybe Text
billingGroupArn :: Prelude.Maybe Prelude.Text,
DescribeBillingGroupResponse -> Maybe Integer
version :: Prelude.Maybe Prelude.Integer,
DescribeBillingGroupResponse -> Maybe BillingGroupProperties
billingGroupProperties :: Prelude.Maybe BillingGroupProperties,
DescribeBillingGroupResponse -> Maybe Text
billingGroupName :: Prelude.Maybe Prelude.Text,
DescribeBillingGroupResponse -> Maybe Text
billingGroupId :: Prelude.Maybe Prelude.Text,
DescribeBillingGroupResponse -> Maybe BillingGroupMetadata
billingGroupMetadata :: Prelude.Maybe BillingGroupMetadata,
DescribeBillingGroupResponse -> Int
httpStatus :: Prelude.Int
}
deriving (DescribeBillingGroupResponse
-> DescribeBillingGroupResponse -> Bool
(DescribeBillingGroupResponse
-> DescribeBillingGroupResponse -> Bool)
-> (DescribeBillingGroupResponse
-> DescribeBillingGroupResponse -> Bool)
-> Eq DescribeBillingGroupResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: DescribeBillingGroupResponse
-> DescribeBillingGroupResponse -> Bool
$c/= :: DescribeBillingGroupResponse
-> DescribeBillingGroupResponse -> Bool
== :: DescribeBillingGroupResponse
-> DescribeBillingGroupResponse -> Bool
$c== :: DescribeBillingGroupResponse
-> DescribeBillingGroupResponse -> Bool
Prelude.Eq, ReadPrec [DescribeBillingGroupResponse]
ReadPrec DescribeBillingGroupResponse
Int -> ReadS DescribeBillingGroupResponse
ReadS [DescribeBillingGroupResponse]
(Int -> ReadS DescribeBillingGroupResponse)
-> ReadS [DescribeBillingGroupResponse]
-> ReadPrec DescribeBillingGroupResponse
-> ReadPrec [DescribeBillingGroupResponse]
-> Read DescribeBillingGroupResponse
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [DescribeBillingGroupResponse]
$creadListPrec :: ReadPrec [DescribeBillingGroupResponse]
readPrec :: ReadPrec DescribeBillingGroupResponse
$creadPrec :: ReadPrec DescribeBillingGroupResponse
readList :: ReadS [DescribeBillingGroupResponse]
$creadList :: ReadS [DescribeBillingGroupResponse]
readsPrec :: Int -> ReadS DescribeBillingGroupResponse
$creadsPrec :: Int -> ReadS DescribeBillingGroupResponse
Prelude.Read, Int -> DescribeBillingGroupResponse -> ShowS
[DescribeBillingGroupResponse] -> ShowS
DescribeBillingGroupResponse -> String
(Int -> DescribeBillingGroupResponse -> ShowS)
-> (DescribeBillingGroupResponse -> String)
-> ([DescribeBillingGroupResponse] -> ShowS)
-> Show DescribeBillingGroupResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [DescribeBillingGroupResponse] -> ShowS
$cshowList :: [DescribeBillingGroupResponse] -> ShowS
show :: DescribeBillingGroupResponse -> String
$cshow :: DescribeBillingGroupResponse -> String
showsPrec :: Int -> DescribeBillingGroupResponse -> ShowS
$cshowsPrec :: Int -> DescribeBillingGroupResponse -> ShowS
Prelude.Show, (forall x.
DescribeBillingGroupResponse -> Rep DescribeBillingGroupResponse x)
-> (forall x.
Rep DescribeBillingGroupResponse x -> DescribeBillingGroupResponse)
-> Generic DescribeBillingGroupResponse
forall x.
Rep DescribeBillingGroupResponse x -> DescribeBillingGroupResponse
forall x.
DescribeBillingGroupResponse -> Rep DescribeBillingGroupResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep DescribeBillingGroupResponse x -> DescribeBillingGroupResponse
$cfrom :: forall x.
DescribeBillingGroupResponse -> Rep DescribeBillingGroupResponse x
Prelude.Generic)
newDescribeBillingGroupResponse ::
Prelude.Int ->
DescribeBillingGroupResponse
newDescribeBillingGroupResponse :: Int -> DescribeBillingGroupResponse
newDescribeBillingGroupResponse Int
pHttpStatus_ =
DescribeBillingGroupResponse' :: Maybe Text
-> Maybe Integer
-> Maybe BillingGroupProperties
-> Maybe Text
-> Maybe Text
-> Maybe BillingGroupMetadata
-> Int
-> DescribeBillingGroupResponse
DescribeBillingGroupResponse'
{ $sel:billingGroupArn:DescribeBillingGroupResponse' :: Maybe Text
billingGroupArn =
Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:version:DescribeBillingGroupResponse' :: Maybe Integer
version = Maybe Integer
forall a. Maybe a
Prelude.Nothing,
$sel:billingGroupProperties:DescribeBillingGroupResponse' :: Maybe BillingGroupProperties
billingGroupProperties = Maybe BillingGroupProperties
forall a. Maybe a
Prelude.Nothing,
$sel:billingGroupName:DescribeBillingGroupResponse' :: Maybe Text
billingGroupName = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:billingGroupId:DescribeBillingGroupResponse' :: Maybe Text
billingGroupId = Maybe Text
forall a. Maybe a
Prelude.Nothing,
$sel:billingGroupMetadata:DescribeBillingGroupResponse' :: Maybe BillingGroupMetadata
billingGroupMetadata = Maybe BillingGroupMetadata
forall a. Maybe a
Prelude.Nothing,
$sel:httpStatus:DescribeBillingGroupResponse' :: Int
httpStatus = Int
pHttpStatus_
}
describeBillingGroupResponse_billingGroupArn :: Lens.Lens' DescribeBillingGroupResponse (Prelude.Maybe Prelude.Text)
describeBillingGroupResponse_billingGroupArn :: (Maybe Text -> f (Maybe Text))
-> DescribeBillingGroupResponse -> f DescribeBillingGroupResponse
describeBillingGroupResponse_billingGroupArn = (DescribeBillingGroupResponse -> Maybe Text)
-> (DescribeBillingGroupResponse
-> Maybe Text -> DescribeBillingGroupResponse)
-> Lens
DescribeBillingGroupResponse
DescribeBillingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBillingGroupResponse' {Maybe Text
billingGroupArn :: Maybe Text
$sel:billingGroupArn:DescribeBillingGroupResponse' :: DescribeBillingGroupResponse -> Maybe Text
billingGroupArn} -> Maybe Text
billingGroupArn) (\s :: DescribeBillingGroupResponse
s@DescribeBillingGroupResponse' {} Maybe Text
a -> DescribeBillingGroupResponse
s {$sel:billingGroupArn:DescribeBillingGroupResponse' :: Maybe Text
billingGroupArn = Maybe Text
a} :: DescribeBillingGroupResponse)
describeBillingGroupResponse_version :: Lens.Lens' DescribeBillingGroupResponse (Prelude.Maybe Prelude.Integer)
describeBillingGroupResponse_version :: (Maybe Integer -> f (Maybe Integer))
-> DescribeBillingGroupResponse -> f DescribeBillingGroupResponse
describeBillingGroupResponse_version = (DescribeBillingGroupResponse -> Maybe Integer)
-> (DescribeBillingGroupResponse
-> Maybe Integer -> DescribeBillingGroupResponse)
-> Lens
DescribeBillingGroupResponse
DescribeBillingGroupResponse
(Maybe Integer)
(Maybe Integer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBillingGroupResponse' {Maybe Integer
version :: Maybe Integer
$sel:version:DescribeBillingGroupResponse' :: DescribeBillingGroupResponse -> Maybe Integer
version} -> Maybe Integer
version) (\s :: DescribeBillingGroupResponse
s@DescribeBillingGroupResponse' {} Maybe Integer
a -> DescribeBillingGroupResponse
s {$sel:version:DescribeBillingGroupResponse' :: Maybe Integer
version = Maybe Integer
a} :: DescribeBillingGroupResponse)
describeBillingGroupResponse_billingGroupProperties :: Lens.Lens' DescribeBillingGroupResponse (Prelude.Maybe BillingGroupProperties)
describeBillingGroupResponse_billingGroupProperties :: (Maybe BillingGroupProperties -> f (Maybe BillingGroupProperties))
-> DescribeBillingGroupResponse -> f DescribeBillingGroupResponse
describeBillingGroupResponse_billingGroupProperties = (DescribeBillingGroupResponse -> Maybe BillingGroupProperties)
-> (DescribeBillingGroupResponse
-> Maybe BillingGroupProperties -> DescribeBillingGroupResponse)
-> Lens
DescribeBillingGroupResponse
DescribeBillingGroupResponse
(Maybe BillingGroupProperties)
(Maybe BillingGroupProperties)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBillingGroupResponse' {Maybe BillingGroupProperties
billingGroupProperties :: Maybe BillingGroupProperties
$sel:billingGroupProperties:DescribeBillingGroupResponse' :: DescribeBillingGroupResponse -> Maybe BillingGroupProperties
billingGroupProperties} -> Maybe BillingGroupProperties
billingGroupProperties) (\s :: DescribeBillingGroupResponse
s@DescribeBillingGroupResponse' {} Maybe BillingGroupProperties
a -> DescribeBillingGroupResponse
s {$sel:billingGroupProperties:DescribeBillingGroupResponse' :: Maybe BillingGroupProperties
billingGroupProperties = Maybe BillingGroupProperties
a} :: DescribeBillingGroupResponse)
describeBillingGroupResponse_billingGroupName :: Lens.Lens' DescribeBillingGroupResponse (Prelude.Maybe Prelude.Text)
describeBillingGroupResponse_billingGroupName :: (Maybe Text -> f (Maybe Text))
-> DescribeBillingGroupResponse -> f DescribeBillingGroupResponse
describeBillingGroupResponse_billingGroupName = (DescribeBillingGroupResponse -> Maybe Text)
-> (DescribeBillingGroupResponse
-> Maybe Text -> DescribeBillingGroupResponse)
-> Lens
DescribeBillingGroupResponse
DescribeBillingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBillingGroupResponse' {Maybe Text
billingGroupName :: Maybe Text
$sel:billingGroupName:DescribeBillingGroupResponse' :: DescribeBillingGroupResponse -> Maybe Text
billingGroupName} -> Maybe Text
billingGroupName) (\s :: DescribeBillingGroupResponse
s@DescribeBillingGroupResponse' {} Maybe Text
a -> DescribeBillingGroupResponse
s {$sel:billingGroupName:DescribeBillingGroupResponse' :: Maybe Text
billingGroupName = Maybe Text
a} :: DescribeBillingGroupResponse)
describeBillingGroupResponse_billingGroupId :: Lens.Lens' DescribeBillingGroupResponse (Prelude.Maybe Prelude.Text)
describeBillingGroupResponse_billingGroupId :: (Maybe Text -> f (Maybe Text))
-> DescribeBillingGroupResponse -> f DescribeBillingGroupResponse
describeBillingGroupResponse_billingGroupId = (DescribeBillingGroupResponse -> Maybe Text)
-> (DescribeBillingGroupResponse
-> Maybe Text -> DescribeBillingGroupResponse)
-> Lens
DescribeBillingGroupResponse
DescribeBillingGroupResponse
(Maybe Text)
(Maybe Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBillingGroupResponse' {Maybe Text
billingGroupId :: Maybe Text
$sel:billingGroupId:DescribeBillingGroupResponse' :: DescribeBillingGroupResponse -> Maybe Text
billingGroupId} -> Maybe Text
billingGroupId) (\s :: DescribeBillingGroupResponse
s@DescribeBillingGroupResponse' {} Maybe Text
a -> DescribeBillingGroupResponse
s {$sel:billingGroupId:DescribeBillingGroupResponse' :: Maybe Text
billingGroupId = Maybe Text
a} :: DescribeBillingGroupResponse)
describeBillingGroupResponse_billingGroupMetadata :: Lens.Lens' DescribeBillingGroupResponse (Prelude.Maybe BillingGroupMetadata)
describeBillingGroupResponse_billingGroupMetadata :: (Maybe BillingGroupMetadata -> f (Maybe BillingGroupMetadata))
-> DescribeBillingGroupResponse -> f DescribeBillingGroupResponse
describeBillingGroupResponse_billingGroupMetadata = (DescribeBillingGroupResponse -> Maybe BillingGroupMetadata)
-> (DescribeBillingGroupResponse
-> Maybe BillingGroupMetadata -> DescribeBillingGroupResponse)
-> Lens
DescribeBillingGroupResponse
DescribeBillingGroupResponse
(Maybe BillingGroupMetadata)
(Maybe BillingGroupMetadata)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBillingGroupResponse' {Maybe BillingGroupMetadata
billingGroupMetadata :: Maybe BillingGroupMetadata
$sel:billingGroupMetadata:DescribeBillingGroupResponse' :: DescribeBillingGroupResponse -> Maybe BillingGroupMetadata
billingGroupMetadata} -> Maybe BillingGroupMetadata
billingGroupMetadata) (\s :: DescribeBillingGroupResponse
s@DescribeBillingGroupResponse' {} Maybe BillingGroupMetadata
a -> DescribeBillingGroupResponse
s {$sel:billingGroupMetadata:DescribeBillingGroupResponse' :: Maybe BillingGroupMetadata
billingGroupMetadata = Maybe BillingGroupMetadata
a} :: DescribeBillingGroupResponse)
describeBillingGroupResponse_httpStatus :: Lens.Lens' DescribeBillingGroupResponse Prelude.Int
describeBillingGroupResponse_httpStatus :: (Int -> f Int)
-> DescribeBillingGroupResponse -> f DescribeBillingGroupResponse
describeBillingGroupResponse_httpStatus = (DescribeBillingGroupResponse -> Int)
-> (DescribeBillingGroupResponse
-> Int -> DescribeBillingGroupResponse)
-> Lens
DescribeBillingGroupResponse DescribeBillingGroupResponse Int Int
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\DescribeBillingGroupResponse' {Int
httpStatus :: Int
$sel:httpStatus:DescribeBillingGroupResponse' :: DescribeBillingGroupResponse -> Int
httpStatus} -> Int
httpStatus) (\s :: DescribeBillingGroupResponse
s@DescribeBillingGroupResponse' {} Int
a -> DescribeBillingGroupResponse
s {$sel:httpStatus:DescribeBillingGroupResponse' :: Int
httpStatus = Int
a} :: DescribeBillingGroupResponse)
instance Prelude.NFData DescribeBillingGroupResponse