AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ImportKeyMaterialResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kms/KMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace KMS {
23namespace Model {
25 public:
26 AWS_KMS_API ImportKeyMaterialResult() = default;
29
31
36 inline const Aws::String& GetKeyId() const { return m_keyId; }
37 template <typename KeyIdT = Aws::String>
38 void SetKeyId(KeyIdT&& value) {
39 m_keyIdHasBeenSet = true;
40 m_keyId = std::forward<KeyIdT>(value);
41 }
42 template <typename KeyIdT = Aws::String>
44 SetKeyId(std::forward<KeyIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetKeyMaterialId() const { return m_keyMaterialId; }
54 template <typename KeyMaterialIdT = Aws::String>
55 void SetKeyMaterialId(KeyMaterialIdT&& value) {
56 m_keyMaterialIdHasBeenSet = true;
57 m_keyMaterialId = std::forward<KeyMaterialIdT>(value);
58 }
59 template <typename KeyMaterialIdT = Aws::String>
60 ImportKeyMaterialResult& WithKeyMaterialId(KeyMaterialIdT&& value) {
61 SetKeyMaterialId(std::forward<KeyMaterialIdT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template <typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) {
71 m_requestIdHasBeenSet = true;
72 m_requestId = std::forward<RequestIdT>(value);
73 }
74 template <typename RequestIdT = Aws::String>
76 SetRequestId(std::forward<RequestIdT>(value));
77 return *this;
78 }
80 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
81
82 private:
83 Aws::String m_keyId;
84
85 Aws::String m_keyMaterialId;
86
87 Aws::String m_requestId;
88 Aws::Http::HttpResponseCode m_HttpResponseCode;
89 bool m_keyIdHasBeenSet = false;
90 bool m_keyMaterialIdHasBeenSet = false;
91 bool m_requestIdHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace KMS
96} // namespace Aws
AWS_KMS_API ImportKeyMaterialResult()=default
ImportKeyMaterialResult & WithKeyMaterialId(KeyMaterialIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ImportKeyMaterialResult & WithRequestId(RequestIdT &&value)
AWS_KMS_API ImportKeyMaterialResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ImportKeyMaterialResult & WithKeyId(KeyIdT &&value)
AWS_KMS_API ImportKeyMaterialResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue