AWS SDK for C++  1.9.21
AWS SDK for C++
PasswordData.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Lightsail
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
52  inline const Aws::String& GetCiphertext() const{ return m_ciphertext; }
53 
65  inline bool CiphertextHasBeenSet() const { return m_ciphertextHasBeenSet; }
66 
78  inline void SetCiphertext(const Aws::String& value) { m_ciphertextHasBeenSet = true; m_ciphertext = value; }
79 
91  inline void SetCiphertext(Aws::String&& value) { m_ciphertextHasBeenSet = true; m_ciphertext = std::move(value); }
92 
104  inline void SetCiphertext(const char* value) { m_ciphertextHasBeenSet = true; m_ciphertext.assign(value); }
105 
117  inline PasswordData& WithCiphertext(const Aws::String& value) { SetCiphertext(value); return *this;}
118 
130  inline PasswordData& WithCiphertext(Aws::String&& value) { SetCiphertext(std::move(value)); return *this;}
131 
143  inline PasswordData& WithCiphertext(const char* value) { SetCiphertext(value); return *this;}
144 
145 
154  inline const Aws::String& GetKeyPairName() const{ return m_keyPairName; }
155 
164  inline bool KeyPairNameHasBeenSet() const { return m_keyPairNameHasBeenSet; }
165 
174  inline void SetKeyPairName(const Aws::String& value) { m_keyPairNameHasBeenSet = true; m_keyPairName = value; }
175 
184  inline void SetKeyPairName(Aws::String&& value) { m_keyPairNameHasBeenSet = true; m_keyPairName = std::move(value); }
185 
194  inline void SetKeyPairName(const char* value) { m_keyPairNameHasBeenSet = true; m_keyPairName.assign(value); }
195 
204  inline PasswordData& WithKeyPairName(const Aws::String& value) { SetKeyPairName(value); return *this;}
205 
214  inline PasswordData& WithKeyPairName(Aws::String&& value) { SetKeyPairName(std::move(value)); return *this;}
215 
224  inline PasswordData& WithKeyPairName(const char* value) { SetKeyPairName(value); return *this;}
225 
226  private:
227 
228  Aws::String m_ciphertext;
229  bool m_ciphertextHasBeenSet;
230 
231  Aws::String m_keyPairName;
232  bool m_keyPairNameHasBeenSet;
233  };
234 
235 } // namespace Model
236 } // namespace Lightsail
237 } // namespace Aws
Aws::Lightsail::Model::PasswordData::GetKeyPairName
const Aws::String & GetKeyPairName() const
Definition: PasswordData.h:154
Aws::Lightsail::Model::PasswordData::CiphertextHasBeenSet
bool CiphertextHasBeenSet() const
Definition: PasswordData.h:65
Aws::Lightsail::Model::PasswordData::SetKeyPairName
void SetKeyPairName(const Aws::String &value)
Definition: PasswordData.h:174
Aws::Lightsail::Model::PasswordData::SetCiphertext
void SetCiphertext(const char *value)
Definition: PasswordData.h:104
Aws::Lightsail::Model::PasswordData::PasswordData
PasswordData()
Aws::Lightsail::Model::PasswordData
Definition: PasswordData.h:33
Aws::Lightsail::Model::PasswordData::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::PasswordData::WithKeyPairName
PasswordData & WithKeyPairName(const char *value)
Definition: PasswordData.h:224
Aws::Lightsail::Model::PasswordData::WithCiphertext
PasswordData & WithCiphertext(const Aws::String &value)
Definition: PasswordData.h:117
Aws::Lightsail::Model::PasswordData::WithCiphertext
PasswordData & WithCiphertext(Aws::String &&value)
Definition: PasswordData.h:130
Aws::Lightsail::Model::PasswordData::operator=
PasswordData & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Lightsail_EXPORTS.h
Aws::Lightsail::Model::PasswordData::GetCiphertext
const Aws::String & GetCiphertext() const
Definition: PasswordData.h:52
Aws::Lightsail::Model::PasswordData::PasswordData
PasswordData(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::PasswordData::SetCiphertext
void SetCiphertext(Aws::String &&value)
Definition: PasswordData.h:91
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::PasswordData::WithKeyPairName
PasswordData & WithKeyPairName(const Aws::String &value)
Definition: PasswordData.h:204
Aws::Lightsail::Model::PasswordData::KeyPairNameHasBeenSet
bool KeyPairNameHasBeenSet() const
Definition: PasswordData.h:164
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::PasswordData::SetCiphertext
void SetCiphertext(const Aws::String &value)
Definition: PasswordData.h:78
Aws::Lightsail::Model::PasswordData::WithCiphertext
PasswordData & WithCiphertext(const char *value)
Definition: PasswordData.h:143
Aws::Lightsail::Model::PasswordData::SetKeyPairName
void SetKeyPairName(Aws::String &&value)
Definition: PasswordData.h:184
Aws::Lightsail::Model::PasswordData::SetKeyPairName
void SetKeyPairName(const char *value)
Definition: PasswordData.h:194
Aws::Lightsail::Model::PasswordData::WithKeyPairName
PasswordData & WithKeyPairName(Aws::String &&value)
Definition: PasswordData.h:214