AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PasswordData.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Lightsail
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_LIGHTSAIL_API PasswordData() = default;
36 AWS_LIGHTSAIL_API PasswordData(Aws::Utils::Json::JsonView jsonValue);
37 AWS_LIGHTSAIL_API PasswordData& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
53 inline const Aws::String& GetCiphertext() const { return m_ciphertext; }
54 inline bool CiphertextHasBeenSet() const { return m_ciphertextHasBeenSet; }
55 template<typename CiphertextT = Aws::String>
56 void SetCiphertext(CiphertextT&& value) { m_ciphertextHasBeenSet = true; m_ciphertext = std::forward<CiphertextT>(value); }
57 template<typename CiphertextT = Aws::String>
58 PasswordData& WithCiphertext(CiphertextT&& value) { SetCiphertext(std::forward<CiphertextT>(value)); return *this;}
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) { m_keyPairNameHasBeenSet = true; m_keyPairName = std::forward<KeyPairNameT>(value); }
74 template<typename KeyPairNameT = Aws::String>
75 PasswordData& WithKeyPairName(KeyPairNameT&& value) { SetKeyPairName(std::forward<KeyPairNameT>(value)); return *this;}
77 private:
78
79 Aws::String m_ciphertext;
80 bool m_ciphertextHasBeenSet = false;
81
82 Aws::String m_keyPairName;
83 bool m_keyPairNameHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace Lightsail
88} // 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