AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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/PaymentOption.h>
9#include <aws/cost-optimization-hub/model/Term.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CostOptimizationHub {
21namespace Model {
22
31 public:
32 AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment() = default;
33 AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COSTOPTIMIZATIONHUB_API PreferredCommitment& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline Term GetTerm() const { return m_term; }
43 inline bool TermHasBeenSet() const { return m_termHasBeenSet; }
44 inline void SetTerm(Term value) {
45 m_termHasBeenSet = true;
46 m_term = value;
47 }
49 SetTerm(value);
50 return *this;
51 }
53
55
60 inline PaymentOption GetPaymentOption() const { return m_paymentOption; }
61 inline bool PaymentOptionHasBeenSet() const { return m_paymentOptionHasBeenSet; }
62 inline void SetPaymentOption(PaymentOption value) {
63 m_paymentOptionHasBeenSet = true;
64 m_paymentOption = value;
65 }
67 SetPaymentOption(value);
68 return *this;
69 }
71 private:
72 Term m_term{Term::NOT_SET};
73
75 bool m_termHasBeenSet = false;
76 bool m_paymentOptionHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CostOptimizationHub
81} // 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