AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePricingPlanRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace BillingConductor
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BILLINGCONDUCTOR_API CreatePricingPlanRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreatePricingPlan"; }
34
35 AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override;
36
37 AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
45 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
46 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
47 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
48 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
49 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
50 inline CreatePricingPlanRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
51 inline CreatePricingPlanRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
52 inline CreatePricingPlanRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
54
56
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 CreatePricingPlanRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline CreatePricingPlanRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline CreatePricingPlanRequest& WithName(const char* value) { SetName(value); return *this;}
69
71
74 inline const Aws::String& GetDescription() const{ return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
77 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
78 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
79 inline CreatePricingPlanRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 inline CreatePricingPlanRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 inline CreatePricingPlanRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
83
85
89 inline const Aws::Vector<Aws::String>& GetPricingRuleArns() const{ return m_pricingRuleArns; }
90 inline bool PricingRuleArnsHasBeenSet() const { return m_pricingRuleArnsHasBeenSet; }
91 inline void SetPricingRuleArns(const Aws::Vector<Aws::String>& value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns = value; }
92 inline void SetPricingRuleArns(Aws::Vector<Aws::String>&& value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns = std::move(value); }
95 inline CreatePricingPlanRequest& AddPricingRuleArns(const Aws::String& value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns.push_back(value); return *this; }
96 inline CreatePricingPlanRequest& AddPricingRuleArns(Aws::String&& value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns.push_back(std::move(value)); return *this; }
97 inline CreatePricingPlanRequest& AddPricingRuleArns(const char* value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns.push_back(value); return *this; }
99
101
105 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
110 inline CreatePricingPlanRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
111 inline CreatePricingPlanRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
112 inline CreatePricingPlanRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
113 inline CreatePricingPlanRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
114 inline CreatePricingPlanRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
115 inline CreatePricingPlanRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
116 inline CreatePricingPlanRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
117 inline CreatePricingPlanRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
119 private:
120
121 Aws::String m_clientToken;
122 bool m_clientTokenHasBeenSet = false;
123
124 Aws::String m_name;
125 bool m_nameHasBeenSet = false;
126
127 Aws::String m_description;
128 bool m_descriptionHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_pricingRuleArns;
131 bool m_pricingRuleArnsHasBeenSet = false;
132
134 bool m_tagsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace BillingConductor
139} // namespace Aws
CreatePricingPlanRequest & WithClientToken(Aws::String &&value)
CreatePricingPlanRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreatePricingPlanRequest & AddTags(Aws::String &&key, const char *value)
CreatePricingPlanRequest & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::Vector< Aws::String > & GetPricingRuleArns() const
CreatePricingPlanRequest & AddPricingRuleArns(const char *value)
CreatePricingPlanRequest & AddTags(const char *key, const char *value)
CreatePricingPlanRequest & AddTags(const char *key, Aws::String &&value)
AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override
CreatePricingPlanRequest & WithClientToken(const Aws::String &value)
CreatePricingPlanRequest & WithPricingRuleArns(Aws::Vector< Aws::String > &&value)
CreatePricingPlanRequest & WithName(const char *value)
CreatePricingPlanRequest & WithDescription(const Aws::String &value)
CreatePricingPlanRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePricingPlanRequest & WithName(Aws::String &&value)
CreatePricingPlanRequest & WithDescription(const char *value)
CreatePricingPlanRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreatePricingPlanRequest & WithPricingRuleArns(const Aws::Vector< Aws::String > &value)
CreatePricingPlanRequest & AddPricingRuleArns(const Aws::String &value)
CreatePricingPlanRequest & AddTags(Aws::String &&key, const Aws::String &value)
AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePricingPlanRequest & WithClientToken(const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetPricingRuleArns(Aws::Vector< Aws::String > &&value)
CreatePricingPlanRequest & WithName(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreatePricingPlanRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetPricingRuleArns(const Aws::Vector< Aws::String > &value)
CreatePricingPlanRequest & WithDescription(Aws::String &&value)
CreatePricingPlanRequest & AddPricingRuleArns(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
std::vector< T, Aws::Allocator< T > > Vector