AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
ScheduleKeyDeletionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/KeyState.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace KMS {
25namespace Model {
27 public:
28 AWS_KMS_API ScheduleKeyDeletionResult() = default;
31
33
38 inline const Aws::String& GetKeyId() const { return m_keyId; }
39 template <typename KeyIdT = Aws::String>
40 void SetKeyId(KeyIdT&& value) {
41 m_keyIdHasBeenSet = true;
42 m_keyId = std::forward<KeyIdT>(value);
43 }
44 template <typename KeyIdT = Aws::String>
46 SetKeyId(std::forward<KeyIdT>(value));
47 return *this;
48 }
50
52
58 inline const Aws::Utils::DateTime& GetDeletionDate() const { return m_deletionDate; }
59 template <typename DeletionDateT = Aws::Utils::DateTime>
60 void SetDeletionDate(DeletionDateT&& value) {
61 m_deletionDateHasBeenSet = true;
62 m_deletionDate = std::forward<DeletionDateT>(value);
63 }
64 template <typename DeletionDateT = Aws::Utils::DateTime>
66 SetDeletionDate(std::forward<DeletionDateT>(value));
67 return *this;
68 }
70
72
78 inline KeyState GetKeyState() const { return m_keyState; }
79 inline void SetKeyState(KeyState value) {
80 m_keyStateHasBeenSet = true;
81 m_keyState = value;
82 }
84 SetKeyState(value);
85 return *this;
86 }
88
90
96 inline int GetPendingWindowInDays() const { return m_pendingWindowInDays; }
97 inline void SetPendingWindowInDays(int value) {
98 m_pendingWindowInDaysHasBeenSet = true;
99 m_pendingWindowInDays = value;
100 }
103 return *this;
104 }
106
108
109 inline const Aws::String& GetRequestId() const { return m_requestId; }
110 template <typename RequestIdT = Aws::String>
111 void SetRequestId(RequestIdT&& value) {
112 m_requestIdHasBeenSet = true;
113 m_requestId = std::forward<RequestIdT>(value);
114 }
115 template <typename RequestIdT = Aws::String>
117 SetRequestId(std::forward<RequestIdT>(value));
118 return *this;
119 }
121 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
122
123 private:
124 Aws::String m_keyId;
125
126 Aws::Utils::DateTime m_deletionDate{};
127
128 KeyState m_keyState{KeyState::NOT_SET};
129
130 int m_pendingWindowInDays{0};
131
132 Aws::String m_requestId;
133 Aws::Http::HttpResponseCode m_HttpResponseCode;
134 bool m_keyIdHasBeenSet = false;
135 bool m_deletionDateHasBeenSet = false;
136 bool m_keyStateHasBeenSet = false;
137 bool m_pendingWindowInDaysHasBeenSet = false;
138 bool m_requestIdHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace KMS
143} // namespace Aws
AWS_KMS_API ScheduleKeyDeletionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ScheduleKeyDeletionResult & WithKeyState(KeyState value)
AWS_KMS_API ScheduleKeyDeletionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API ScheduleKeyDeletionResult()=default
ScheduleKeyDeletionResult & WithKeyId(KeyIdT &&value)
ScheduleKeyDeletionResult & WithDeletionDate(DeletionDateT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ScheduleKeyDeletionResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetDeletionDate() const
ScheduleKeyDeletionResult & WithPendingWindowInDays(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue