AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
GetClusterCredentialsRequest.h
Go to the documentation of this file.
1
6#pragma once
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace 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
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
66 inline const Aws::String& GetDbUser() const{ return m_dbUser; }
67
90 inline bool DbUserHasBeenSet() const { return m_dbUserHasBeenSet; }
91
114 inline void SetDbUser(const Aws::String& value) { m_dbUserHasBeenSet = true; m_dbUser = value; }
115
138 inline void SetDbUser(Aws::String&& value) { m_dbUserHasBeenSet = true; m_dbUser = std::move(value); }
139
162 inline void SetDbUser(const char* value) { m_dbUserHasBeenSet = true; m_dbUser.assign(value); }
163
186 inline GetClusterCredentialsRequest& WithDbUser(const Aws::String& value) { SetDbUser(value); return *this;}
187
210 inline GetClusterCredentialsRequest& WithDbUser(Aws::String&& value) { SetDbUser(std::move(value)); return *this;}
211
234 inline GetClusterCredentialsRequest& WithDbUser(const char* value) { SetDbUser(value); return *this;}
235
236
249 inline const Aws::String& GetDbName() const{ return m_dbName; }
250
263 inline bool DbNameHasBeenSet() const { return m_dbNameHasBeenSet; }
264
277 inline void SetDbName(const Aws::String& value) { m_dbNameHasBeenSet = true; m_dbName = value; }
278
291 inline void SetDbName(Aws::String&& value) { m_dbNameHasBeenSet = true; m_dbName = std::move(value); }
292
305 inline void SetDbName(const char* value) { m_dbNameHasBeenSet = true; m_dbName.assign(value); }
306
319 inline GetClusterCredentialsRequest& WithDbName(const Aws::String& value) { SetDbName(value); return *this;}
320
333 inline GetClusterCredentialsRequest& WithDbName(Aws::String&& value) { SetDbName(std::move(value)); return *this;}
334
347 inline GetClusterCredentialsRequest& WithDbName(const char* value) { SetDbName(value); return *this;}
348
349
354 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
355
360 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
361
366 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
367
372 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
373
378 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
379
385
390 inline GetClusterCredentialsRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
391
396 inline GetClusterCredentialsRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
397
398
403 inline int GetDurationSeconds() const{ return m_durationSeconds; }
404
409 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
410
415 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
416
421 inline GetClusterCredentialsRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
422
423
428 inline bool GetAutoCreate() const{ return m_autoCreate; }
429
434 inline bool AutoCreateHasBeenSet() const { return m_autoCreateHasBeenSet; }
435
440 inline void SetAutoCreate(bool value) { m_autoCreateHasBeenSet = true; m_autoCreate = value; }
441
446 inline GetClusterCredentialsRequest& WithAutoCreate(bool value) { SetAutoCreate(value); return *this;}
447
448
462 inline const Aws::Vector<Aws::String>& GetDbGroups() const{ return m_dbGroups; }
463
477 inline bool DbGroupsHasBeenSet() const { return m_dbGroupsHasBeenSet; }
478
492 inline void SetDbGroups(const Aws::Vector<Aws::String>& value) { m_dbGroupsHasBeenSet = true; m_dbGroups = value; }
493
507 inline void SetDbGroups(Aws::Vector<Aws::String>&& value) { m_dbGroupsHasBeenSet = true; m_dbGroups = std::move(value); }
508
523
537 inline GetClusterCredentialsRequest& WithDbGroups(Aws::Vector<Aws::String>&& value) { SetDbGroups(std::move(value)); return *this;}
538
552 inline GetClusterCredentialsRequest& AddDbGroups(const Aws::String& value) { m_dbGroupsHasBeenSet = true; m_dbGroups.push_back(value); return *this; }
553
567 inline GetClusterCredentialsRequest& AddDbGroups(Aws::String&& value) { m_dbGroupsHasBeenSet = true; m_dbGroups.push_back(std::move(value)); return *this; }
568
582 inline GetClusterCredentialsRequest& AddDbGroups(const char* value) { m_dbGroupsHasBeenSet = true; m_dbGroups.push_back(value); return *this; }
583
584 private:
585
586 Aws::String m_dbUser;
587 bool m_dbUserHasBeenSet = false;
588
589 Aws::String m_dbName;
590 bool m_dbNameHasBeenSet = false;
591
592 Aws::String m_clusterIdentifier;
593 bool m_clusterIdentifierHasBeenSet = false;
594
595 int m_durationSeconds;
596 bool m_durationSecondsHasBeenSet = false;
597
598 bool m_autoCreate;
599 bool m_autoCreateHasBeenSet = false;
600
601 Aws::Vector<Aws::String> m_dbGroups;
602 bool m_dbGroupsHasBeenSet = false;
603 };
604
605} // namespace Model
606} // namespace Redshift
607} // namespace Aws
#define AWS_REDSHIFT_API
GetClusterCredentialsRequest & WithClusterIdentifier(const char *value)
GetClusterCredentialsRequest & WithDbName(const Aws::String &value)
GetClusterCredentialsRequest & WithDbName(const char *value)
GetClusterCredentialsRequest & WithDurationSeconds(int value)
GetClusterCredentialsRequest & AddDbGroups(Aws::String &&value)
GetClusterCredentialsRequest & AddDbGroups(const char *value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
GetClusterCredentialsRequest & WithDbGroups(Aws::Vector< Aws::String > &&value)
GetClusterCredentialsRequest & WithDbUser(const char *value)
GetClusterCredentialsRequest & WithDbGroups(const Aws::Vector< Aws::String > &value)
GetClusterCredentialsRequest & AddDbGroups(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDbGroups() const
GetClusterCredentialsRequest & WithAutoCreate(bool value)
GetClusterCredentialsRequest & WithDbName(Aws::String &&value)
void SetDbGroups(const Aws::Vector< Aws::String > &value)
GetClusterCredentialsRequest & WithClusterIdentifier(Aws::String &&value)
GetClusterCredentialsRequest & WithDbUser(const Aws::String &value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
GetClusterCredentialsRequest & WithClusterIdentifier(const Aws::String &value)
GetClusterCredentialsRequest & WithDbUser(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector