AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CreateTieringInput.h
1
6#pragma once
7#include <aws/billingconductor/BillingConductor_EXPORTS.h>
8#include <aws/billingconductor/model/CreateFreeTierConfig.h>
9#include <aws/billingconductor/model/CustomTier.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BillingConductor {
22namespace Model {
23
31 public:
32 AWS_BILLINGCONDUCTOR_API CreateTieringInput() = default;
33 AWS_BILLINGCONDUCTOR_API CreateTieringInput(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BILLINGCONDUCTOR_API CreateTieringInput& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BILLINGCONDUCTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const CreateFreeTierConfig& GetFreeTier() const { return m_freeTier; }
42 inline bool FreeTierHasBeenSet() const { return m_freeTierHasBeenSet; }
43 template <typename FreeTierT = CreateFreeTierConfig>
44 void SetFreeTier(FreeTierT&& value) {
45 m_freeTierHasBeenSet = true;
46 m_freeTier = std::forward<FreeTierT>(value);
47 }
48 template <typename FreeTierT = CreateFreeTierConfig>
49 CreateTieringInput& WithFreeTier(FreeTierT&& value) {
50 SetFreeTier(std::forward<FreeTierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<CustomTier>& GetCustomTiers() const { return m_customTiers; }
60 inline bool CustomTiersHasBeenSet() const { return m_customTiersHasBeenSet; }
61 template <typename CustomTiersT = Aws::Vector<CustomTier>>
62 void SetCustomTiers(CustomTiersT&& value) {
63 m_customTiersHasBeenSet = true;
64 m_customTiers = std::forward<CustomTiersT>(value);
65 }
66 template <typename CustomTiersT = Aws::Vector<CustomTier>>
67 CreateTieringInput& WithCustomTiers(CustomTiersT&& value) {
68 SetCustomTiers(std::forward<CustomTiersT>(value));
69 return *this;
70 }
71 template <typename CustomTiersT = CustomTier>
72 CreateTieringInput& AddCustomTiers(CustomTiersT&& value) {
73 m_customTiersHasBeenSet = true;
74 m_customTiers.emplace_back(std::forward<CustomTiersT>(value));
75 return *this;
76 }
78 private:
79 CreateFreeTierConfig m_freeTier;
80
81 Aws::Vector<CustomTier> m_customTiers;
82 bool m_freeTierHasBeenSet = false;
83 bool m_customTiersHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace BillingConductor
88} // namespace Aws
AWS_BILLINGCONDUCTOR_API CreateTieringInput & operator=(Aws::Utils::Json::JsonView jsonValue)
const CreateFreeTierConfig & GetFreeTier() const
AWS_BILLINGCONDUCTOR_API CreateTieringInput()=default
CreateTieringInput & WithCustomTiers(CustomTiersT &&value)
const Aws::Vector< CustomTier > & GetCustomTiers() const
AWS_BILLINGCONDUCTOR_API Aws::Utils::Json::JsonValue Jsonize() const
CreateTieringInput & AddCustomTiers(CustomTiersT &&value)
CreateTieringInput & WithFreeTier(FreeTierT &&value)
AWS_BILLINGCONDUCTOR_API CreateTieringInput(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue