AWS SDK for C++

AWS SDK for C++ Version 1.11.846

Loading...
Searching...
No Matches
UpdateBillingPreferencesRequest.h
1
6#pragma once
7#include <aws/billing/BillingRequest.h>
8#include <aws/billing/Billing_EXPORTS.h>
9#include <aws/billing/model/BillingFeature.h>
10#include <aws/billing/model/BillingPreferenceForKey.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Billing {
17namespace Model {
18
22 public:
23 AWS_BILLING_API UpdateBillingPreferencesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateBillingPreferences"; }
30
31 AWS_BILLING_API Aws::String SerializePayload() const override;
32
34
36
43 inline BillingFeature GetFeature() const { return m_feature; }
44 inline bool FeatureHasBeenSet() const { return m_featureHasBeenSet; }
45 inline void SetFeature(BillingFeature value) {
46 m_featureHasBeenSet = true;
47 m_feature = value;
48 }
50 SetFeature(value);
51 return *this;
52 }
54
56
62 inline const Aws::Vector<BillingPreferenceForKey>& GetBillingPreferencesPerKey() const { return m_billingPreferencesPerKey; }
63 inline bool BillingPreferencesPerKeyHasBeenSet() const { return m_billingPreferencesPerKeyHasBeenSet; }
64 template <typename BillingPreferencesPerKeyT = Aws::Vector<BillingPreferenceForKey>>
65 void SetBillingPreferencesPerKey(BillingPreferencesPerKeyT&& value) {
66 m_billingPreferencesPerKeyHasBeenSet = true;
67 m_billingPreferencesPerKey = std::forward<BillingPreferencesPerKeyT>(value);
68 }
69 template <typename BillingPreferencesPerKeyT = Aws::Vector<BillingPreferenceForKey>>
71 SetBillingPreferencesPerKey(std::forward<BillingPreferencesPerKeyT>(value));
72 return *this;
73 }
74 template <typename BillingPreferencesPerKeyT = BillingPreferenceForKey>
76 m_billingPreferencesPerKeyHasBeenSet = true;
77 m_billingPreferencesPerKey.emplace_back(std::forward<BillingPreferencesPerKeyT>(value));
78 return *this;
79 }
81 private:
83
84 Aws::Vector<BillingPreferenceForKey> m_billingPreferencesPerKey;
85 bool m_featureHasBeenSet = false;
86 bool m_billingPreferencesPerKeyHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Billing
91} // namespace Aws
void SetBillingPreferencesPerKey(BillingPreferencesPerKeyT &&value)
UpdateBillingPreferencesRequest & AddBillingPreferencesPerKey(BillingPreferencesPerKeyT &&value)
UpdateBillingPreferencesRequest & WithBillingPreferencesPerKey(BillingPreferencesPerKeyT &&value)
AWS_BILLING_API UpdateBillingPreferencesRequest()=default
const Aws::Vector< BillingPreferenceForKey > & GetBillingPreferencesPerKey() const
AWS_BILLING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateBillingPreferencesRequest & WithFeature(BillingFeature value)
AWS_BILLING_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector