AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EncryptionConfig.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#include <aws/eks/model/Provider.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EKS {
22namespace Model {
23
30 public:
31 AWS_EKS_API EncryptionConfig() = default;
35
37
41 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
42 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
43 template <typename ResourcesT = Aws::Vector<Aws::String>>
44 void SetResources(ResourcesT&& value) {
45 m_resourcesHasBeenSet = true;
46 m_resources = std::forward<ResourcesT>(value);
47 }
48 template <typename ResourcesT = Aws::Vector<Aws::String>>
49 EncryptionConfig& WithResources(ResourcesT&& value) {
50 SetResources(std::forward<ResourcesT>(value));
51 return *this;
52 }
53 template <typename ResourcesT = Aws::String>
54 EncryptionConfig& AddResources(ResourcesT&& value) {
55 m_resourcesHasBeenSet = true;
56 m_resources.emplace_back(std::forward<ResourcesT>(value));
57 return *this;
58 }
60
62
66 inline const Provider& GetProvider() const { return m_provider; }
67 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
68 template <typename ProviderT = Provider>
69 void SetProvider(ProviderT&& value) {
70 m_providerHasBeenSet = true;
71 m_provider = std::forward<ProviderT>(value);
72 }
73 template <typename ProviderT = Provider>
74 EncryptionConfig& WithProvider(ProviderT&& value) {
75 SetProvider(std::forward<ProviderT>(value));
76 return *this;
77 }
79 private:
80 Aws::Vector<Aws::String> m_resources;
81
82 Provider m_provider;
83 bool m_resourcesHasBeenSet = false;
84 bool m_providerHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EKS
89} // namespace Aws
const Provider & GetProvider() const
void SetProvider(ProviderT &&value)
EncryptionConfig & WithResources(ResourcesT &&value)
AWS_EKS_API EncryptionConfig()=default
const Aws::Vector< Aws::String > & GetResources() const
AWS_EKS_API EncryptionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EKS_API EncryptionConfig(Aws::Utils::Json::JsonView jsonValue)
void SetResources(ResourcesT &&value)
EncryptionConfig & WithProvider(ProviderT &&value)
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
EncryptionConfig & AddResources(ResourcesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue