AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ImportKeyMaterialRequest.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/kms/KMSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/kms/model/ExpirationModelType.h>
13#include <aws/kms/model/ImportType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace KMS
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_KMS_API ImportKeyMaterialRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ImportKeyMaterial"; }
35
36 AWS_KMS_API Aws::String SerializePayload() const override;
37
39
40
42
60 inline const Aws::String& GetKeyId() const { return m_keyId; }
61 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
62 template<typename KeyIdT = Aws::String>
63 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
64 template<typename KeyIdT = Aws::String>
65 ImportKeyMaterialRequest& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
67
69
74 inline const Aws::Utils::ByteBuffer& GetImportToken() const { return m_importToken; }
75 inline bool ImportTokenHasBeenSet() const { return m_importTokenHasBeenSet; }
76 template<typename ImportTokenT = Aws::Utils::ByteBuffer>
77 void SetImportToken(ImportTokenT&& value) { m_importTokenHasBeenSet = true; m_importToken = std::forward<ImportTokenT>(value); }
78 template<typename ImportTokenT = Aws::Utils::ByteBuffer>
79 ImportKeyMaterialRequest& WithImportToken(ImportTokenT&& value) { SetImportToken(std::forward<ImportTokenT>(value)); return *this;}
81
83
89 inline const Aws::Utils::ByteBuffer& GetEncryptedKeyMaterial() const { return m_encryptedKeyMaterial; }
90 inline bool EncryptedKeyMaterialHasBeenSet() const { return m_encryptedKeyMaterialHasBeenSet; }
91 template<typename EncryptedKeyMaterialT = Aws::Utils::ByteBuffer>
92 void SetEncryptedKeyMaterial(EncryptedKeyMaterialT&& value) { m_encryptedKeyMaterialHasBeenSet = true; m_encryptedKeyMaterial = std::forward<EncryptedKeyMaterialT>(value); }
93 template<typename EncryptedKeyMaterialT = Aws::Utils::ByteBuffer>
94 ImportKeyMaterialRequest& WithEncryptedKeyMaterial(EncryptedKeyMaterialT&& value) { SetEncryptedKeyMaterial(std::forward<EncryptedKeyMaterialT>(value)); return *this;}
96
98
111 inline const Aws::Utils::DateTime& GetValidTo() const { return m_validTo; }
112 inline bool ValidToHasBeenSet() const { return m_validToHasBeenSet; }
113 template<typename ValidToT = Aws::Utils::DateTime>
114 void SetValidTo(ValidToT&& value) { m_validToHasBeenSet = true; m_validTo = std::forward<ValidToT>(value); }
115 template<typename ValidToT = Aws::Utils::DateTime>
116 ImportKeyMaterialRequest& WithValidTo(ValidToT&& value) { SetValidTo(std::forward<ValidToT>(value)); return *this;}
118
120
134 inline ExpirationModelType GetExpirationModel() const { return m_expirationModel; }
135 inline bool ExpirationModelHasBeenSet() const { return m_expirationModelHasBeenSet; }
136 inline void SetExpirationModel(ExpirationModelType value) { m_expirationModelHasBeenSet = true; m_expirationModel = value; }
139
141
150 inline ImportType GetImportType() const { return m_importType; }
151 inline bool ImportTypeHasBeenSet() const { return m_importTypeHasBeenSet; }
152 inline void SetImportType(ImportType value) { m_importTypeHasBeenSet = true; m_importType = value; }
153 inline ImportKeyMaterialRequest& WithImportType(ImportType value) { SetImportType(value); return *this;}
155
157
163 inline const Aws::String& GetKeyMaterialDescription() const { return m_keyMaterialDescription; }
164 inline bool KeyMaterialDescriptionHasBeenSet() const { return m_keyMaterialDescriptionHasBeenSet; }
165 template<typename KeyMaterialDescriptionT = Aws::String>
166 void SetKeyMaterialDescription(KeyMaterialDescriptionT&& value) { m_keyMaterialDescriptionHasBeenSet = true; m_keyMaterialDescription = std::forward<KeyMaterialDescriptionT>(value); }
167 template<typename KeyMaterialDescriptionT = Aws::String>
168 ImportKeyMaterialRequest& WithKeyMaterialDescription(KeyMaterialDescriptionT&& value) { SetKeyMaterialDescription(std::forward<KeyMaterialDescriptionT>(value)); return *this;}
170
172
185 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
186 inline bool KeyMaterialIdHasBeenSet() const { return m_keyMaterialIdHasBeenSet; }
187 template<typename KeyMaterialIdT = Aws::String>
188 void SetKeyMaterialId(KeyMaterialIdT&& value) { m_keyMaterialIdHasBeenSet = true; m_keyMaterialId = std::forward<KeyMaterialIdT>(value); }
189 template<typename KeyMaterialIdT = Aws::String>
190 ImportKeyMaterialRequest& WithKeyMaterialId(KeyMaterialIdT&& value) { SetKeyMaterialId(std::forward<KeyMaterialIdT>(value)); return *this;}
192 private:
193
194 Aws::String m_keyId;
195 bool m_keyIdHasBeenSet = false;
196
197 Aws::Utils::ByteBuffer m_importToken{};
198 bool m_importTokenHasBeenSet = false;
199
200 Aws::Utils::ByteBuffer m_encryptedKeyMaterial{};
201 bool m_encryptedKeyMaterialHasBeenSet = false;
202
203 Aws::Utils::DateTime m_validTo{};
204 bool m_validToHasBeenSet = false;
205
207 bool m_expirationModelHasBeenSet = false;
208
209 ImportType m_importType{ImportType::NOT_SET};
210 bool m_importTypeHasBeenSet = false;
211
212 Aws::String m_keyMaterialDescription;
213 bool m_keyMaterialDescriptionHasBeenSet = false;
214
215 Aws::String m_keyMaterialId;
216 bool m_keyMaterialIdHasBeenSet = false;
217 };
218
219} // namespace Model
220} // namespace KMS
221} // namespace Aws
AWS_KMS_API Aws::String SerializePayload() const override
ImportKeyMaterialRequest & WithImportToken(ImportTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_KMS_API ImportKeyMaterialRequest()=default
ImportKeyMaterialRequest & WithKeyId(KeyIdT &&value)
const Aws::Utils::ByteBuffer & GetImportToken() const
ImportKeyMaterialRequest & WithImportType(ImportType value)
const Aws::Utils::ByteBuffer & GetEncryptedKeyMaterial() const
void SetKeyMaterialDescription(KeyMaterialDescriptionT &&value)
ImportKeyMaterialRequest & WithKeyMaterialId(KeyMaterialIdT &&value)
ImportKeyMaterialRequest & WithExpirationModel(ExpirationModelType value)
ImportKeyMaterialRequest & WithValidTo(ValidToT &&value)
void SetExpirationModel(ExpirationModelType value)
void SetEncryptedKeyMaterial(EncryptedKeyMaterialT &&value)
const Aws::Utils::DateTime & GetValidTo() const
ImportKeyMaterialRequest & WithEncryptedKeyMaterial(EncryptedKeyMaterialT &&value)
ImportKeyMaterialRequest & WithKeyMaterialDescription(KeyMaterialDescriptionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String