AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCustomLineItemRequest.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductor_EXPORTS.h>
8#include <aws/billingconductor/BillingConductorRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/billingconductor/model/CustomLineItemBillingPeriodRange.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/billingconductor/model/CustomLineItemChargeDetails.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace BillingConductor
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BILLINGCONDUCTOR_API CreateCustomLineItemRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateCustomLineItem"; }
35
36 AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override;
37
38 AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
46 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
49 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
50 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
51 inline CreateCustomLineItemRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
52 inline CreateCustomLineItemRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline CreateCustomLineItemRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline CreateCustomLineItemRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline CreateCustomLineItemRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline CreateCustomLineItemRequest& WithName(const char* value) { SetName(value); return *this;}
69
71
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline CreateCustomLineItemRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline CreateCustomLineItemRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline CreateCustomLineItemRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
90 inline const Aws::String& GetBillingGroupArn() const{ return m_billingGroupArn; }
91 inline bool BillingGroupArnHasBeenSet() const { return m_billingGroupArnHasBeenSet; }
92 inline void SetBillingGroupArn(const Aws::String& value) { m_billingGroupArnHasBeenSet = true; m_billingGroupArn = value; }
93 inline void SetBillingGroupArn(Aws::String&& value) { m_billingGroupArnHasBeenSet = true; m_billingGroupArn = std::move(value); }
94 inline void SetBillingGroupArn(const char* value) { m_billingGroupArnHasBeenSet = true; m_billingGroupArn.assign(value); }
96 inline CreateCustomLineItemRequest& WithBillingGroupArn(Aws::String&& value) { SetBillingGroupArn(std::move(value)); return *this;}
97 inline CreateCustomLineItemRequest& WithBillingGroupArn(const char* value) { SetBillingGroupArn(value); return *this;}
99
101
104 inline const CustomLineItemBillingPeriodRange& GetBillingPeriodRange() const{ return m_billingPeriodRange; }
105 inline bool BillingPeriodRangeHasBeenSet() const { return m_billingPeriodRangeHasBeenSet; }
106 inline void SetBillingPeriodRange(const CustomLineItemBillingPeriodRange& value) { m_billingPeriodRangeHasBeenSet = true; m_billingPeriodRange = value; }
107 inline void SetBillingPeriodRange(CustomLineItemBillingPeriodRange&& value) { m_billingPeriodRangeHasBeenSet = true; m_billingPeriodRange = std::move(value); }
111
113
117 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
118 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
119 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
120 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
122 inline CreateCustomLineItemRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
123 inline CreateCustomLineItemRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
124 inline CreateCustomLineItemRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
125 inline CreateCustomLineItemRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
126 inline CreateCustomLineItemRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
127 inline CreateCustomLineItemRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
128 inline CreateCustomLineItemRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
129 inline CreateCustomLineItemRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
131
133
137 inline const CustomLineItemChargeDetails& GetChargeDetails() const{ return m_chargeDetails; }
138 inline bool ChargeDetailsHasBeenSet() const { return m_chargeDetailsHasBeenSet; }
139 inline void SetChargeDetails(const CustomLineItemChargeDetails& value) { m_chargeDetailsHasBeenSet = true; m_chargeDetails = value; }
140 inline void SetChargeDetails(CustomLineItemChargeDetails&& value) { m_chargeDetailsHasBeenSet = true; m_chargeDetails = std::move(value); }
144
146
150 inline const Aws::String& GetAccountId() const{ return m_accountId; }
151 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
152 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
153 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
154 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
155 inline CreateCustomLineItemRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
156 inline CreateCustomLineItemRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
157 inline CreateCustomLineItemRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
159 private:
160
161 Aws::String m_clientToken;
162 bool m_clientTokenHasBeenSet = false;
163
164 Aws::String m_name;
165 bool m_nameHasBeenSet = false;
166
167 Aws::String m_description;
168 bool m_descriptionHasBeenSet = false;
169
170 Aws::String m_billingGroupArn;
171 bool m_billingGroupArnHasBeenSet = false;
172
173 CustomLineItemBillingPeriodRange m_billingPeriodRange;
174 bool m_billingPeriodRangeHasBeenSet = false;
175
177 bool m_tagsHasBeenSet = false;
178
179 CustomLineItemChargeDetails m_chargeDetails;
180 bool m_chargeDetailsHasBeenSet = false;
181
182 Aws::String m_accountId;
183 bool m_accountIdHasBeenSet = false;
184 };
185
186} // namespace Model
187} // namespace BillingConductor
188} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateCustomLineItemRequest & WithName(const Aws::String &value)
CreateCustomLineItemRequest & WithClientToken(const Aws::String &value)
CreateCustomLineItemRequest & WithAccountId(const Aws::String &value)
CreateCustomLineItemRequest & WithClientToken(Aws::String &&value)
CreateCustomLineItemRequest & WithDescription(Aws::String &&value)
void SetBillingPeriodRange(const CustomLineItemBillingPeriodRange &value)
CreateCustomLineItemRequest & WithAccountId(Aws::String &&value)
CreateCustomLineItemRequest & AddTags(Aws::String &&key, const char *value)
CreateCustomLineItemRequest & WithName(Aws::String &&value)
CreateCustomLineItemRequest & WithBillingPeriodRange(const CustomLineItemBillingPeriodRange &value)
CreateCustomLineItemRequest & WithBillingPeriodRange(CustomLineItemBillingPeriodRange &&value)
CreateCustomLineItemRequest & WithBillingGroupArn(Aws::String &&value)
AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override
CreateCustomLineItemRequest & WithChargeDetails(CustomLineItemChargeDetails &&value)
CreateCustomLineItemRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateCustomLineItemRequest & WithName(const char *value)
CreateCustomLineItemRequest & WithDescription(const Aws::String &value)
const CustomLineItemBillingPeriodRange & GetBillingPeriodRange() const
CreateCustomLineItemRequest & AddTags(const char *key, const char *value)
void SetBillingPeriodRange(CustomLineItemBillingPeriodRange &&value)
AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateCustomLineItemRequest & WithDescription(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateCustomLineItemRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateCustomLineItemRequest & WithAccountId(const char *value)
void SetChargeDetails(const CustomLineItemChargeDetails &value)
CreateCustomLineItemRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateCustomLineItemRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateCustomLineItemRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateCustomLineItemRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateCustomLineItemRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateCustomLineItemRequest & WithChargeDetails(const CustomLineItemChargeDetails &value)
CreateCustomLineItemRequest & WithBillingGroupArn(const char *value)
CreateCustomLineItemRequest & WithClientToken(const char *value)
CreateCustomLineItemRequest & WithBillingGroupArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String