AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ComputeSavingsPlansConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CostOptimizationHub {
20namespace Model {
21
29 public:
30 AWS_COSTOPTIMIZATIONHUB_API ComputeSavingsPlansConfiguration() = default;
31 AWS_COSTOPTIMIZATIONHUB_API ComputeSavingsPlansConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
42 inline const Aws::String& GetAccountScope() const { return m_accountScope; }
43 inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
44 template <typename AccountScopeT = Aws::String>
45 void SetAccountScope(AccountScopeT&& value) {
46 m_accountScopeHasBeenSet = true;
47 m_accountScope = std::forward<AccountScopeT>(value);
48 }
49 template <typename AccountScopeT = Aws::String>
51 SetAccountScope(std::forward<AccountScopeT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetTerm() const { return m_term; }
61 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
62 template <typename TermT = Aws::String>
63 void SetTerm(TermT&& value) {
64 m_termHasBeenSet = true;
65 m_term = std::forward<TermT>(value);
66 }
67 template <typename TermT = Aws::String>
69 SetTerm(std::forward<TermT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetPaymentOption() const { return m_paymentOption; }
79 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
80 template <typename PaymentOptionT = Aws::String>
81 void SetPaymentOption(PaymentOptionT&& value) {
82 m_paymentOptionHasBeenSet = true;
83 m_paymentOption = std::forward<PaymentOptionT>(value);
84 }
85 template <typename PaymentOptionT = Aws::String>
87 SetPaymentOption(std::forward<PaymentOptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetHourlyCommitment() const { return m_hourlyCommitment; }
97 inline bool HourlyCommitmentHasBeenSet() const { return m_hourlyCommitmentHasBeenSet; }
98 template <typename HourlyCommitmentT = Aws::String>
99 void SetHourlyCommitment(HourlyCommitmentT&& value) {
100 m_hourlyCommitmentHasBeenSet = true;
101 m_hourlyCommitment = std::forward<HourlyCommitmentT>(value);
102 }
103 template <typename HourlyCommitmentT = Aws::String>
105 SetHourlyCommitment(std::forward<HourlyCommitmentT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_accountScope;
111
112 Aws::String m_term;
113
114 Aws::String m_paymentOption;
115
116 Aws::String m_hourlyCommitment;
117 bool m_accountScopeHasBeenSet = false;
118 bool m_termHasBeenSet = false;
119 bool m_paymentOptionHasBeenSet = false;
120 bool m_hourlyCommitmentHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace CostOptimizationHub
125} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API ComputeSavingsPlansConfiguration()=default
ComputeSavingsPlansConfiguration & WithAccountScope(AccountScopeT &&value)
AWS_COSTOPTIMIZATIONHUB_API ComputeSavingsPlansConfiguration(Aws::Utils::Json::JsonView jsonValue)
ComputeSavingsPlansConfiguration & WithHourlyCommitment(HourlyCommitmentT &&value)
ComputeSavingsPlansConfiguration & WithPaymentOption(PaymentOptionT &&value)
AWS_COSTOPTIMIZATIONHUB_API ComputeSavingsPlansConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue