AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountScope(const Aws::String& value) { m_accountScopeHasBeenSet = true; m_accountScope = value; }
48 inline void SetAccountScope(Aws::String&& value) { m_accountScopeHasBeenSet = true; m_accountScope = std::move(value); }
49 inline void SetAccountScope(const char* value) { m_accountScopeHasBeenSet = true; m_accountScope.assign(value); }
51 inline SageMakerSavingsPlansConfiguration& WithAccountScope(Aws::String&& value) { SetAccountScope(std::move(value)); return *this;}
52 inline SageMakerSavingsPlansConfiguration& WithAccountScope(const char* value) { SetAccountScope(value); return *this;}
54
56
59 inline const Aws::String& GetTerm() const{ return m_term; }
60 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
61 inline void SetTerm(const Aws::String& value) { m_termHasBeenSet = true; m_term = value; }
62 inline void SetTerm(Aws::String&& value) { m_termHasBeenSet = true; m_term = std::move(value); }
63 inline void SetTerm(const char* value) { m_termHasBeenSet = true; m_term.assign(value); }
64 inline SageMakerSavingsPlansConfiguration& WithTerm(const Aws::String& value) { SetTerm(value); return *this;}
65 inline SageMakerSavingsPlansConfiguration& WithTerm(Aws::String&& value) { SetTerm(std::move(value)); return *this;}
66 inline SageMakerSavingsPlansConfiguration& WithTerm(const char* value) { SetTerm(value); return *this;}
68
70
73 inline const Aws::String& GetPaymentOption() const{ return m_paymentOption; }
74 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
75 inline void SetPaymentOption(const Aws::String& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
76 inline void SetPaymentOption(Aws::String&& value) { m_paymentOptionHasBeenSet = true; m_paymentOption = std::move(value); }
77 inline void SetPaymentOption(const char* value) { m_paymentOptionHasBeenSet = true; m_paymentOption.assign(value); }
79 inline SageMakerSavingsPlansConfiguration& WithPaymentOption(Aws::String&& value) { SetPaymentOption(std::move(value)); return *this;}
80 inline SageMakerSavingsPlansConfiguration& WithPaymentOption(const char* value) { SetPaymentOption(value); return *this;}
82
84
87 inline const Aws::String& GetHourlyCommitment() const{ return m_hourlyCommitment; }
88 inline bool HourlyCommitmentHasBeenSet() const { return m_hourlyCommitmentHasBeenSet; }
89 inline void SetHourlyCommitment(const Aws::String& value) { m_hourlyCommitmentHasBeenSet = true; m_hourlyCommitment = value; }
90 inline void SetHourlyCommitment(Aws::String&& value) { m_hourlyCommitmentHasBeenSet = true; m_hourlyCommitment = std::move(value); }
91 inline void SetHourlyCommitment(const char* value) { m_hourlyCommitmentHasBeenSet = true; m_hourlyCommitment.assign(value); }
94 inline SageMakerSavingsPlansConfiguration& WithHourlyCommitment(const char* value) { SetHourlyCommitment(value); return *this;}
96 private:
97
98 Aws::String m_accountScope;
99 bool m_accountScopeHasBeenSet = false;
100
101 Aws::String m_term;
102 bool m_termHasBeenSet = false;
103
104 Aws::String m_paymentOption;
105 bool m_paymentOptionHasBeenSet = false;
106
107 Aws::String m_hourlyCommitment;
108 bool m_hourlyCommitmentHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CostOptimizationHub
113} // namespace Aws
SageMakerSavingsPlansConfiguration & WithPaymentOption(const Aws::String &value)
SageMakerSavingsPlansConfiguration & WithAccountScope(Aws::String &&value)
AWS_COSTOPTIMIZATIONHUB_API SageMakerSavingsPlansConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
SageMakerSavingsPlansConfiguration & WithAccountScope(const Aws::String &value)
AWS_COSTOPTIMIZATIONHUB_API SageMakerSavingsPlansConfiguration(Aws::Utils::Json::JsonView jsonValue)
SageMakerSavingsPlansConfiguration & WithHourlyCommitment(const Aws::String &value)
SageMakerSavingsPlansConfiguration & WithPaymentOption(Aws::String &&value)
SageMakerSavingsPlansConfiguration & WithAccountScope(const char *value)
SageMakerSavingsPlansConfiguration & WithHourlyCommitment(const char *value)
SageMakerSavingsPlansConfiguration & WithPaymentOption(const char *value)
SageMakerSavingsPlansConfiguration & WithHourlyCommitment(Aws::String &&value)
SageMakerSavingsPlansConfiguration & WithTerm(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue