AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EksAnywhereSubscriptionTerm.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/model/EksAnywhereSubscriptionTermUnit.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EKS {
20namespace Model {
21
31 public:
32 AWS_EKS_API EksAnywhereSubscriptionTerm() = default;
36
38
42 inline int GetDuration() const { return m_duration; }
43 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
44 inline void SetDuration(int value) {
45 m_durationHasBeenSet = true;
46 m_duration = value;
47 }
49 SetDuration(value);
50 return *this;
51 }
53
55
58 inline EksAnywhereSubscriptionTermUnit GetUnit() const { return m_unit; }
59 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
61 m_unitHasBeenSet = true;
62 m_unit = value;
63 }
65 SetUnit(value);
66 return *this;
67 }
69 private:
70 int m_duration{0};
71
73 bool m_durationHasBeenSet = false;
74 bool m_unitHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace EKS
79} // namespace Aws
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
EksAnywhereSubscriptionTermUnit GetUnit() const
EksAnywhereSubscriptionTerm & WithUnit(EksAnywhereSubscriptionTermUnit value)
AWS_EKS_API EksAnywhereSubscriptionTerm()=default
AWS_EKS_API EksAnywhereSubscriptionTerm & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API EksAnywhereSubscriptionTerm(Aws::Utils::Json::JsonView jsonValue)
void SetUnit(EksAnywhereSubscriptionTermUnit value)
EksAnywhereSubscriptionTerm & WithDuration(int value)
Aws::Utils::Json::JsonValue JsonValue