AWS SDK for C++  1.9.129
AWS SDK for C++
AssociateEncryptionConfigRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/eks/EKS_EXPORTS.h>
8 #include <aws/eks/EKSRequest.h>
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace EKS
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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::String SerializePayload() const override;
36 
37 
42  inline const Aws::String& GetClusterName() const{ return m_clusterName; }
43 
48  inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
49 
54  inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
55 
60  inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
61 
66  inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
67 
72  inline AssociateEncryptionConfigRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
73 
78  inline AssociateEncryptionConfigRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
79 
84  inline AssociateEncryptionConfigRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
85 
86 
90  inline const Aws::Vector<EncryptionConfig>& GetEncryptionConfig() const{ return m_encryptionConfig; }
91 
95  inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
96 
100  inline void SetEncryptionConfig(const Aws::Vector<EncryptionConfig>& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = value; }
101 
105  inline void SetEncryptionConfig(Aws::Vector<EncryptionConfig>&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig = std::move(value); }
106 
110  inline AssociateEncryptionConfigRequest& WithEncryptionConfig(const Aws::Vector<EncryptionConfig>& value) { SetEncryptionConfig(value); return *this;}
111 
115  inline AssociateEncryptionConfigRequest& WithEncryptionConfig(Aws::Vector<EncryptionConfig>&& value) { SetEncryptionConfig(std::move(value)); return *this;}
116 
120  inline AssociateEncryptionConfigRequest& AddEncryptionConfig(const EncryptionConfig& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig.push_back(value); return *this; }
121 
125  inline AssociateEncryptionConfigRequest& AddEncryptionConfig(EncryptionConfig&& value) { m_encryptionConfigHasBeenSet = true; m_encryptionConfig.push_back(std::move(value)); return *this; }
126 
127 
131  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
132 
136  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
137 
141  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
142 
146  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
147 
151  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
152 
156  inline AssociateEncryptionConfigRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
157 
161  inline AssociateEncryptionConfigRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
162 
166  inline AssociateEncryptionConfigRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
167 
168  private:
169 
170  Aws::String m_clusterName;
171  bool m_clusterNameHasBeenSet;
172 
173  Aws::Vector<EncryptionConfig> m_encryptionConfig;
174  bool m_encryptionConfigHasBeenSet;
175 
176  Aws::String m_clientRequestToken;
177  bool m_clientRequestTokenHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace EKS
182 } // namespace Aws
Aws::EKS::Model::AssociateEncryptionConfigRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: AssociateEncryptionConfigRequest.h:146
Aws::EKS::Model::AssociateEncryptionConfigRequest::SetClusterName
void SetClusterName(const Aws::String &value)
Definition: AssociateEncryptionConfigRequest.h:54
Aws::EKS::Model::AssociateEncryptionConfigRequest::SetEncryptionConfig
void SetEncryptionConfig(const Aws::Vector< EncryptionConfig > &value)
Definition: AssociateEncryptionConfigRequest.h:100
Aws::EKS::Model::AssociateEncryptionConfigRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EKS::Model::AssociateEncryptionConfigRequest::WithClientRequestToken
AssociateEncryptionConfigRequest & WithClientRequestToken(Aws::String &&value)
Definition: AssociateEncryptionConfigRequest.h:161
Aws::EKS::EKSRequest
Definition: EKSRequest.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EKS::Model::AssociateEncryptionConfigRequest
Definition: AssociateEncryptionConfigRequest.h:25
Aws::EKS::Model::AssociateEncryptionConfigRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateEncryptionConfigRequest.h:33
Aws::EKS::Model::AssociateEncryptionConfigRequest::WithClientRequestToken
AssociateEncryptionConfigRequest & WithClientRequestToken(const Aws::String &value)
Definition: AssociateEncryptionConfigRequest.h:156
AWS_EKS_API
#define AWS_EKS_API
Definition: EKS_EXPORTS.h:28
Aws::EKS::Model::AssociateEncryptionConfigRequest::EncryptionConfigHasBeenSet
bool EncryptionConfigHasBeenSet() const
Definition: AssociateEncryptionConfigRequest.h:95
AWSVector.h
Aws::EKS::Model::AssociateEncryptionConfigRequest::SetClusterName
void SetClusterName(Aws::String &&value)
Definition: AssociateEncryptionConfigRequest.h:60
Aws::EKS::Model::EncryptionConfig
Definition: EncryptionConfig.h:34
Aws::EKS::Model::AssociateEncryptionConfigRequest::WithClientRequestToken
AssociateEncryptionConfigRequest & WithClientRequestToken(const char *value)
Definition: AssociateEncryptionConfigRequest.h:166
Aws::EKS::Model::AssociateEncryptionConfigRequest::WithClusterName
AssociateEncryptionConfigRequest & WithClusterName(Aws::String &&value)
Definition: AssociateEncryptionConfigRequest.h:78
Aws::EKS::Model::AssociateEncryptionConfigRequest::ClusterNameHasBeenSet
bool ClusterNameHasBeenSet() const
Definition: AssociateEncryptionConfigRequest.h:48
Aws::EKS::Model::AssociateEncryptionConfigRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: AssociateEncryptionConfigRequest.h:131
Aws::EKS::Model::AssociateEncryptionConfigRequest::WithClusterName
AssociateEncryptionConfigRequest & WithClusterName(const char *value)
Definition: AssociateEncryptionConfigRequest.h:84
Aws::EMRContainers::Model::ContainerProviderType::NOT_SET
@ NOT_SET
Aws::EKS::Model::AssociateEncryptionConfigRequest::GetClusterName
const Aws::String & GetClusterName() const
Definition: AssociateEncryptionConfigRequest.h:42
Aws::EKS::Model::AssociateEncryptionConfigRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: AssociateEncryptionConfigRequest.h:136
Aws::EKS::Model::AssociateEncryptionConfigRequest::WithEncryptionConfig
AssociateEncryptionConfigRequest & WithEncryptionConfig(Aws::Vector< EncryptionConfig > &&value)
Definition: AssociateEncryptionConfigRequest.h:115
EKSRequest.h
Aws::EKS::Model::AssociateEncryptionConfigRequest::AddEncryptionConfig
AssociateEncryptionConfigRequest & AddEncryptionConfig(const EncryptionConfig &value)
Definition: AssociateEncryptionConfigRequest.h:120
AWSString.h
Aws::EKS::Model::AssociateEncryptionConfigRequest::SetEncryptionConfig
void SetEncryptionConfig(Aws::Vector< EncryptionConfig > &&value)
Definition: AssociateEncryptionConfigRequest.h:105
Aws::EKS::Model::AssociateEncryptionConfigRequest::AssociateEncryptionConfigRequest
AssociateEncryptionConfigRequest()
EncryptionConfig.h
Aws::EKS::Model::AssociateEncryptionConfigRequest::SetClusterName
void SetClusterName(const char *value)
Definition: AssociateEncryptionConfigRequest.h:66
Aws::EKS::Model::AssociateEncryptionConfigRequest::GetEncryptionConfig
const Aws::Vector< EncryptionConfig > & GetEncryptionConfig() const
Definition: AssociateEncryptionConfigRequest.h:90
EKS_EXPORTS.h
Aws::EKS::Model::AssociateEncryptionConfigRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: AssociateEncryptionConfigRequest.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::EKS::Model::AssociateEncryptionConfigRequest::WithEncryptionConfig
AssociateEncryptionConfigRequest & WithEncryptionConfig(const Aws::Vector< EncryptionConfig > &value)
Definition: AssociateEncryptionConfigRequest.h:110
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EKS::Model::AssociateEncryptionConfigRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: AssociateEncryptionConfigRequest.h:151
UUID.h
Aws::EKS::Model::AssociateEncryptionConfigRequest::AddEncryptionConfig
AssociateEncryptionConfigRequest & AddEncryptionConfig(EncryptionConfig &&value)
Definition: AssociateEncryptionConfigRequest.h:125
Aws::EKS::Model::AssociateEncryptionConfigRequest::WithClusterName
AssociateEncryptionConfigRequest & WithClusterName(const Aws::String &value)
Definition: AssociateEncryptionConfigRequest.h:72