AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
GetKeyRotationStatusResult.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
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace KMS {
24namespace Model {
26 public:
27 AWS_KMS_API GetKeyRotationStatusResult() = default;
30
32
35 inline bool GetKeyRotationEnabled() const { return m_keyRotationEnabled; }
36 inline void SetKeyRotationEnabled(bool value) {
37 m_keyRotationEnabledHasBeenSet = true;
38 m_keyRotationEnabled = value;
39 }
42 return *this;
43 }
45
47
50 inline const Aws::String& GetKeyId() const { return m_keyId; }
51 template <typename KeyIdT = Aws::String>
52 void SetKeyId(KeyIdT&& value) {
53 m_keyIdHasBeenSet = true;
54 m_keyId = std::forward<KeyIdT>(value);
55 }
56 template <typename KeyIdT = Aws::String>
58 SetKeyId(std::forward<KeyIdT>(value));
59 return *this;
60 }
62
64
68 inline int GetRotationPeriodInDays() const { return m_rotationPeriodInDays; }
69 inline void SetRotationPeriodInDays(int value) {
70 m_rotationPeriodInDaysHasBeenSet = true;
71 m_rotationPeriodInDays = value;
72 }
75 return *this;
76 }
78
80
83 inline const Aws::Utils::DateTime& GetNextRotationDate() const { return m_nextRotationDate; }
84 template <typename NextRotationDateT = Aws::Utils::DateTime>
85 void SetNextRotationDate(NextRotationDateT&& value) {
86 m_nextRotationDateHasBeenSet = true;
87 m_nextRotationDate = std::forward<NextRotationDateT>(value);
88 }
89 template <typename NextRotationDateT = Aws::Utils::DateTime>
91 SetNextRotationDate(std::forward<NextRotationDateT>(value));
92 return *this;
93 }
95
97
105 inline const Aws::Utils::DateTime& GetOnDemandRotationStartDate() const { return m_onDemandRotationStartDate; }
106 template <typename OnDemandRotationStartDateT = Aws::Utils::DateTime>
107 void SetOnDemandRotationStartDate(OnDemandRotationStartDateT&& value) {
108 m_onDemandRotationStartDateHasBeenSet = true;
109 m_onDemandRotationStartDate = std::forward<OnDemandRotationStartDateT>(value);
110 }
111 template <typename OnDemandRotationStartDateT = Aws::Utils::DateTime>
112 GetKeyRotationStatusResult& WithOnDemandRotationStartDate(OnDemandRotationStartDateT&& value) {
113 SetOnDemandRotationStartDate(std::forward<OnDemandRotationStartDateT>(value));
114 return *this;
115 }
117
119
120 inline const Aws::String& GetRequestId() const { return m_requestId; }
121 template <typename RequestIdT = Aws::String>
122 void SetRequestId(RequestIdT&& value) {
123 m_requestIdHasBeenSet = true;
124 m_requestId = std::forward<RequestIdT>(value);
125 }
126 template <typename RequestIdT = Aws::String>
128 SetRequestId(std::forward<RequestIdT>(value));
129 return *this;
130 }
132 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
133
134 private:
135 bool m_keyRotationEnabled{false};
136
137 Aws::String m_keyId;
138
139 int m_rotationPeriodInDays{0};
140
141 Aws::Utils::DateTime m_nextRotationDate{};
142
143 Aws::Utils::DateTime m_onDemandRotationStartDate{};
144
145 Aws::String m_requestId;
146 Aws::Http::HttpResponseCode m_HttpResponseCode;
147 bool m_keyRotationEnabledHasBeenSet = false;
148 bool m_keyIdHasBeenSet = false;
149 bool m_rotationPeriodInDaysHasBeenSet = false;
150 bool m_nextRotationDateHasBeenSet = false;
151 bool m_onDemandRotationStartDateHasBeenSet = false;
152 bool m_requestIdHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace KMS
157} // 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)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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