AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetValue(const Aws::Utils::ByteBuffer& value) { m_valueHasBeenSet = true; m_value = value; }
50 inline void SetValue(Aws::Utils::ByteBuffer&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
51 inline PublicKey& WithValue(const Aws::Utils::ByteBuffer& value) { SetValue(value); return *this;}
52 inline PublicKey& WithValue(Aws::Utils::ByteBuffer&& value) { SetValue(std::move(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 inline void SetValidityStartTime(const Aws::Utils::DateTime& value) { m_validityStartTimeHasBeenSet = true; m_validityStartTime = value; }
62 inline void SetValidityStartTime(Aws::Utils::DateTime&& value) { m_validityStartTimeHasBeenSet = true; m_validityStartTime = std::move(value); }
63 inline PublicKey& WithValidityStartTime(const Aws::Utils::DateTime& value) { SetValidityStartTime(value); return *this;}
64 inline PublicKey& WithValidityStartTime(Aws::Utils::DateTime&& value) { SetValidityStartTime(std::move(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 inline void SetValidityEndTime(const Aws::Utils::DateTime& value) { m_validityEndTimeHasBeenSet = true; m_validityEndTime = value; }
74 inline void SetValidityEndTime(Aws::Utils::DateTime&& value) { m_validityEndTimeHasBeenSet = true; m_validityEndTime = std::move(value); }
75 inline PublicKey& WithValidityEndTime(const Aws::Utils::DateTime& value) { SetValidityEndTime(value); return *this;}
76 inline PublicKey& WithValidityEndTime(Aws::Utils::DateTime&& value) { SetValidityEndTime(std::move(value)); return *this;}
78
80
83 inline const Aws::String& GetFingerprint() const{ return m_fingerprint; }
84 inline bool FingerprintHasBeenSet() const { return m_fingerprintHasBeenSet; }
85 inline void SetFingerprint(const Aws::String& value) { m_fingerprintHasBeenSet = true; m_fingerprint = value; }
86 inline void SetFingerprint(Aws::String&& value) { m_fingerprintHasBeenSet = true; m_fingerprint = std::move(value); }
87 inline void SetFingerprint(const char* value) { m_fingerprintHasBeenSet = true; m_fingerprint.assign(value); }
88 inline PublicKey& WithFingerprint(const Aws::String& value) { SetFingerprint(value); return *this;}
89 inline PublicKey& WithFingerprint(Aws::String&& value) { SetFingerprint(std::move(value)); return *this;}
90 inline PublicKey& WithFingerprint(const char* value) { SetFingerprint(value); return *this;}
92 private:
93
95 bool m_valueHasBeenSet = false;
96
97 Aws::Utils::DateTime m_validityStartTime;
98 bool m_validityStartTimeHasBeenSet = false;
99
100 Aws::Utils::DateTime m_validityEndTime;
101 bool m_validityEndTimeHasBeenSet = false;
102
103 Aws::String m_fingerprint;
104 bool m_fingerprintHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace CloudTrail
109} // namespace Aws
const Aws::Utils::DateTime & GetValidityStartTime() const
Definition PublicKey.h:59
AWS_CLOUDTRAIL_API Aws::Utils::Json::JsonValue Jsonize() const
PublicKey & WithValue(const Aws::Utils::ByteBuffer &value)
Definition PublicKey.h:51
void SetValidityEndTime(Aws::Utils::DateTime &&value)
Definition PublicKey.h:74
PublicKey & WithValue(Aws::Utils::ByteBuffer &&value)
Definition PublicKey.h:52
PublicKey & WithFingerprint(const char *value)
Definition PublicKey.h:90
void SetFingerprint(const char *value)
Definition PublicKey.h:87
void SetValidityEndTime(const Aws::Utils::DateTime &value)
Definition PublicKey.h:73
AWS_CLOUDTRAIL_API PublicKey & operator=(Aws::Utils::Json::JsonView jsonValue)
PublicKey & WithValidityStartTime(Aws::Utils::DateTime &&value)
Definition PublicKey.h:64
AWS_CLOUDTRAIL_API PublicKey()
void SetValue(const Aws::Utils::ByteBuffer &value)
Definition PublicKey.h:49
const Aws::String & GetFingerprint() const
Definition PublicKey.h:83
void SetValue(Aws::Utils::ByteBuffer &&value)
Definition PublicKey.h:50
void SetFingerprint(const Aws::String &value)
Definition PublicKey.h:85
const Aws::Utils::ByteBuffer & GetValue() const
Definition PublicKey.h:47
PublicKey & WithValidityEndTime(Aws::Utils::DateTime &&value)
Definition PublicKey.h:76
PublicKey & WithFingerprint(Aws::String &&value)
Definition PublicKey.h:89
void SetValidityStartTime(const Aws::Utils::DateTime &value)
Definition PublicKey.h:61
PublicKey & WithValidityStartTime(const Aws::Utils::DateTime &value)
Definition PublicKey.h:63
const Aws::Utils::DateTime & GetValidityEndTime() const
Definition PublicKey.h:71
PublicKey & WithFingerprint(const Aws::String &value)
Definition PublicKey.h:88
bool ValidityStartTimeHasBeenSet() const
Definition PublicKey.h:60
PublicKey & WithValidityEndTime(const Aws::Utils::DateTime &value)
Definition PublicKey.h:75
void SetFingerprint(Aws::String &&value)
Definition PublicKey.h:86
void SetValidityStartTime(Aws::Utils::DateTime &&value)
Definition PublicKey.h:62
AWS_CLOUDTRAIL_API PublicKey(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue