AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PublicKey.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CloudTrail {
22namespace Model {
23
30class PublicKey {
31 public:
32 AWS_CLOUDTRAIL_API PublicKey() = default;
33 AWS_CLOUDTRAIL_API PublicKey(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDTRAIL_API PublicKey& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Utils::ByteBuffer& GetValue() const { return m_value; }
42 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
43 template <typename ValueT = Aws::Utils::ByteBuffer>
44 void SetValue(ValueT&& value) {
45 m_valueHasBeenSet = true;
46 m_value = std::forward<ValueT>(value);
47 }
48 template <typename ValueT = Aws::Utils::ByteBuffer>
49 PublicKey& WithValue(ValueT&& value) {
50 SetValue(std::forward<ValueT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetValidityStartTime() const { return m_validityStartTime; }
60 inline bool ValidityStartTimeHasBeenSet() const { return m_validityStartTimeHasBeenSet; }
61 template <typename ValidityStartTimeT = Aws::Utils::DateTime>
62 void SetValidityStartTime(ValidityStartTimeT&& value) {
63 m_validityStartTimeHasBeenSet = true;
64 m_validityStartTime = std::forward<ValidityStartTimeT>(value);
65 }
66 template <typename ValidityStartTimeT = Aws::Utils::DateTime>
67 PublicKey& WithValidityStartTime(ValidityStartTimeT&& value) {
68 SetValidityStartTime(std::forward<ValidityStartTimeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetValidityEndTime() const { return m_validityEndTime; }
78 inline bool ValidityEndTimeHasBeenSet() const { return m_validityEndTimeHasBeenSet; }
79 template <typename ValidityEndTimeT = Aws::Utils::DateTime>
80 void SetValidityEndTime(ValidityEndTimeT&& value) {
81 m_validityEndTimeHasBeenSet = true;
82 m_validityEndTime = std::forward<ValidityEndTimeT>(value);
83 }
84 template <typename ValidityEndTimeT = Aws::Utils::DateTime>
85 PublicKey& WithValidityEndTime(ValidityEndTimeT&& value) {
86 SetValidityEndTime(std::forward<ValidityEndTimeT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetFingerprint() const { return m_fingerprint; }
96 inline bool FingerprintHasBeenSet() const { return m_fingerprintHasBeenSet; }
97 template <typename FingerprintT = Aws::String>
98 void SetFingerprint(FingerprintT&& value) {
99 m_fingerprintHasBeenSet = true;
100 m_fingerprint = std::forward<FingerprintT>(value);
101 }
102 template <typename FingerprintT = Aws::String>
103 PublicKey& WithFingerprint(FingerprintT&& value) {
104 SetFingerprint(std::forward<FingerprintT>(value));
105 return *this;
106 }
108 private:
109 Aws::Utils::ByteBuffer m_value{};
110
111 Aws::Utils::DateTime m_validityStartTime{};
112
113 Aws::Utils::DateTime m_validityEndTime{};
114
115 Aws::String m_fingerprint;
116 bool m_valueHasBeenSet = false;
117 bool m_validityStartTimeHasBeenSet = false;
118 bool m_validityEndTimeHasBeenSet = false;
119 bool m_fingerprintHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace CloudTrail
124} // namespace Aws
PublicKey & WithValidityStartTime(ValidityStartTimeT &&value)
Definition PublicKey.h:67
const Aws::Utils::DateTime & GetValidityStartTime() const
Definition PublicKey.h:59
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLOUDTRAIL_API PublicKey()=default
void SetValidityEndTime(ValidityEndTimeT &&value)
Definition PublicKey.h:80
AWS_CLOUDTRAIL_API PublicKey & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFingerprint(FingerprintT &&value)
Definition PublicKey.h:98
const Aws::String & GetFingerprint() const
Definition PublicKey.h:95
const Aws::Utils::ByteBuffer & GetValue() const
Definition PublicKey.h:41
void SetValue(ValueT &&value)
Definition PublicKey.h:44
PublicKey & WithValidityEndTime(ValidityEndTimeT &&value)
Definition PublicKey.h:85
PublicKey & WithFingerprint(FingerprintT &&value)
Definition PublicKey.h:103
const Aws::Utils::DateTime & GetValidityEndTime() const
Definition PublicKey.h:77
bool ValidityStartTimeHasBeenSet() const
Definition PublicKey.h:60
void SetValidityStartTime(ValidityStartTimeT &&value)
Definition PublicKey.h:62
AWS_CLOUDTRAIL_API PublicKey(Aws::Utils::Json::JsonView jsonValue)
PublicKey & WithValue(ValueT &&value)
Definition PublicKey.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue