AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetKeyRotationStatusResult.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 <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace KMS
25{
26namespace Model
27{
29 {
30 public:
31 AWS_KMS_API GetKeyRotationStatusResult() = default;
34
35
37
40 inline bool GetKeyRotationEnabled() const { return m_keyRotationEnabled; }
41 inline void SetKeyRotationEnabled(bool value) { m_keyRotationEnabledHasBeenSet = true; m_keyRotationEnabled = value; }
42 inline GetKeyRotationStatusResult& WithKeyRotationEnabled(bool value) { SetKeyRotationEnabled(value); return *this;}
44
46
49 inline const Aws::String& GetKeyId() const { return m_keyId; }
50 template<typename KeyIdT = Aws::String>
51 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
52 template<typename KeyIdT = Aws::String>
53 GetKeyRotationStatusResult& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
55
57
61 inline int GetRotationPeriodInDays() const { return m_rotationPeriodInDays; }
62 inline void SetRotationPeriodInDays(int value) { m_rotationPeriodInDaysHasBeenSet = true; m_rotationPeriodInDays = value; }
65
67
70 inline const Aws::Utils::DateTime& GetNextRotationDate() const { return m_nextRotationDate; }
71 template<typename NextRotationDateT = Aws::Utils::DateTime>
72 void SetNextRotationDate(NextRotationDateT&& value) { m_nextRotationDateHasBeenSet = true; m_nextRotationDate = std::forward<NextRotationDateT>(value); }
73 template<typename NextRotationDateT = Aws::Utils::DateTime>
74 GetKeyRotationStatusResult& WithNextRotationDate(NextRotationDateT&& value) { SetNextRotationDate(std::forward<NextRotationDateT>(value)); return *this;}
76
78
86 inline const Aws::Utils::DateTime& GetOnDemandRotationStartDate() const { return m_onDemandRotationStartDate; }
87 template<typename OnDemandRotationStartDateT = Aws::Utils::DateTime>
88 void SetOnDemandRotationStartDate(OnDemandRotationStartDateT&& value) { m_onDemandRotationStartDateHasBeenSet = true; m_onDemandRotationStartDate = std::forward<OnDemandRotationStartDateT>(value); }
89 template<typename OnDemandRotationStartDateT = Aws::Utils::DateTime>
90 GetKeyRotationStatusResult& WithOnDemandRotationStartDate(OnDemandRotationStartDateT&& value) { SetOnDemandRotationStartDate(std::forward<OnDemandRotationStartDateT>(value)); return *this;}
92
94
95 inline const Aws::String& GetRequestId() const { return m_requestId; }
96 template<typename RequestIdT = Aws::String>
97 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
98 template<typename RequestIdT = Aws::String>
99 GetKeyRotationStatusResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
101 private:
102
103 bool m_keyRotationEnabled{false};
104 bool m_keyRotationEnabledHasBeenSet = false;
105
106 Aws::String m_keyId;
107 bool m_keyIdHasBeenSet = false;
108
109 int m_rotationPeriodInDays{0};
110 bool m_rotationPeriodInDaysHasBeenSet = false;
111
112 Aws::Utils::DateTime m_nextRotationDate{};
113 bool m_nextRotationDateHasBeenSet = false;
114
115 Aws::Utils::DateTime m_onDemandRotationStartDate{};
116 bool m_onDemandRotationStartDateHasBeenSet = false;
117
118 Aws::String m_requestId;
119 bool m_requestIdHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace KMS
124} // 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