AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ClientTokenT = Aws::String>
48 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
49 template<typename ClientTokenT = Aws::String>
50 CreatePricingPlanRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
52
54
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 CreatePricingPlanRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 CreatePricingPlanRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
83 inline const Aws::Vector<Aws::String>& GetPricingRuleArns() const { return m_pricingRuleArns; }
84 inline bool PricingRuleArnsHasBeenSet() const { return m_pricingRuleArnsHasBeenSet; }
85 template<typename PricingRuleArnsT = Aws::Vector<Aws::String>>
86 void SetPricingRuleArns(PricingRuleArnsT&& value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns = std::forward<PricingRuleArnsT>(value); }
87 template<typename PricingRuleArnsT = Aws::Vector<Aws::String>>
88 CreatePricingPlanRequest& WithPricingRuleArns(PricingRuleArnsT&& value) { SetPricingRuleArns(std::forward<PricingRuleArnsT>(value)); return *this;}
89 template<typename PricingRuleArnsT = Aws::String>
90 CreatePricingPlanRequest& AddPricingRuleArns(PricingRuleArnsT&& value) { m_pricingRuleArnsHasBeenSet = true; m_pricingRuleArns.emplace_back(std::forward<PricingRuleArnsT>(value)); return *this; }
92
94
98 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
101 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
102 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
103 CreatePricingPlanRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
104 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
105 CreatePricingPlanRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
106 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
107 }
109 private:
110
112 bool m_clientTokenHasBeenSet = true;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
120 Aws::Vector<Aws::String> m_pricingRuleArns;
121 bool m_pricingRuleArnsHasBeenSet = false;
122
124 bool m_tagsHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace BillingConductor
129} // namespace Aws
const Aws::Vector< Aws::String > & GetPricingRuleArns() const
CreatePricingPlanRequest & WithClientToken(ClientTokenT &&value)
AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override
AWS_BILLINGCONDUCTOR_API CreatePricingPlanRequest()=default
CreatePricingPlanRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreatePricingPlanRequest & WithDescription(DescriptionT &&value)
CreatePricingPlanRequest & WithPricingRuleArns(PricingRuleArnsT &&value)
AWS_BILLINGCONDUCTOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePricingPlanRequest & AddPricingRuleArns(PricingRuleArnsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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