AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Compatibility.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.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 EKS
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EKS_API Compatibility() = default;
39
40
42
45 inline const Aws::String& GetClusterVersion() const { return m_clusterVersion; }
46 inline bool ClusterVersionHasBeenSet() const { return m_clusterVersionHasBeenSet; }
47 template<typename ClusterVersionT = Aws::String>
48 void SetClusterVersion(ClusterVersionT&& value) { m_clusterVersionHasBeenSet = true; m_clusterVersion = std::forward<ClusterVersionT>(value); }
49 template<typename ClusterVersionT = Aws::String>
50 Compatibility& WithClusterVersion(ClusterVersionT&& value) { SetClusterVersion(std::forward<ClusterVersionT>(value)); return *this;}
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) { m_platformVersionsHasBeenSet = true; m_platformVersions = std::forward<PlatformVersionsT>(value); }
61 template<typename PlatformVersionsT = Aws::Vector<Aws::String>>
62 Compatibility& WithPlatformVersions(PlatformVersionsT&& value) { SetPlatformVersions(std::forward<PlatformVersionsT>(value)); return *this;}
63 template<typename PlatformVersionsT = Aws::String>
64 Compatibility& AddPlatformVersions(PlatformVersionsT&& value) { m_platformVersionsHasBeenSet = true; m_platformVersions.emplace_back(std::forward<PlatformVersionsT>(value)); return *this; }
66
68
71 inline bool GetDefaultVersion() const { return m_defaultVersion; }
72 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
73 inline void SetDefaultVersion(bool value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; }
74 inline Compatibility& WithDefaultVersion(bool value) { SetDefaultVersion(value); return *this;}
76 private:
77
78 Aws::String m_clusterVersion;
79 bool m_clusterVersionHasBeenSet = false;
80
81 Aws::Vector<Aws::String> m_platformVersions;
82 bool m_platformVersionsHasBeenSet = false;
83
84 bool m_defaultVersion{false};
85 bool m_defaultVersionHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace EKS
90} // 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