AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
AssociatePricingRulesRequest.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductorRequest.h>
8#include <aws/billingconductor/BillingConductor_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace BillingConductor {
16namespace Model {
17
21 public:
22 AWS_BILLINGCONDUCTOR_API AssociatePricingRulesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociatePricingRules"; }
29
30 AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetArn() const { return m_arn; }
38 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
39 template <typename ArnT = Aws::String>
40 void SetArn(ArnT&& value) {
41 m_arnHasBeenSet = true;
42 m_arn = std::forward<ArnT>(value);
43 }
44 template <typename ArnT = Aws::String>
46 SetArn(std::forward<ArnT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::Vector<Aws::String>& GetPricingRuleArns() const { return m_pricingRuleArns; }
57 inline bool PricingRuleArnsHasBeenSet() const { return m_pricingRuleArnsHasBeenSet; }
58 template <typename PricingRuleArnsT = Aws::Vector<Aws::String>>
59 void SetPricingRuleArns(PricingRuleArnsT&& value) {
60 m_pricingRuleArnsHasBeenSet = true;
61 m_pricingRuleArns = std::forward<PricingRuleArnsT>(value);
62 }
63 template <typename PricingRuleArnsT = Aws::Vector<Aws::String>>
65 SetPricingRuleArns(std::forward<PricingRuleArnsT>(value));
66 return *this;
67 }
68 template <typename PricingRuleArnsT = Aws::String>
70 m_pricingRuleArnsHasBeenSet = true;
71 m_pricingRuleArns.emplace_back(std::forward<PricingRuleArnsT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_arn;
77
78 Aws::Vector<Aws::String> m_pricingRuleArns;
79 bool m_arnHasBeenSet = false;
80 bool m_pricingRuleArnsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace BillingConductor
85} // namespace Aws
AWS_BILLINGCONDUCTOR_API AssociatePricingRulesRequest()=default
AssociatePricingRulesRequest & AddPricingRuleArns(PricingRuleArnsT &&value)
AWS_BILLINGCONDUCTOR_API Aws::String SerializePayload() const override
AssociatePricingRulesRequest & WithPricingRuleArns(PricingRuleArnsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector