AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SageMakerSavingsPlansConfiguration.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostOptimizationHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COSTOPTIMIZATIONHUB_API SageMakerSavingsPlansConfiguration() = default;
36 AWS_COSTOPTIMIZATIONHUB_API SageMakerSavingsPlansConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAccountScope() const { return m_accountScope; }
46 inline bool AccountScopeHasBeenSet() const { return m_accountScopeHasBeenSet; }
47 template<typename AccountScopeT = Aws::String>
48 void SetAccountScope(AccountScopeT&& value) { m_accountScopeHasBeenSet = true; m_accountScope = std::forward<AccountScopeT>(value); }
49 template<typename AccountScopeT = Aws::String>
50 SageMakerSavingsPlansConfiguration& WithAccountScope(AccountScopeT&& value) { SetAccountScope(std::forward<AccountScopeT>(value)); return *this;}
52
54
57 inline const Aws::String& GetTerm() const { return m_term; }
58 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
59 template<typename TermT = Aws::String>
60 void SetTerm(TermT&& value) { m_termHasBeenSet = true; m_term = std::forward<TermT>(value); }
61 template<typename TermT = Aws::String>
62 SageMakerSavingsPlansConfiguration& WithTerm(TermT&& value) { SetTerm(std::forward<TermT>(value)); return *this;}
64
66
69 inline const Aws::String& GetPaymentOption() const { return m_paymentOption; }
70 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
71 template<typename PaymentOptionT = Aws::String>
72 void SetPaymentOption(PaymentOptionT&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::forward<PaymentOptionT>(value); }
73 template<typename PaymentOptionT = Aws::String>
74 SageMakerSavingsPlansConfiguration& WithPaymentOption(PaymentOptionT&& value) { SetPaymentOption(std::forward<PaymentOptionT>(value)); return *this;}
76
78
81 inline const Aws::String& GetHourlyCommitment() const { return m_hourlyCommitment; }
82 inline bool HourlyCommitmentHasBeenSet() const { return m_hourlyCommitmentHasBeenSet; }
83 template<typename HourlyCommitmentT = Aws::String>
84 void SetHourlyCommitment(HourlyCommitmentT&& value) { m_hourlyCommitmentHasBeenSet = true; m_hourlyCommitment = std::forward<HourlyCommitmentT>(value); }
85 template<typename HourlyCommitmentT = Aws::String>
86 SageMakerSavingsPlansConfiguration& WithHourlyCommitment(HourlyCommitmentT&& value) { SetHourlyCommitment(std::forward<HourlyCommitmentT>(value)); return *this;}
88 private:
89
90 Aws::String m_accountScope;
91 bool m_accountScopeHasBeenSet = false;
92
93 Aws::String m_term;
94 bool m_termHasBeenSet = false;
95
96 Aws::String m_paymentOption;
97 bool m_paymentOptionHasBeenSet = false;
98
99 Aws::String m_hourlyCommitment;
100 bool m_hourlyCommitmentHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CostOptimizationHub
105} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API SageMakerSavingsPlansConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTOPTIMIZATIONHUB_API SageMakerSavingsPlansConfiguration(Aws::Utils::Json::JsonView jsonValue)
SageMakerSavingsPlansConfiguration & WithPaymentOption(PaymentOptionT &&value)
AWS_COSTOPTIMIZATIONHUB_API SageMakerSavingsPlansConfiguration()=default
SageMakerSavingsPlansConfiguration & WithHourlyCommitment(HourlyCommitmentT &&value)
SageMakerSavingsPlansConfiguration & WithAccountScope(AccountScopeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue