AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PasswordData.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/Lightsail_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lightsail {
20namespace Model {
21
29 public:
30 AWS_LIGHTSAIL_API PasswordData() = default;
31 AWS_LIGHTSAIL_API PasswordData(Aws::Utils::Json::JsonView jsonValue);
32 AWS_LIGHTSAIL_API PasswordData& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
47 inline const Aws::String& GetCiphertext() const { return m_ciphertext; }
48 inline bool CiphertextHasBeenSet() const { return m_ciphertextHasBeenSet; }
49 template <typename CiphertextT = Aws::String>
50 void SetCiphertext(CiphertextT&& value) {
51 m_ciphertextHasBeenSet = true;
52 m_ciphertext = std::forward<CiphertextT>(value);
53 }
54 template <typename CiphertextT = Aws::String>
55 PasswordData& WithCiphertext(CiphertextT&& value) {
56 SetCiphertext(std::forward<CiphertextT>(value));
57 return *this;
58 }
60
62
70 inline const Aws::String& GetKeyPairName() const { return m_keyPairName; }
71 inline bool KeyPairNameHasBeenSet() const { return m_keyPairNameHasBeenSet; }
72 template <typename KeyPairNameT = Aws::String>
73 void SetKeyPairName(KeyPairNameT&& value) {
74 m_keyPairNameHasBeenSet = true;
75 m_keyPairName = std::forward<KeyPairNameT>(value);
76 }
77 template <typename KeyPairNameT = Aws::String>
78 PasswordData& WithKeyPairName(KeyPairNameT&& value) {
79 SetKeyPairName(std::forward<KeyPairNameT>(value));
80 return *this;
81 }
83 private:
84 Aws::String m_ciphertext;
85
86 Aws::String m_keyPairName;
87 bool m_ciphertextHasBeenSet = false;
88 bool m_keyPairNameHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace Lightsail
93} // namespace Aws
const Aws::String & GetCiphertext() const
AWS_LIGHTSAIL_API PasswordData(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API PasswordData()=default
const Aws::String & GetKeyPairName() const
PasswordData & WithKeyPairName(KeyPairNameT &&value)
PasswordData & WithCiphertext(CiphertextT &&value)
AWS_LIGHTSAIL_API PasswordData & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKeyPairName(KeyPairNameT &&value)
void SetCiphertext(CiphertextT &&value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue