AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Credential.h
1
6#pragma once
7#include <aws/chime/Chime_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 Chime
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CHIME_API Credential();
36 AWS_CHIME_API Credential(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetUsername() const{ return m_username; }
47 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
48 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
49 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
50 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
51 inline Credential& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
52 inline Credential& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
53 inline Credential& WithUsername(const char* value) { SetUsername(value); return *this;}
55
57
61 inline const Aws::String& GetPassword() const{ return m_password; }
62 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
63 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
64 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
65 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
66 inline Credential& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
67 inline Credential& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
68 inline Credential& WithPassword(const char* value) { SetPassword(value); return *this;}
70 private:
71
72 Aws::String m_username;
73 bool m_usernameHasBeenSet = false;
74
75 Aws::String m_password;
76 bool m_passwordHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Chime
81} // namespace Aws
void SetUsername(Aws::String &&value)
Definition Credential.h:49
void SetUsername(const Aws::String &value)
Definition Credential.h:48
void SetPassword(const Aws::String &value)
Definition Credential.h:63
const Aws::String & GetUsername() const
Definition Credential.h:46
void SetPassword(Aws::String &&value)
Definition Credential.h:64
Credential & WithUsername(Aws::String &&value)
Definition Credential.h:52
Credential & WithPassword(Aws::String &&value)
Definition Credential.h:67
Credential & WithPassword(const char *value)
Definition Credential.h:68
Credential & WithPassword(const Aws::String &value)
Definition Credential.h:66
AWS_CHIME_API Credential & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUsername(const char *value)
Definition Credential.h:50
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPassword(const char *value)
Definition Credential.h:65
Credential & WithUsername(const char *value)
Definition Credential.h:53
AWS_CHIME_API Credential(Aws::Utils::Json::JsonView jsonValue)
Credential & WithUsername(const Aws::String &value)
Definition Credential.h:51
const Aws::String & GetPassword() const
Definition Credential.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue