AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CredentialPair.h
1
6#pragma once
7#include <aws/quicksight/QuickSight_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/quicksight/model/DataSourceParameters.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QuickSight
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_QUICKSIGHT_API CredentialPair();
38 AWS_QUICKSIGHT_API CredentialPair(Aws::Utils::Json::JsonView jsonValue);
39 AWS_QUICKSIGHT_API CredentialPair& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetUsername() const{ return m_username; }
48 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
49 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
50 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
51 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
52 inline CredentialPair& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
53 inline CredentialPair& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
54 inline CredentialPair& WithUsername(const char* value) { SetUsername(value); return *this;}
56
58
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 CredentialPair& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
67 inline CredentialPair& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
68 inline CredentialPair& WithPassword(const char* value) { SetPassword(value); return *this;}
70
72
84 inline const Aws::Vector<DataSourceParameters>& GetAlternateDataSourceParameters() const{ return m_alternateDataSourceParameters; }
85 inline bool AlternateDataSourceParametersHasBeenSet() const { return m_alternateDataSourceParametersHasBeenSet; }
86 inline void SetAlternateDataSourceParameters(const Aws::Vector<DataSourceParameters>& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters = value; }
87 inline void SetAlternateDataSourceParameters(Aws::Vector<DataSourceParameters>&& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters = std::move(value); }
90 inline CredentialPair& AddAlternateDataSourceParameters(const DataSourceParameters& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters.push_back(value); return *this; }
91 inline CredentialPair& AddAlternateDataSourceParameters(DataSourceParameters&& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters.push_back(std::move(value)); return *this; }
93 private:
94
95 Aws::String m_username;
96 bool m_usernameHasBeenSet = false;
97
98 Aws::String m_password;
99 bool m_passwordHasBeenSet = false;
100
101 Aws::Vector<DataSourceParameters> m_alternateDataSourceParameters;
102 bool m_alternateDataSourceParametersHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace QuickSight
107} // namespace Aws
const Aws::String & GetUsername() const
CredentialPair & WithUsername(const char *value)
CredentialPair & WithPassword(const Aws::String &value)
void SetAlternateDataSourceParameters(Aws::Vector< DataSourceParameters > &&value)
CredentialPair & WithPassword(const char *value)
void SetUsername(Aws::String &&value)
CredentialPair & WithUsername(Aws::String &&value)
CredentialPair & AddAlternateDataSourceParameters(const DataSourceParameters &value)
CredentialPair & WithUsername(const Aws::String &value)
AWS_QUICKSIGHT_API CredentialPair(Aws::Utils::Json::JsonView jsonValue)
CredentialPair & WithPassword(Aws::String &&value)
void SetPassword(const Aws::String &value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< DataSourceParameters > & GetAlternateDataSourceParameters() const
const Aws::String & GetPassword() const
AWS_QUICKSIGHT_API CredentialPair & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUsername(const Aws::String &value)
CredentialPair & AddAlternateDataSourceParameters(DataSourceParameters &&value)
void SetAlternateDataSourceParameters(const Aws::Vector< DataSourceParameters > &value)
CredentialPair & WithAlternateDataSourceParameters(const Aws::Vector< DataSourceParameters > &value)
CredentialPair & WithAlternateDataSourceParameters(Aws::Vector< DataSourceParameters > &&value)
void SetPassword(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue