AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Compatibility.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/eks/EKS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace EKS {
21namespace Model {
22
29 public:
30 AWS_EKS_API Compatibility() = default;
34
36
39 inline const Aws::String& GetClusterVersion() const { return m_clusterVersion; }
40 inline bool ClusterVersionHasBeenSet() const { return m_clusterVersionHasBeenSet; }
41 template <typename ClusterVersionT = Aws::String>
42 void SetClusterVersion(ClusterVersionT&& value) {
43 m_clusterVersionHasBeenSet = true;
44 m_clusterVersion = std::forward<ClusterVersionT>(value);
45 }
46 template <typename ClusterVersionT = Aws::String>
47 Compatibility& WithClusterVersion(ClusterVersionT&& value) {
48 SetClusterVersion(std::forward<ClusterVersionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<Aws::String>& GetPlatformVersions() const { return m_platformVersions; }
58 inline bool PlatformVersionsHasBeenSet() const { return m_platformVersionsHasBeenSet; }
59 template <typename PlatformVersionsT = Aws::Vector<Aws::String>>
60 void SetPlatformVersions(PlatformVersionsT&& value) {
61 m_platformVersionsHasBeenSet = true;
62 m_platformVersions = std::forward<PlatformVersionsT>(value);
63 }
64 template <typename PlatformVersionsT = Aws::Vector<Aws::String>>
65 Compatibility& WithPlatformVersions(PlatformVersionsT&& value) {
66 SetPlatformVersions(std::forward<PlatformVersionsT>(value));
67 return *this;
68 }
69 template <typename PlatformVersionsT = Aws::String>
70 Compatibility& AddPlatformVersions(PlatformVersionsT&& value) {
71 m_platformVersionsHasBeenSet = true;
72 m_platformVersions.emplace_back(std::forward<PlatformVersionsT>(value));
73 return *this;
74 }
76
78
81 inline bool GetDefaultVersion() const { return m_defaultVersion; }
82 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
83 inline void SetDefaultVersion(bool value) {
84 m_defaultVersionHasBeenSet = true;
85 m_defaultVersion = value;
86 }
87 inline Compatibility& WithDefaultVersion(bool value) {
88 SetDefaultVersion(value);
89 return *this;
90 }
92 private:
93 Aws::String m_clusterVersion;
94
95 Aws::Vector<Aws::String> m_platformVersions;
96
97 bool m_defaultVersion{false};
98 bool m_clusterVersionHasBeenSet = false;
99 bool m_platformVersionsHasBeenSet = false;
100 bool m_defaultVersionHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace EKS
105} // namespace Aws
void SetDefaultVersion(bool value)
Compatibility & WithClusterVersion(ClusterVersionT &&value)
void SetClusterVersion(ClusterVersionT &&value)
Compatibility & WithPlatformVersions(PlatformVersionsT &&value)
const Aws::String & GetClusterVersion() const
Compatibility & AddPlatformVersions(PlatformVersionsT &&value)
AWS_EKS_API Compatibility(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API Compatibility()=default
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EKS_API Compatibility & operator=(Aws::Utils::Json::JsonView jsonValue)
Compatibility & WithDefaultVersion(bool value)
void SetPlatformVersions(PlatformVersionsT &&value)
const Aws::Vector< Aws::String > & GetPlatformVersions() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue