AWS SDK for C++  1.8.71
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
GetClusterCredentialsRequest & WithDurationSeconds(int value)
GetClusterCredentialsRequest & WithDbUser(const char *value)
GetClusterCredentialsRequest & WithDbUser(const Aws::String &value)
GetClusterCredentialsRequest & AddDbGroups(const char *value)
GetClusterCredentialsRequest & WithDbName(const Aws::String &value)
GetClusterCredentialsRequest & WithClusterIdentifier(const char *value)
GetClusterCredentialsRequest & WithDbName(Aws::String &&value)
GetClusterCredentialsRequest & WithDbUser(Aws::String &&value)
void SetDbGroups(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
virtual const char * GetServiceRequestName() const override
GetClusterCredentialsRequest & WithDbGroups(Aws::Vector< Aws::String > &&value)
GetClusterCredentialsRequest & AddDbGroups(const Aws::String &value)
#define AWS_REDSHIFT_API
GetClusterCredentialsRequest & WithDbGroups(const Aws::Vector< Aws::String > &value)
GetClusterCredentialsRequest & WithAutoCreate(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetClusterCredentialsRequest & AddDbGroups(Aws::String &&value)
GetClusterCredentialsRequest & WithClusterIdentifier(const Aws::String &value)
const Aws::Vector< Aws::String > & GetDbGroups() const
GetClusterCredentialsRequest & WithDbName(const char *value)
GetClusterCredentialsRequest & WithClusterIdentifier(Aws::String &&value)