AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssociateEncryptionConfigRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/eks/EKSRequest.h>
11#include <aws/eks/EKS_EXPORTS.h>
12#include <aws/eks/model/EncryptionConfig.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EKS {
18namespace Model {
19
23 public:
24 AWS_EKS_API AssociateEncryptionConfigRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AssociateEncryptionConfig"; }
31
32 AWS_EKS_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetClusterName() const { return m_clusterName; }
39 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
40 template <typename ClusterNameT = Aws::String>
41 void SetClusterName(ClusterNameT&& value) {
42 m_clusterNameHasBeenSet = true;
43 m_clusterName = std::forward<ClusterNameT>(value);
44 }
45 template <typename ClusterNameT = Aws::String>
47 SetClusterName(std::forward<ClusterNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::Vector<EncryptionConfig>& GetEncryptionConfig() const { return m_encryptionConfig; }
57 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
58 template <typename EncryptionConfigT = Aws::Vector<EncryptionConfig>>
59 void SetEncryptionConfig(EncryptionConfigT&& value) {
60 m_encryptionConfigHasBeenSet = true;
61 m_encryptionConfig = std::forward<EncryptionConfigT>(value);
62 }
63 template <typename EncryptionConfigT = Aws::Vector<EncryptionConfig>>
65 SetEncryptionConfig(std::forward<EncryptionConfigT>(value));
66 return *this;
67 }
68 template <typename EncryptionConfigT = EncryptionConfig>
70 m_encryptionConfigHasBeenSet = true;
71 m_encryptionConfig.emplace_back(std::forward<EncryptionConfigT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
82 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
83 template <typename ClientRequestTokenT = Aws::String>
84 void SetClientRequestToken(ClientRequestTokenT&& value) {
85 m_clientRequestTokenHasBeenSet = true;
86 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
87 }
88 template <typename ClientRequestTokenT = Aws::String>
90 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_clusterName;
96
97 Aws::Vector<EncryptionConfig> m_encryptionConfig;
98
99 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
100 bool m_clusterNameHasBeenSet = false;
101 bool m_encryptionConfigHasBeenSet = false;
102 bool m_clientRequestTokenHasBeenSet = true;
103};
104
105} // namespace Model
106} // namespace EKS
107} // namespace Aws
AssociateEncryptionConfigRequest & WithClusterName(ClusterNameT &&value)
AssociateEncryptionConfigRequest & WithEncryptionConfig(EncryptionConfigT &&value)
const Aws::Vector< EncryptionConfig > & GetEncryptionConfig() const
AssociateEncryptionConfigRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AssociateEncryptionConfigRequest & AddEncryptionConfig(EncryptionConfigT &&value)
AWS_EKS_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector