AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
UpdatePricingPlanRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iottwinmaker/IoTTwinMakerRequest.h>
10#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
11#include <aws/iottwinmaker/model/PricingMode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IoTTwinMaker {
17namespace Model {
18
22 public:
23 AWS_IOTTWINMAKER_API UpdatePricingPlanRequest() = 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 "UpdatePricingPlan"; }
30
31 AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override;
32
34
37 inline PricingMode GetPricingMode() const { return m_pricingMode; }
38 inline bool PricingModeHasBeenSet() const { return m_pricingModeHasBeenSet; }
39 inline void SetPricingMode(PricingMode value) {
40 m_pricingModeHasBeenSet = true;
41 m_pricingMode = value;
42 }
44 SetPricingMode(value);
45 return *this;
46 }
48
50
53 inline const Aws::Vector<Aws::String>& GetBundleNames() const { return m_bundleNames; }
54 inline bool BundleNamesHasBeenSet() const { return m_bundleNamesHasBeenSet; }
55 template <typename BundleNamesT = Aws::Vector<Aws::String>>
56 void SetBundleNames(BundleNamesT&& value) {
57 m_bundleNamesHasBeenSet = true;
58 m_bundleNames = std::forward<BundleNamesT>(value);
59 }
60 template <typename BundleNamesT = Aws::Vector<Aws::String>>
62 SetBundleNames(std::forward<BundleNamesT>(value));
63 return *this;
64 }
65 template <typename BundleNamesT = Aws::String>
67 m_bundleNamesHasBeenSet = true;
68 m_bundleNames.emplace_back(std::forward<BundleNamesT>(value));
69 return *this;
70 }
72 private:
73 PricingMode m_pricingMode{PricingMode::NOT_SET};
74
75 Aws::Vector<Aws::String> m_bundleNames;
76 bool m_pricingModeHasBeenSet = false;
77 bool m_bundleNamesHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace IoTTwinMaker
82} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_IOTTWINMAKER_API Aws::String SerializePayload() const override
UpdatePricingPlanRequest & AddBundleNames(BundleNamesT &&value)
AWS_IOTTWINMAKER_API UpdatePricingPlanRequest()=default
const Aws::Vector< Aws::String > & GetBundleNames() const
UpdatePricingPlanRequest & WithPricingMode(PricingMode value)
UpdatePricingPlanRequest & WithBundleNames(BundleNamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector