AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
KeyLastUsageData.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#include <aws/kms/model/KeyLastUsageTrackingOperation.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace KMS {
22namespace Model {
23
31 public:
32 AWS_KMS_API KeyLastUsageData() = default;
36
38
42 inline KeyLastUsageTrackingOperation GetOperation() const { return m_operation; }
43 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
45 m_operationHasBeenSet = true;
46 m_operation = value;
47 }
49 SetOperation(value);
50 return *this;
51 }
53
55
60 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
61 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
62 template <typename TimestampT = Aws::Utils::DateTime>
63 void SetTimestamp(TimestampT&& value) {
64 m_timestampHasBeenSet = true;
65 m_timestamp = std::forward<TimestampT>(value);
66 }
67 template <typename TimestampT = Aws::Utils::DateTime>
68 KeyLastUsageData& WithTimestamp(TimestampT&& value) {
69 SetTimestamp(std::forward<TimestampT>(value));
70 return *this;
71 }
73
75
80 inline const Aws::String& GetCloudTrailEventId() const { return m_cloudTrailEventId; }
81 inline bool CloudTrailEventIdHasBeenSet() const { return m_cloudTrailEventIdHasBeenSet; }
82 template <typename CloudTrailEventIdT = Aws::String>
83 void SetCloudTrailEventId(CloudTrailEventIdT&& value) {
84 m_cloudTrailEventIdHasBeenSet = true;
85 m_cloudTrailEventId = std::forward<CloudTrailEventIdT>(value);
86 }
87 template <typename CloudTrailEventIdT = Aws::String>
88 KeyLastUsageData& WithCloudTrailEventId(CloudTrailEventIdT&& value) {
89 SetCloudTrailEventId(std::forward<CloudTrailEventIdT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetKmsRequestId() const { return m_kmsRequestId; }
100 inline bool KmsRequestIdHasBeenSet() const { return m_kmsRequestIdHasBeenSet; }
101 template <typename KmsRequestIdT = Aws::String>
102 void SetKmsRequestId(KmsRequestIdT&& value) {
103 m_kmsRequestIdHasBeenSet = true;
104 m_kmsRequestId = std::forward<KmsRequestIdT>(value);
105 }
106 template <typename KmsRequestIdT = Aws::String>
107 KeyLastUsageData& WithKmsRequestId(KmsRequestIdT&& value) {
108 SetKmsRequestId(std::forward<KmsRequestIdT>(value));
109 return *this;
110 }
112 private:
114
115 Aws::Utils::DateTime m_timestamp{};
116
117 Aws::String m_cloudTrailEventId;
118
119 Aws::String m_kmsRequestId;
120 bool m_operationHasBeenSet = false;
121 bool m_timestampHasBeenSet = false;
122 bool m_cloudTrailEventIdHasBeenSet = false;
123 bool m_kmsRequestIdHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace KMS
128} // namespace Aws
KeyLastUsageData & WithCloudTrailEventId(CloudTrailEventIdT &&value)
void SetCloudTrailEventId(CloudTrailEventIdT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
KeyLastUsageData & WithOperation(KeyLastUsageTrackingOperation value)
AWS_KMS_API KeyLastUsageData & operator=(Aws::Utils::Json::JsonView jsonValue)
KeyLastUsageData & WithKmsRequestId(KmsRequestIdT &&value)
const Aws::String & GetCloudTrailEventId() const
void SetKmsRequestId(KmsRequestIdT &&value)
AWS_KMS_API Aws::Utils::Json::JsonValue Jsonize() const
KeyLastUsageData & WithTimestamp(TimestampT &&value)
void SetOperation(KeyLastUsageTrackingOperation value)
void SetTimestamp(TimestampT &&value)
const Aws::String & GetKmsRequestId() const
AWS_KMS_API KeyLastUsageData()=default
KeyLastUsageTrackingOperation GetOperation() const
AWS_KMS_API KeyLastUsageData(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue