AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PreferredCommitment.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/cost-optimization-hub/model/Term.h>
9#include <aws/cost-optimization-hub/model/PaymentOption.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CostOptimizationHub
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment() = default;
38 AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline Term GetTerm() const { return m_term; }
49 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
50 inline void SetTerm(Term value) { m_termHasBeenSet = true; m_term = value; }
51 inline PreferredCommitment& WithTerm(Term value) { SetTerm(value); return *this;}
53
55
60 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
61 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
62 inline void SetPaymentOption(PaymentOption value) { m_paymentOptionHasBeenSet = true; m_paymentOption = value; }
65 private:
66
67 Term m_term{Term::NOT_SET};
68 bool m_termHasBeenSet = false;
69
71 bool m_paymentOptionHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace CostOptimizationHub
76} // namespace Aws
AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment(Aws::Utils::Json::JsonView jsonValue)
PreferredCommitment & WithPaymentOption(PaymentOption value)
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment()=default
Aws::Utils::Json::JsonValue JsonValue