AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Credentials.h
1
6#pragma once
7#include <aws/datasync/DataSync_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 DataSync
22{
23namespace Model
24{
25
38 {
39 public:
40 AWS_DATASYNC_API Credentials();
41 AWS_DATASYNC_API Credentials(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATASYNC_API Credentials& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetUsername() const{ return m_username; }
51 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
52 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
53 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
54 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
55 inline Credentials& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
56 inline Credentials& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
57 inline Credentials& WithUsername(const char* value) { SetUsername(value); return *this;}
59
61
64 inline const Aws::String& GetPassword() const{ return m_password; }
65 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
66 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
67 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
68 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
69 inline Credentials& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
70 inline Credentials& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
71 inline Credentials& WithPassword(const char* value) { SetPassword(value); return *this;}
73 private:
74
75 Aws::String m_username;
76 bool m_usernameHasBeenSet = false;
77
78 Aws::String m_password;
79 bool m_passwordHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace DataSync
84} // namespace Aws
Credentials & WithUsername(Aws::String &&value)
Definition Credentials.h:56
Credentials & WithUsername(const char *value)
Definition Credentials.h:57
void SetPassword(Aws::String &&value)
Definition Credentials.h:67
const Aws::String & GetUsername() const
Definition Credentials.h:50
const Aws::String & GetPassword() const
Definition Credentials.h:64
Credentials & WithPassword(const Aws::String &value)
Definition Credentials.h:69
AWS_DATASYNC_API Credentials & operator=(Aws::Utils::Json::JsonView jsonValue)
Credentials & WithPassword(Aws::String &&value)
Definition Credentials.h:70
AWS_DATASYNC_API Credentials(Aws::Utils::Json::JsonView jsonValue)
void SetPassword(const Aws::String &value)
Definition Credentials.h:66
Credentials & WithUsername(const Aws::String &value)
Definition Credentials.h:55
Credentials & WithPassword(const char *value)
Definition Credentials.h:71
void SetUsername(const Aws::String &value)
Definition Credentials.h:52
void SetPassword(const char *value)
Definition Credentials.h:68
void SetUsername(Aws::String &&value)
Definition Credentials.h:53
void SetUsername(const char *value)
Definition Credentials.h:54
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue