AWS SDK for C++  1.9.108
AWS SDK for C++
CredentialPair.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace QuickSight
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetUsername() const{ return m_username; }
47 
51  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
52 
56  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
57 
61  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
62 
66  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
67 
71  inline CredentialPair& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
72 
76  inline CredentialPair& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
77 
81  inline CredentialPair& WithUsername(const char* value) { SetUsername(value); return *this;}
82 
83 
87  inline const Aws::String& GetPassword() const{ return m_password; }
88 
92  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
93 
97  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
98 
102  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
103 
107  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
108 
112  inline CredentialPair& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
113 
117  inline CredentialPair& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
118 
122  inline CredentialPair& WithPassword(const char* value) { SetPassword(value); return *this;}
123 
124 
137  inline const Aws::Vector<DataSourceParameters>& GetAlternateDataSourceParameters() const{ return m_alternateDataSourceParameters; }
138 
151  inline bool AlternateDataSourceParametersHasBeenSet() const { return m_alternateDataSourceParametersHasBeenSet; }
152 
165  inline void SetAlternateDataSourceParameters(const Aws::Vector<DataSourceParameters>& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters = value; }
166 
179  inline void SetAlternateDataSourceParameters(Aws::Vector<DataSourceParameters>&& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters = std::move(value); }
180 
193  inline CredentialPair& WithAlternateDataSourceParameters(const Aws::Vector<DataSourceParameters>& value) { SetAlternateDataSourceParameters(value); return *this;}
194 
207  inline CredentialPair& WithAlternateDataSourceParameters(Aws::Vector<DataSourceParameters>&& value) { SetAlternateDataSourceParameters(std::move(value)); return *this;}
208 
221  inline CredentialPair& AddAlternateDataSourceParameters(const DataSourceParameters& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters.push_back(value); return *this; }
222 
235  inline CredentialPair& AddAlternateDataSourceParameters(DataSourceParameters&& value) { m_alternateDataSourceParametersHasBeenSet = true; m_alternateDataSourceParameters.push_back(std::move(value)); return *this; }
236 
237  private:
238 
239  Aws::String m_username;
240  bool m_usernameHasBeenSet;
241 
242  Aws::String m_password;
243  bool m_passwordHasBeenSet;
244 
245  Aws::Vector<DataSourceParameters> m_alternateDataSourceParameters;
246  bool m_alternateDataSourceParametersHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace QuickSight
251 } // namespace Aws
Aws::QuickSight::Model::CredentialPair::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: CredentialPair.h:51
QuickSight_EXPORTS.h
Aws::QuickSight::Model::CredentialPair::WithPassword
CredentialPair & WithPassword(Aws::String &&value)
Definition: CredentialPair.h:117
Aws::QuickSight::Model::CredentialPair::SetUsername
void SetUsername(const Aws::String &value)
Definition: CredentialPair.h:56
Aws::QuickSight::Model::CredentialPair::WithPassword
CredentialPair & WithPassword(const Aws::String &value)
Definition: CredentialPair.h:112
DataSourceParameters.h
Aws::QuickSight::Model::CredentialPair::SetPassword
void SetPassword(Aws::String &&value)
Definition: CredentialPair.h:102
Aws::QuickSight::Model::CredentialPair::SetPassword
void SetPassword(const Aws::String &value)
Definition: CredentialPair.h:97
Aws::QuickSight::Model::CredentialPair::operator=
CredentialPair & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::QuickSight::Model::CredentialPair::SetUsername
void SetUsername(Aws::String &&value)
Definition: CredentialPair.h:61
AWSVector.h
Aws::QuickSight::Model::CredentialPair
Definition: CredentialPair.h:35
Aws::QuickSight::Model::CredentialPair::WithAlternateDataSourceParameters
CredentialPair & WithAlternateDataSourceParameters(const Aws::Vector< DataSourceParameters > &value)
Definition: CredentialPair.h:193
Aws::QuickSight::Model::CredentialPair::AddAlternateDataSourceParameters
CredentialPair & AddAlternateDataSourceParameters(const DataSourceParameters &value)
Definition: CredentialPair.h:221
Aws::QuickSight::Model::CredentialPair::SetUsername
void SetUsername(const char *value)
Definition: CredentialPair.h:66
Aws::QuickSight::Model::CredentialPair::GetPassword
const Aws::String & GetPassword() const
Definition: CredentialPair.h:87
Aws::QuickSight::Model::CredentialPair::AlternateDataSourceParametersHasBeenSet
bool AlternateDataSourceParametersHasBeenSet() const
Definition: CredentialPair.h:151
Aws::QuickSight::Model::CredentialPair::SetPassword
void SetPassword(const char *value)
Definition: CredentialPair.h:107
Aws::QuickSight::Model::CredentialPair::CredentialPair
CredentialPair()
Aws::QuickSight::Model::CredentialPair::WithPassword
CredentialPair & WithPassword(const char *value)
Definition: CredentialPair.h:122
Aws::QuickSight::Model::CredentialPair::SetAlternateDataSourceParameters
void SetAlternateDataSourceParameters(const Aws::Vector< DataSourceParameters > &value)
Definition: CredentialPair.h:165
Aws::QuickSight::Model::CredentialPair::WithUsername
CredentialPair & WithUsername(const char *value)
Definition: CredentialPair.h:81
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::QuickSight::Model::CredentialPair::WithAlternateDataSourceParameters
CredentialPair & WithAlternateDataSourceParameters(Aws::Vector< DataSourceParameters > &&value)
Definition: CredentialPair.h:207
Aws::QuickSight::Model::DataSourceParameters
Definition: DataSourceParameters.h:54
Aws::QuickSight::Model::CredentialPair::AddAlternateDataSourceParameters
CredentialPair & AddAlternateDataSourceParameters(DataSourceParameters &&value)
Definition: CredentialPair.h:235
Aws::QuickSight::Model::CredentialPair::GetUsername
const Aws::String & GetUsername() const
Definition: CredentialPair.h:46
Aws::QuickSight::Model::CredentialPair::WithUsername
CredentialPair & WithUsername(Aws::String &&value)
Definition: CredentialPair.h:76
Aws::QuickSight::Model::CredentialPair::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: CredentialPair.h:92
AWS_QUICKSIGHT_API
#define AWS_QUICKSIGHT_API
Definition: QuickSight_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::QuickSight::Model::CredentialPair::SetAlternateDataSourceParameters
void SetAlternateDataSourceParameters(Aws::Vector< DataSourceParameters > &&value)
Definition: CredentialPair.h:179
Aws::QuickSight::Model::CredentialPair::CredentialPair
CredentialPair(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::QuickSight::Model::CredentialPair::WithUsername
CredentialPair & WithUsername(const Aws::String &value)
Definition: CredentialPair.h:71
Aws::QuickSight::Model::CredentialPair::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::QuickSight::Model::CredentialPair::GetAlternateDataSourceParameters
const Aws::Vector< DataSourceParameters > & GetAlternateDataSourceParameters() const
Definition: CredentialPair.h:137