AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
SshPublicKey.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Transfer {
21namespace Model {
22
35 public:
36 AWS_TRANSFER_API SshPublicKey() = default;
37 AWS_TRANSFER_API SshPublicKey(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::Utils::DateTime& GetDateImported() const { return m_dateImported; }
47 inline bool DateImportedHasBeenSet() const { return m_dateImportedHasBeenSet; }
48 template <typename DateImportedT = Aws::Utils::DateTime>
49 void SetDateImported(DateImportedT&& value) {
50 m_dateImportedHasBeenSet = true;
51 m_dateImported = std::forward<DateImportedT>(value);
52 }
53 template <typename DateImportedT = Aws::Utils::DateTime>
54 SshPublicKey& WithDateImported(DateImportedT&& value) {
55 SetDateImported(std::forward<DateImportedT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetSshPublicKeyBody() const { return m_sshPublicKeyBody; }
67 inline bool SshPublicKeyBodyHasBeenSet() const { return m_sshPublicKeyBodyHasBeenSet; }
68 template <typename SshPublicKeyBodyT = Aws::String>
69 void SetSshPublicKeyBody(SshPublicKeyBodyT&& value) {
70 m_sshPublicKeyBodyHasBeenSet = true;
71 m_sshPublicKeyBody = std::forward<SshPublicKeyBodyT>(value);
72 }
73 template <typename SshPublicKeyBodyT = Aws::String>
74 SshPublicKey& WithSshPublicKeyBody(SshPublicKeyBodyT&& value) {
75 SetSshPublicKeyBody(std::forward<SshPublicKeyBodyT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::String& GetSshPublicKeyId() const { return m_sshPublicKeyId; }
86 inline bool SshPublicKeyIdHasBeenSet() const { return m_sshPublicKeyIdHasBeenSet; }
87 template <typename SshPublicKeyIdT = Aws::String>
88 void SetSshPublicKeyId(SshPublicKeyIdT&& value) {
89 m_sshPublicKeyIdHasBeenSet = true;
90 m_sshPublicKeyId = std::forward<SshPublicKeyIdT>(value);
91 }
92 template <typename SshPublicKeyIdT = Aws::String>
93 SshPublicKey& WithSshPublicKeyId(SshPublicKeyIdT&& value) {
94 SetSshPublicKeyId(std::forward<SshPublicKeyIdT>(value));
95 return *this;
96 }
98 private:
99 Aws::Utils::DateTime m_dateImported{};
100
101 Aws::String m_sshPublicKeyBody;
102
103 Aws::String m_sshPublicKeyId;
104 bool m_dateImportedHasBeenSet = false;
105 bool m_sshPublicKeyBodyHasBeenSet = false;
106 bool m_sshPublicKeyIdHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Transfer
111} // namespace Aws
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRANSFER_API SshPublicKey & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetDateImported() const
void SetSshPublicKeyId(SshPublicKeyIdT &&value)
SshPublicKey & WithSshPublicKeyBody(SshPublicKeyBodyT &&value)
SshPublicKey & WithDateImported(DateImportedT &&value)
const Aws::String & GetSshPublicKeyBody() const
const Aws::String & GetSshPublicKeyId() const
void SetDateImported(DateImportedT &&value)
SshPublicKey & WithSshPublicKeyId(SshPublicKeyIdT &&value)
void SetSshPublicKeyBody(SshPublicKeyBodyT &&value)
AWS_TRANSFER_API SshPublicKey(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API SshPublicKey()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue