AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
GetKeyLastUsageResult.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#include <aws/kms/model/KeyLastUsageData.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace KMS {
25namespace Model {
27 public:
28 AWS_KMS_API GetKeyLastUsageResult() = default;
31
33
36 inline const Aws::String& GetKeyId() const { return m_keyId; }
37 template <typename KeyIdT = Aws::String>
38 void SetKeyId(KeyIdT&& value) {
39 m_keyIdHasBeenSet = true;
40 m_keyId = std::forward<KeyIdT>(value);
41 }
42 template <typename KeyIdT = Aws::String>
44 SetKeyId(std::forward<KeyIdT>(value));
45 return *this;
46 }
48
50
55 inline const KeyLastUsageData& GetKeyLastUsage() const { return m_keyLastUsage; }
56 template <typename KeyLastUsageT = KeyLastUsageData>
57 void SetKeyLastUsage(KeyLastUsageT&& value) {
58 m_keyLastUsageHasBeenSet = true;
59 m_keyLastUsage = std::forward<KeyLastUsageT>(value);
60 }
61 template <typename KeyLastUsageT = KeyLastUsageData>
62 GetKeyLastUsageResult& WithKeyLastUsage(KeyLastUsageT&& value) {
63 SetKeyLastUsage(std::forward<KeyLastUsageT>(value));
64 return *this;
65 }
67
69
73 inline const Aws::Utils::DateTime& GetTrackingStartDate() const { return m_trackingStartDate; }
74 template <typename TrackingStartDateT = Aws::Utils::DateTime>
75 void SetTrackingStartDate(TrackingStartDateT&& value) {
76 m_trackingStartDateHasBeenSet = true;
77 m_trackingStartDate = std::forward<TrackingStartDateT>(value);
78 }
79 template <typename TrackingStartDateT = Aws::Utils::DateTime>
80 GetKeyLastUsageResult& WithTrackingStartDate(TrackingStartDateT&& value) {
81 SetTrackingStartDate(std::forward<TrackingStartDateT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Utils::DateTime& GetKeyCreationDate() const { return m_keyCreationDate; }
91 template <typename KeyCreationDateT = Aws::Utils::DateTime>
92 void SetKeyCreationDate(KeyCreationDateT&& value) {
93 m_keyCreationDateHasBeenSet = true;
94 m_keyCreationDate = std::forward<KeyCreationDateT>(value);
95 }
96 template <typename KeyCreationDateT = Aws::Utils::DateTime>
97 GetKeyLastUsageResult& WithKeyCreationDate(KeyCreationDateT&& value) {
98 SetKeyCreationDate(std::forward<KeyCreationDateT>(value));
99 return *this;
100 }
102
104
105 inline const Aws::String& GetRequestId() const { return m_requestId; }
106 template <typename RequestIdT = Aws::String>
107 void SetRequestId(RequestIdT&& value) {
108 m_requestIdHasBeenSet = true;
109 m_requestId = std::forward<RequestIdT>(value);
110 }
111 template <typename RequestIdT = Aws::String>
113 SetRequestId(std::forward<RequestIdT>(value));
114 return *this;
115 }
117 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
118
119 private:
120 Aws::String m_keyId;
121
122 KeyLastUsageData m_keyLastUsage;
123
124 Aws::Utils::DateTime m_trackingStartDate{};
125
126 Aws::Utils::DateTime m_keyCreationDate{};
127
128 Aws::String m_requestId;
129 Aws::Http::HttpResponseCode m_HttpResponseCode;
130 bool m_keyIdHasBeenSet = false;
131 bool m_keyLastUsageHasBeenSet = false;
132 bool m_trackingStartDateHasBeenSet = false;
133 bool m_keyCreationDateHasBeenSet = false;
134 bool m_requestIdHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace KMS
139} // namespace Aws
GetKeyLastUsageResult & WithKeyId(KeyIdT &&value)
GetKeyLastUsageResult & WithTrackingStartDate(TrackingStartDateT &&value)
void SetTrackingStartDate(TrackingStartDateT &&value)
void SetKeyLastUsage(KeyLastUsageT &&value)
void SetKeyCreationDate(KeyCreationDateT &&value)
AWS_KMS_API GetKeyLastUsageResult()=default
AWS_KMS_API GetKeyLastUsageResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetKeyLastUsageResult & WithRequestId(RequestIdT &&value)
const Aws::Utils::DateTime & GetTrackingStartDate() const
GetKeyLastUsageResult & WithKeyCreationDate(KeyCreationDateT &&value)
GetKeyLastUsageResult & WithKeyLastUsage(KeyLastUsageT &&value)
const KeyLastUsageData & GetKeyLastUsage() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_KMS_API GetKeyLastUsageResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetKeyCreationDate() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue