AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetKeyRotationStatusResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.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 GetKeyRotationStatusResult() = default;
29
31
34 inline bool GetKeyRotationEnabled() const { return m_keyRotationEnabled; }
35 inline void SetKeyRotationEnabled(bool value) {
36 m_keyRotationEnabledHasBeenSet = true;
37 m_keyRotationEnabled = value;
38 }
41 return *this;
42 }
44
46
49 inline const Aws::String& GetKeyId() const { return m_keyId; }
50 template <typename KeyIdT = Aws::String>
51 void SetKeyId(KeyIdT&& value) {
52 m_keyIdHasBeenSet = true;
53 m_keyId = std::forward<KeyIdT>(value);
54 }
55 template <typename KeyIdT = Aws::String>
57 SetKeyId(std::forward<KeyIdT>(value));
58 return *this;
59 }
61
63
67 inline int GetRotationPeriodInDays() const { return m_rotationPeriodInDays; }
68 inline void SetRotationPeriodInDays(int value) {
69 m_rotationPeriodInDaysHasBeenSet = true;
70 m_rotationPeriodInDays = value;
71 }
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetNextRotationDate() const { return m_nextRotationDate; }
83 template <typename NextRotationDateT = Aws::Utils::DateTime>
84 void SetNextRotationDate(NextRotationDateT&& value) {
85 m_nextRotationDateHasBeenSet = true;
86 m_nextRotationDate = std::forward<NextRotationDateT>(value);
87 }
88 template <typename NextRotationDateT = Aws::Utils::DateTime>
90 SetNextRotationDate(std::forward<NextRotationDateT>(value));
91 return *this;
92 }
94
96
104 inline const Aws::Utils::DateTime& GetOnDemandRotationStartDate() const { return m_onDemandRotationStartDate; }
105 template <typename OnDemandRotationStartDateT = Aws::Utils::DateTime>
106 void SetOnDemandRotationStartDate(OnDemandRotationStartDateT&& value) {
107 m_onDemandRotationStartDateHasBeenSet = true;
108 m_onDemandRotationStartDate = std::forward<OnDemandRotationStartDateT>(value);
109 }
110 template <typename OnDemandRotationStartDateT = Aws::Utils::DateTime>
111 GetKeyRotationStatusResult& WithOnDemandRotationStartDate(OnDemandRotationStartDateT&& value) {
112 SetOnDemandRotationStartDate(std::forward<OnDemandRotationStartDateT>(value));
113 return *this;
114 }
116
118
119 inline const Aws::String& GetRequestId() const { return m_requestId; }
120 template <typename RequestIdT = Aws::String>
121 void SetRequestId(RequestIdT&& value) {
122 m_requestIdHasBeenSet = true;
123 m_requestId = std::forward<RequestIdT>(value);
124 }
125 template <typename RequestIdT = Aws::String>
127 SetRequestId(std::forward<RequestIdT>(value));
128 return *this;
129 }
131 private:
132 bool m_keyRotationEnabled{false};
133
134 Aws::String m_keyId;
135
136 int m_rotationPeriodInDays{0};
137
138 Aws::Utils::DateTime m_nextRotationDate{};
139
140 Aws::Utils::DateTime m_onDemandRotationStartDate{};
141
142 Aws::String m_requestId;
143 bool m_keyRotationEnabledHasBeenSet = false;
144 bool m_keyIdHasBeenSet = false;
145 bool m_rotationPeriodInDaysHasBeenSet = false;
146 bool m_nextRotationDateHasBeenSet = false;
147 bool m_onDemandRotationStartDateHasBeenSet = false;
148 bool m_requestIdHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace KMS
153} // namespace Aws
GetKeyRotationStatusResult & WithNextRotationDate(NextRotationDateT &&value)
GetKeyRotationStatusResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetOnDemandRotationStartDate() const
GetKeyRotationStatusResult & WithOnDemandRotationStartDate(OnDemandRotationStartDateT &&value)
void SetOnDemandRotationStartDate(OnDemandRotationStartDateT &&value)
GetKeyRotationStatusResult & WithRotationPeriodInDays(int value)
GetKeyRotationStatusResult & WithKeyId(KeyIdT &&value)
const Aws::Utils::DateTime & GetNextRotationDate() const
GetKeyRotationStatusResult & WithKeyRotationEnabled(bool value)
AWS_KMS_API GetKeyRotationStatusResult()=default
AWS_KMS_API GetKeyRotationStatusResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API GetKeyRotationStatusResult & 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