AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
34
35
37
40 inline bool GetKeyRotationEnabled() const{ return m_keyRotationEnabled; }
41 inline void SetKeyRotationEnabled(bool value) { 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 inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
51 inline void SetKeyId(Aws::String&& value) { m_keyId = std::move(value); }
52 inline void SetKeyId(const char* value) { m_keyId.assign(value); }
53 inline GetKeyRotationStatusResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
54 inline GetKeyRotationStatusResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
55 inline GetKeyRotationStatusResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
57
59
63 inline int GetRotationPeriodInDays() const{ return m_rotationPeriodInDays; }
64 inline void SetRotationPeriodInDays(int value) { m_rotationPeriodInDays = value; }
67
69
72 inline const Aws::Utils::DateTime& GetNextRotationDate() const{ return m_nextRotationDate; }
73 inline void SetNextRotationDate(const Aws::Utils::DateTime& value) { m_nextRotationDate = value; }
74 inline void SetNextRotationDate(Aws::Utils::DateTime&& value) { m_nextRotationDate = std::move(value); }
78
80
89 inline const Aws::Utils::DateTime& GetOnDemandRotationStartDate() const{ return m_onDemandRotationStartDate; }
90 inline void SetOnDemandRotationStartDate(const Aws::Utils::DateTime& value) { m_onDemandRotationStartDate = value; }
91 inline void SetOnDemandRotationStartDate(Aws::Utils::DateTime&& value) { m_onDemandRotationStartDate = std::move(value); }
95
97
98 inline const Aws::String& GetRequestId() const{ return m_requestId; }
99 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
100 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
101 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
102 inline GetKeyRotationStatusResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
103 inline GetKeyRotationStatusResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
104 inline GetKeyRotationStatusResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
106 private:
107
108 bool m_keyRotationEnabled;
109
110 Aws::String m_keyId;
111
112 int m_rotationPeriodInDays;
113
114 Aws::Utils::DateTime m_nextRotationDate;
115
116 Aws::Utils::DateTime m_onDemandRotationStartDate;
117
118 Aws::String m_requestId;
119 };
120
121} // namespace Model
122} // namespace KMS
123} // namespace Aws
GetKeyRotationStatusResult & WithKeyId(const char *value)
GetKeyRotationStatusResult & WithNextRotationDate(Aws::Utils::DateTime &&value)
GetKeyRotationStatusResult & WithKeyId(Aws::String &&value)
GetKeyRotationStatusResult & WithOnDemandRotationStartDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetOnDemandRotationStartDate() const
GetKeyRotationStatusResult & WithKeyId(const Aws::String &value)
void SetOnDemandRotationStartDate(const Aws::Utils::DateTime &value)
GetKeyRotationStatusResult & WithRotationPeriodInDays(int value)
void SetOnDemandRotationStartDate(Aws::Utils::DateTime &&value)
GetKeyRotationStatusResult & WithRequestId(const char *value)
void SetNextRotationDate(const Aws::Utils::DateTime &value)
GetKeyRotationStatusResult & WithRequestId(const Aws::String &value)
GetKeyRotationStatusResult & WithNextRotationDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetNextRotationDate() const
GetKeyRotationStatusResult & WithKeyRotationEnabled(bool value)
void SetNextRotationDate(Aws::Utils::DateTime &&value)
GetKeyRotationStatusResult & WithOnDemandRotationStartDate(Aws::Utils::DateTime &&value)
GetKeyRotationStatusResult & WithRequestId(Aws::String &&value)
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