AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
EksSource.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/resiliencehub/ResilienceHub_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ResilienceHub {
21namespace Model {
22
29class EksSource {
30 public:
31 AWS_RESILIENCEHUB_API EksSource() = default;
32 AWS_RESILIENCEHUB_API EksSource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUB_API EksSource& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
46 inline const Aws::String& GetEksClusterArn() const { return m_eksClusterArn; }
47 inline bool EksClusterArnHasBeenSet() const { return m_eksClusterArnHasBeenSet; }
48 template <typename EksClusterArnT = Aws::String>
49 void SetEksClusterArn(EksClusterArnT&& value) {
50 m_eksClusterArnHasBeenSet = true;
51 m_eksClusterArn = std::forward<EksClusterArnT>(value);
52 }
53 template <typename EksClusterArnT = Aws::String>
54 EksSource& WithEksClusterArn(EksClusterArnT&& value) {
55 SetEksClusterArn(std::forward<EksClusterArnT>(value));
56 return *this;
57 }
59
61
65 inline const Aws::Vector<Aws::String>& GetNamespaces() const { return m_namespaces; }
66 inline bool NamespacesHasBeenSet() const { return m_namespacesHasBeenSet; }
67 template <typename NamespacesT = Aws::Vector<Aws::String>>
68 void SetNamespaces(NamespacesT&& value) {
69 m_namespacesHasBeenSet = true;
70 m_namespaces = std::forward<NamespacesT>(value);
71 }
72 template <typename NamespacesT = Aws::Vector<Aws::String>>
73 EksSource& WithNamespaces(NamespacesT&& value) {
74 SetNamespaces(std::forward<NamespacesT>(value));
75 return *this;
76 }
77 template <typename NamespacesT = Aws::String>
78 EksSource& AddNamespaces(NamespacesT&& value) {
79 m_namespacesHasBeenSet = true;
80 m_namespaces.emplace_back(std::forward<NamespacesT>(value));
81 return *this;
82 }
84 private:
85 Aws::String m_eksClusterArn;
86
87 Aws::Vector<Aws::String> m_namespaces;
88 bool m_eksClusterArnHasBeenSet = false;
89 bool m_namespacesHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace ResilienceHub
94} // namespace Aws
EksSource & AddNamespaces(NamespacesT &&value)
Definition EksSource.h:78
const Aws::Vector< Aws::String > & GetNamespaces() const
Definition EksSource.h:65
AWS_RESILIENCEHUB_API EksSource(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API EksSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetNamespaces(NamespacesT &&value)
Definition EksSource.h:68
EksSource & WithEksClusterArn(EksClusterArnT &&value)
Definition EksSource.h:54
EksSource & WithNamespaces(NamespacesT &&value)
Definition EksSource.h:73
const Aws::String & GetEksClusterArn() const
Definition EksSource.h:46
void SetEksClusterArn(EksClusterArnT &&value)
Definition EksSource.h:49
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUB_API EksSource()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue