AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateEncryptionConfigRequest.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/EKSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/eks/model/EncryptionConfig.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EKS
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EKS_API AssociateEncryptionConfigRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "AssociateEncryptionConfig"; }
34
35 AWS_EKS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetClusterName() const { return m_clusterName; }
43 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
44 template<typename ClusterNameT = Aws::String>
45 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
46 template<typename ClusterNameT = Aws::String>
47 AssociateEncryptionConfigRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
49
51
54 inline const Aws::Vector<EncryptionConfig>& GetEncryptionConfig() const { return m_encryptionConfig; }
55 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
56 template<typename EncryptionConfigT = Aws::Vector<EncryptionConfig>>
57 void SetEncryptionConfig(EncryptionConfigT&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::forward<EncryptionConfigT>(value); }
58 template<typename EncryptionConfigT = Aws::Vector<EncryptionConfig>>
59 AssociateEncryptionConfigRequest& WithEncryptionConfig(EncryptionConfigT&& value) { SetEncryptionConfig(std::forward<EncryptionConfigT>(value)); return *this;}
60 template<typename EncryptionConfigT = EncryptionConfig>
61 AssociateEncryptionConfigRequest& AddEncryptionConfig(EncryptionConfigT&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig.emplace_back(std::forward<EncryptionConfigT>(value)); return *this; }
63
65
69 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
70 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
71 template<typename ClientRequestTokenT = Aws::String>
72 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
73 template<typename ClientRequestTokenT = Aws::String>
74 AssociateEncryptionConfigRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
76 private:
77
78 Aws::String m_clusterName;
79 bool m_clusterNameHasBeenSet = false;
80
81 Aws::Vector<EncryptionConfig> m_encryptionConfig;
82 bool m_encryptionConfigHasBeenSet = false;
83
84 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
85 bool m_clientRequestTokenHasBeenSet = true;
86 };
87
88} // namespace Model
89} // namespace EKS
90} // 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