AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ScheduleKeyDeletionResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/kms/model/KeyState.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace KMS
26{
27namespace Model
28{
30 {
31 public:
32 AWS_KMS_API ScheduleKeyDeletionResult() = default;
35
36
38
43 inline const Aws::String& GetKeyId() const { return m_keyId; }
44 template<typename KeyIdT = Aws::String>
45 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
46 template<typename KeyIdT = Aws::String>
47 ScheduleKeyDeletionResult& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
49
51
57 inline const Aws::Utils::DateTime& GetDeletionDate() const { return m_deletionDate; }
58 template<typename DeletionDateT = Aws::Utils::DateTime>
59 void SetDeletionDate(DeletionDateT&& value) { m_deletionDateHasBeenSet = true; m_deletionDate = std::forward<DeletionDateT>(value); }
60 template<typename DeletionDateT = Aws::Utils::DateTime>
61 ScheduleKeyDeletionResult& WithDeletionDate(DeletionDateT&& value) { SetDeletionDate(std::forward<DeletionDateT>(value)); return *this;}
63
65
71 inline KeyState GetKeyState() const { return m_keyState; }
72 inline void SetKeyState(KeyState value) { m_keyStateHasBeenSet = true; m_keyState = value; }
73 inline ScheduleKeyDeletionResult& WithKeyState(KeyState value) { SetKeyState(value); return *this;}
75
77
83 inline int GetPendingWindowInDays() const { return m_pendingWindowInDays; }
84 inline void SetPendingWindowInDays(int value) { m_pendingWindowInDaysHasBeenSet = true; m_pendingWindowInDays = value; }
87
89
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template<typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
93 template<typename RequestIdT = Aws::String>
94 ScheduleKeyDeletionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
96 private:
97
98 Aws::String m_keyId;
99 bool m_keyIdHasBeenSet = false;
100
101 Aws::Utils::DateTime m_deletionDate{};
102 bool m_deletionDateHasBeenSet = false;
103
104 KeyState m_keyState{KeyState::NOT_SET};
105 bool m_keyStateHasBeenSet = false;
106
107 int m_pendingWindowInDays{0};
108 bool m_pendingWindowInDaysHasBeenSet = false;
109
110 Aws::String m_requestId;
111 bool m_requestIdHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace KMS
116} // 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)
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