AWS SDK for C++  1.9.107
AWS SDK for C++
GetClusterCredentialsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Redshift
16 {
17 namespace Model
18 {
19 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "GetClusterCredentials"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
65  inline const Aws::String& GetDbUser() const{ return m_dbUser; }
66 
88  inline bool DbUserHasBeenSet() const { return m_dbUserHasBeenSet; }
89 
111  inline void SetDbUser(const Aws::String& value) { m_dbUserHasBeenSet = true; m_dbUser = value; }
112 
134  inline void SetDbUser(Aws::String&& value) { m_dbUserHasBeenSet = true; m_dbUser = std::move(value); }
135 
157  inline void SetDbUser(const char* value) { m_dbUserHasBeenSet = true; m_dbUser.assign(value); }
158 
180  inline GetClusterCredentialsRequest& WithDbUser(const Aws::String& value) { SetDbUser(value); return *this;}
181 
203  inline GetClusterCredentialsRequest& WithDbUser(Aws::String&& value) { SetDbUser(std::move(value)); return *this;}
204 
226  inline GetClusterCredentialsRequest& WithDbUser(const char* value) { SetDbUser(value); return *this;}
227 
228 
241  inline const Aws::String& GetDbName() const{ return m_dbName; }
242 
255  inline bool DbNameHasBeenSet() const { return m_dbNameHasBeenSet; }
256 
269  inline void SetDbName(const Aws::String& value) { m_dbNameHasBeenSet = true; m_dbName = value; }
270 
283  inline void SetDbName(Aws::String&& value) { m_dbNameHasBeenSet = true; m_dbName = std::move(value); }
284 
297  inline void SetDbName(const char* value) { m_dbNameHasBeenSet = true; m_dbName.assign(value); }
298 
311  inline GetClusterCredentialsRequest& WithDbName(const Aws::String& value) { SetDbName(value); return *this;}
312 
325  inline GetClusterCredentialsRequest& WithDbName(Aws::String&& value) { SetDbName(std::move(value)); return *this;}
326 
339  inline GetClusterCredentialsRequest& WithDbName(const char* value) { SetDbName(value); return *this;}
340 
341 
346  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
347 
352  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
353 
358  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
359 
364  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
365 
370  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
371 
376  inline GetClusterCredentialsRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
377 
382  inline GetClusterCredentialsRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
383 
388  inline GetClusterCredentialsRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
389 
390 
395  inline int GetDurationSeconds() const{ return m_durationSeconds; }
396 
401  inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
402 
407  inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
408 
413  inline GetClusterCredentialsRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
414 
415 
420  inline bool GetAutoCreate() const{ return m_autoCreate; }
421 
426  inline bool AutoCreateHasBeenSet() const { return m_autoCreateHasBeenSet; }
427 
432  inline void SetAutoCreate(bool value) { m_autoCreateHasBeenSet = true; m_autoCreate = value; }
433 
438  inline GetClusterCredentialsRequest& WithAutoCreate(bool value) { SetAutoCreate(value); return *this;}
439 
440 
454  inline const Aws::Vector<Aws::String>& GetDbGroups() const{ return m_dbGroups; }
455 
469  inline bool DbGroupsHasBeenSet() const { return m_dbGroupsHasBeenSet; }
470 
484  inline void SetDbGroups(const Aws::Vector<Aws::String>& value) { m_dbGroupsHasBeenSet = true; m_dbGroups = value; }
485 
499  inline void SetDbGroups(Aws::Vector<Aws::String>&& value) { m_dbGroupsHasBeenSet = true; m_dbGroups = std::move(value); }
500 
514  inline GetClusterCredentialsRequest& WithDbGroups(const Aws::Vector<Aws::String>& value) { SetDbGroups(value); return *this;}
515 
529  inline GetClusterCredentialsRequest& WithDbGroups(Aws::Vector<Aws::String>&& value) { SetDbGroups(std::move(value)); return *this;}
530 
544  inline GetClusterCredentialsRequest& AddDbGroups(const Aws::String& value) { m_dbGroupsHasBeenSet = true; m_dbGroups.push_back(value); return *this; }
545 
559  inline GetClusterCredentialsRequest& AddDbGroups(Aws::String&& value) { m_dbGroupsHasBeenSet = true; m_dbGroups.push_back(std::move(value)); return *this; }
560 
574  inline GetClusterCredentialsRequest& AddDbGroups(const char* value) { m_dbGroupsHasBeenSet = true; m_dbGroups.push_back(value); return *this; }
575 
576  private:
577 
578  Aws::String m_dbUser;
579  bool m_dbUserHasBeenSet;
580 
581  Aws::String m_dbName;
582  bool m_dbNameHasBeenSet;
583 
584  Aws::String m_clusterIdentifier;
585  bool m_clusterIdentifierHasBeenSet;
586 
587  int m_durationSeconds;
588  bool m_durationSecondsHasBeenSet;
589 
590  bool m_autoCreate;
591  bool m_autoCreateHasBeenSet;
592 
593  Aws::Vector<Aws::String> m_dbGroups;
594  bool m_dbGroupsHasBeenSet;
595  };
596 
597 } // namespace Model
598 } // namespace Redshift
599 } // namespace Aws
Aws::Redshift::Model::GetClusterCredentialsRequest::WithClusterIdentifier
GetClusterCredentialsRequest & WithClusterIdentifier(const Aws::String &value)
Definition: GetClusterCredentialsRequest.h:376
Aws::Redshift::Model::GetClusterCredentialsRequest::GetDbGroups
const Aws::Vector< Aws::String > & GetDbGroups() const
Definition: GetClusterCredentialsRequest.h:454
Aws::Redshift::Model::GetClusterCredentialsRequest::SetDbUser
void SetDbUser(const char *value)
Definition: GetClusterCredentialsRequest.h:157
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::GetClusterCredentialsRequest::GetAutoCreate
bool GetAutoCreate() const
Definition: GetClusterCredentialsRequest.h:420
Aws::Redshift::Model::GetClusterCredentialsRequest::AddDbGroups
GetClusterCredentialsRequest & AddDbGroups(const char *value)
Definition: GetClusterCredentialsRequest.h:574
Aws::Redshift::Model::GetClusterCredentialsRequest::SetDbName
void SetDbName(const Aws::String &value)
Definition: GetClusterCredentialsRequest.h:269
Aws::Redshift::Model::GetClusterCredentialsRequest::SetAutoCreate
void SetAutoCreate(bool value)
Definition: GetClusterCredentialsRequest.h:432
Aws::Redshift::Model::GetClusterCredentialsRequest::SetDbName
void SetDbName(Aws::String &&value)
Definition: GetClusterCredentialsRequest.h:283
Aws::Redshift::Model::GetClusterCredentialsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::GetClusterCredentialsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
RedshiftRequest.h
Aws::Redshift::Model::GetClusterCredentialsRequest::SetDbGroups
void SetDbGroups(const Aws::Vector< Aws::String > &value)
Definition: GetClusterCredentialsRequest.h:484
Aws::Redshift::Model::GetClusterCredentialsRequest::WithDbUser
GetClusterCredentialsRequest & WithDbUser(const char *value)
Definition: GetClusterCredentialsRequest.h:226
AWSVector.h
Aws::Redshift::Model::GetClusterCredentialsRequest::WithDurationSeconds
GetClusterCredentialsRequest & WithDurationSeconds(int value)
Definition: GetClusterCredentialsRequest.h:413
Aws::Redshift::Model::GetClusterCredentialsRequest::SetDbName
void SetDbName(const char *value)
Definition: GetClusterCredentialsRequest.h:297
Aws::Redshift::Model::GetClusterCredentialsRequest::WithClusterIdentifier
GetClusterCredentialsRequest & WithClusterIdentifier(const char *value)
Definition: GetClusterCredentialsRequest.h:388
Aws::Redshift::Model::GetClusterCredentialsRequest::SetDurationSeconds
void SetDurationSeconds(int value)
Definition: GetClusterCredentialsRequest.h:407
Aws::Redshift::Model::GetClusterCredentialsRequest::WithDbGroups
GetClusterCredentialsRequest & WithDbGroups(Aws::Vector< Aws::String > &&value)
Definition: GetClusterCredentialsRequest.h:529
Aws::Redshift::Model::GetClusterCredentialsRequest::DbGroupsHasBeenSet
bool DbGroupsHasBeenSet() const
Definition: GetClusterCredentialsRequest.h:469
Aws::Redshift::Model::GetClusterCredentialsRequest::SetDbUser
void SetDbUser(const Aws::String &value)
Definition: GetClusterCredentialsRequest.h:111
Aws::Redshift::Model::GetClusterCredentialsRequest::WithClusterIdentifier
GetClusterCredentialsRequest & WithClusterIdentifier(Aws::String &&value)
Definition: GetClusterCredentialsRequest.h:382
Aws::Redshift::Model::GetClusterCredentialsRequest::AddDbGroups
GetClusterCredentialsRequest & AddDbGroups(const Aws::String &value)
Definition: GetClusterCredentialsRequest.h:544
Aws::Redshift::Model::GetClusterCredentialsRequest::AddDbGroups
GetClusterCredentialsRequest & AddDbGroups(Aws::String &&value)
Definition: GetClusterCredentialsRequest.h:559
Aws::Redshift::Model::GetClusterCredentialsRequest::DurationSecondsHasBeenSet
bool DurationSecondsHasBeenSet() const
Definition: GetClusterCredentialsRequest.h:401
Aws::Redshift::Model::GetClusterCredentialsRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: GetClusterCredentialsRequest.h:346
Aws::Redshift::Model::GetClusterCredentialsRequest::GetDbUser
const Aws::String & GetDbUser() const
Definition: GetClusterCredentialsRequest.h:65
Aws::Redshift::Model::GetClusterCredentialsRequest::SetDbUser
void SetDbUser(Aws::String &&value)
Definition: GetClusterCredentialsRequest.h:134
Aws::Redshift::Model::GetClusterCredentialsRequest::GetDbName
const Aws::String & GetDbName() const
Definition: GetClusterCredentialsRequest.h:241
Aws::Redshift::Model::GetClusterCredentialsRequest::DbNameHasBeenSet
bool DbNameHasBeenSet() const
Definition: GetClusterCredentialsRequest.h:255
Aws::Redshift::Model::GetClusterCredentialsRequest::GetDurationSeconds
int GetDurationSeconds() const
Definition: GetClusterCredentialsRequest.h:395
Aws::Redshift::Model::GetClusterCredentialsRequest::AutoCreateHasBeenSet
bool AutoCreateHasBeenSet() const
Definition: GetClusterCredentialsRequest.h:426
Aws::Redshift::Model::GetClusterCredentialsRequest::WithDbName
GetClusterCredentialsRequest & WithDbName(const char *value)
Definition: GetClusterCredentialsRequest.h:339
Aws::Redshift::Model::GetClusterCredentialsRequest::GetClusterCredentialsRequest
GetClusterCredentialsRequest()
Aws::Redshift::Model::GetClusterCredentialsRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: GetClusterCredentialsRequest.h:358
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::GetClusterCredentialsRequest
Definition: GetClusterCredentialsRequest.h:27
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::GetClusterCredentialsRequest::DbUserHasBeenSet
bool DbUserHasBeenSet() const
Definition: GetClusterCredentialsRequest.h:88
Aws::Redshift::Model::GetClusterCredentialsRequest::SetDbGroups
void SetDbGroups(Aws::Vector< Aws::String > &&value)
Definition: GetClusterCredentialsRequest.h:499
Aws::Redshift::Model::GetClusterCredentialsRequest::WithDbUser
GetClusterCredentialsRequest & WithDbUser(const Aws::String &value)
Definition: GetClusterCredentialsRequest.h:180
Aws::Redshift::Model::GetClusterCredentialsRequest::WithDbName
GetClusterCredentialsRequest & WithDbName(Aws::String &&value)
Definition: GetClusterCredentialsRequest.h:325
Aws::Redshift::Model::GetClusterCredentialsRequest::WithDbUser
GetClusterCredentialsRequest & WithDbUser(Aws::String &&value)
Definition: GetClusterCredentialsRequest.h:203
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::GetClusterCredentialsRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: GetClusterCredentialsRequest.h:364
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::GetClusterCredentialsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetClusterCredentialsRequest.h:35
Aws::Redshift::Model::GetClusterCredentialsRequest::WithAutoCreate
GetClusterCredentialsRequest & WithAutoCreate(bool value)
Definition: GetClusterCredentialsRequest.h:438
Aws::Redshift::Model::GetClusterCredentialsRequest::WithDbGroups
GetClusterCredentialsRequest & WithDbGroups(const Aws::Vector< Aws::String > &value)
Definition: GetClusterCredentialsRequest.h:514
Aws::Redshift::Model::GetClusterCredentialsRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: GetClusterCredentialsRequest.h:370
Aws::Redshift::Model::GetClusterCredentialsRequest::WithDbName
GetClusterCredentialsRequest & WithDbName(const Aws::String &value)
Definition: GetClusterCredentialsRequest.h:311
Aws::Redshift::Model::GetClusterCredentialsRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: GetClusterCredentialsRequest.h:352