AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudTrail
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDTRAIL_API PublicKey() = default;
38 AWS_CLOUDTRAIL_API PublicKey(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDTRAIL_API PublicKey& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::ByteBuffer& GetValue() const { return m_value; }
48 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
49 template<typename ValueT = Aws::Utils::ByteBuffer>
50 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
51 template<typename ValueT = Aws::Utils::ByteBuffer>
52 PublicKey& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
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) { m_validityStartTimeHasBeenSet = true; m_validityStartTime = std::forward<ValidityStartTimeT>(value); }
63 template<typename ValidityStartTimeT = Aws::Utils::DateTime>
64 PublicKey& WithValidityStartTime(ValidityStartTimeT&& value) { SetValidityStartTime(std::forward<ValidityStartTimeT>(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetValidityEndTime() const { return m_validityEndTime; }
72 inline bool ValidityEndTimeHasBeenSet() const { return m_validityEndTimeHasBeenSet; }
73 template<typename ValidityEndTimeT = Aws::Utils::DateTime>
74 void SetValidityEndTime(ValidityEndTimeT&& value) { m_validityEndTimeHasBeenSet = true; m_validityEndTime = std::forward<ValidityEndTimeT>(value); }
75 template<typename ValidityEndTimeT = Aws::Utils::DateTime>
76 PublicKey& WithValidityEndTime(ValidityEndTimeT&& value) { SetValidityEndTime(std::forward<ValidityEndTimeT>(value)); return *this;}
78
80
83 inline const Aws::String& GetFingerprint() const { return m_fingerprint; }
84 inline bool FingerprintHasBeenSet() const { return m_fingerprintHasBeenSet; }
85 template<typename FingerprintT = Aws::String>
86 void SetFingerprint(FingerprintT&& value) { m_fingerprintHasBeenSet = true; m_fingerprint = std::forward<FingerprintT>(value); }
87 template<typename FingerprintT = Aws::String>
88 PublicKey& WithFingerprint(FingerprintT&& value) { SetFingerprint(std::forward<FingerprintT>(value)); return *this;}
90 private:
91
92 Aws::Utils::ByteBuffer m_value{};
93 bool m_valueHasBeenSet = false;
94
95 Aws::Utils::DateTime m_validityStartTime{};
96 bool m_validityStartTimeHasBeenSet = false;
97
98 Aws::Utils::DateTime m_validityEndTime{};
99 bool m_validityEndTimeHasBeenSet = false;
100
101 Aws::String m_fingerprint;
102 bool m_fingerprintHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace CloudTrail
107} // namespace Aws
PublicKey & WithValidityStartTime(ValidityStartTimeT &&value)
Definition PublicKey.h:64
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:74
AWS_CLOUDTRAIL_API PublicKey & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFingerprint(FingerprintT &&value)
Definition PublicKey.h:86
const Aws::String & GetFingerprint() const
Definition PublicKey.h:83
const Aws::Utils::ByteBuffer & GetValue() const
Definition PublicKey.h:47
void SetValue(ValueT &&value)
Definition PublicKey.h:50
PublicKey & WithValidityEndTime(ValidityEndTimeT &&value)
Definition PublicKey.h:76
PublicKey & WithFingerprint(FingerprintT &&value)
Definition PublicKey.h:88
const Aws::Utils::DateTime & GetValidityEndTime() const
Definition PublicKey.h:71
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:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue