AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
14
15namespace Aws
16{
17namespace KMS
18{
19namespace 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 "ImportKeyMaterial"; }
34
35 AWS_KMS_API Aws::String SerializePayload() const override;
36
38
39
41
59 inline const Aws::String& GetKeyId() const{ return m_keyId; }
60 inline bool KeyIdHasBeenSet() const { return m_keyIdHasBeenSet; }
61 inline void SetKeyId(const Aws::String& value) { m_keyIdHasBeenSet = true; m_keyId = value; }
62 inline void SetKeyId(Aws::String&& value) { m_keyIdHasBeenSet = true; m_keyId = std::move(value); }
63 inline void SetKeyId(const char* value) { m_keyIdHasBeenSet = true; m_keyId.assign(value); }
64 inline ImportKeyMaterialRequest& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
65 inline ImportKeyMaterialRequest& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
66 inline ImportKeyMaterialRequest& WithKeyId(const char* value) { SetKeyId(value); return *this;}
68
70
75 inline const Aws::Utils::ByteBuffer& GetImportToken() const{ return m_importToken; }
76 inline bool ImportTokenHasBeenSet() const { return m_importTokenHasBeenSet; }
77 inline void SetImportToken(const Aws::Utils::ByteBuffer& value) { m_importTokenHasBeenSet = true; m_importToken = value; }
78 inline void SetImportToken(Aws::Utils::ByteBuffer&& value) { m_importTokenHasBeenSet = true; m_importToken = std::move(value); }
80 inline ImportKeyMaterialRequest& WithImportToken(Aws::Utils::ByteBuffer&& value) { SetImportToken(std::move(value)); return *this;}
82
84
90 inline const Aws::Utils::ByteBuffer& GetEncryptedKeyMaterial() const{ return m_encryptedKeyMaterial; }
91 inline bool EncryptedKeyMaterialHasBeenSet() const { return m_encryptedKeyMaterialHasBeenSet; }
92 inline void SetEncryptedKeyMaterial(const Aws::Utils::ByteBuffer& value) { m_encryptedKeyMaterialHasBeenSet = true; m_encryptedKeyMaterial = value; }
93 inline void SetEncryptedKeyMaterial(Aws::Utils::ByteBuffer&& value) { m_encryptedKeyMaterialHasBeenSet = true; m_encryptedKeyMaterial = std::move(value); }
97
99
112 inline const Aws::Utils::DateTime& GetValidTo() const{ return m_validTo; }
113 inline bool ValidToHasBeenSet() const { return m_validToHasBeenSet; }
114 inline void SetValidTo(const Aws::Utils::DateTime& value) { m_validToHasBeenSet = true; m_validTo = value; }
115 inline void SetValidTo(Aws::Utils::DateTime&& value) { m_validToHasBeenSet = true; m_validTo = std::move(value); }
116 inline ImportKeyMaterialRequest& WithValidTo(const Aws::Utils::DateTime& value) { SetValidTo(value); return *this;}
117 inline ImportKeyMaterialRequest& WithValidTo(Aws::Utils::DateTime&& value) { SetValidTo(std::move(value)); return *this;}
119
121
135 inline const ExpirationModelType& GetExpirationModel() const{ return m_expirationModel; }
136 inline bool ExpirationModelHasBeenSet() const { return m_expirationModelHasBeenSet; }
137 inline void SetExpirationModel(const ExpirationModelType& value) { m_expirationModelHasBeenSet = true; m_expirationModel = value; }
138 inline void SetExpirationModel(ExpirationModelType&& value) { m_expirationModelHasBeenSet = true; m_expirationModel = std::move(value); }
140 inline ImportKeyMaterialRequest& WithExpirationModel(ExpirationModelType&& value) { SetExpirationModel(std::move(value)); return *this;}
142 private:
143
144 Aws::String m_keyId;
145 bool m_keyIdHasBeenSet = false;
146
147 Aws::Utils::ByteBuffer m_importToken;
148 bool m_importTokenHasBeenSet = false;
149
150 Aws::Utils::ByteBuffer m_encryptedKeyMaterial;
151 bool m_encryptedKeyMaterialHasBeenSet = false;
152
153 Aws::Utils::DateTime m_validTo;
154 bool m_validToHasBeenSet = false;
155
156 ExpirationModelType m_expirationModel;
157 bool m_expirationModelHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace KMS
162} // namespace Aws
AWS_KMS_API Aws::String SerializePayload() const override
ImportKeyMaterialRequest & WithImportToken(Aws::Utils::ByteBuffer &&value)
void SetEncryptedKeyMaterial(Aws::Utils::ByteBuffer &&value)
void SetExpirationModel(const ExpirationModelType &value)
ImportKeyMaterialRequest & WithExpirationModel(const ExpirationModelType &value)
const ExpirationModelType & GetExpirationModel() const
void SetImportToken(Aws::Utils::ByteBuffer &&value)
ImportKeyMaterialRequest & WithKeyId(const char *value)
ImportKeyMaterialRequest & WithEncryptedKeyMaterial(Aws::Utils::ByteBuffer &&value)
ImportKeyMaterialRequest & WithImportToken(const Aws::Utils::ByteBuffer &value)
virtual const char * GetServiceRequestName() const override
AWS_KMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ImportKeyMaterialRequest & WithExpirationModel(ExpirationModelType &&value)
void SetValidTo(Aws::Utils::DateTime &&value)
ImportKeyMaterialRequest & WithEncryptedKeyMaterial(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::ByteBuffer & GetImportToken() const
void SetValidTo(const Aws::Utils::DateTime &value)
void SetEncryptedKeyMaterial(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::ByteBuffer & GetEncryptedKeyMaterial() const
ImportKeyMaterialRequest & WithValidTo(const Aws::Utils::DateTime &value)
void SetExpirationModel(ExpirationModelType &&value)
ImportKeyMaterialRequest & WithKeyId(const Aws::String &value)
ImportKeyMaterialRequest & WithKeyId(Aws::String &&value)
void SetImportToken(const Aws::Utils::ByteBuffer &value)
const Aws::Utils::DateTime & GetValidTo() const
ImportKeyMaterialRequest & WithValidTo(Aws::Utils::DateTime &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String