AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetClusterCredentialsRequest.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_REDSHIFT_API GetClusterCredentialsRequest();
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_REDSHIFT_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
67 inline const Aws::String& GetDbUser() const{ return m_dbUser; }
68 inline bool DbUserHasBeenSet() const { return m_dbUserHasBeenSet; }
69 inline void SetDbUser(const Aws::String& value) { m_dbUserHasBeenSet = true; m_dbUser = value; }
70 inline void SetDbUser(Aws::String&& value) { m_dbUserHasBeenSet = true; m_dbUser = std::move(value); }
71 inline void SetDbUser(const char* value) { m_dbUserHasBeenSet = true; m_dbUser.assign(value); }
72 inline GetClusterCredentialsRequest& WithDbUser(const Aws::String& value) { SetDbUser(value); return *this;}
73 inline GetClusterCredentialsRequest& WithDbUser(Aws::String&& value) { SetDbUser(std::move(value)); return *this;}
74 inline GetClusterCredentialsRequest& WithDbUser(const char* value) { SetDbUser(value); return *this;}
76
78
90 inline const Aws::String& GetDbName() const{ return m_dbName; }
91 inline bool DbNameHasBeenSet() const { return m_dbNameHasBeenSet; }
92 inline void SetDbName(const Aws::String& value) { m_dbNameHasBeenSet = true; m_dbName = value; }
93 inline void SetDbName(Aws::String&& value) { m_dbNameHasBeenSet = true; m_dbName = std::move(value); }
94 inline void SetDbName(const char* value) { m_dbNameHasBeenSet = true; m_dbName.assign(value); }
95 inline GetClusterCredentialsRequest& WithDbName(const Aws::String& value) { SetDbName(value); return *this;}
96 inline GetClusterCredentialsRequest& WithDbName(Aws::String&& value) { SetDbName(std::move(value)); return *this;}
97 inline GetClusterCredentialsRequest& WithDbName(const char* value) { SetDbName(value); return *this;}
99
101
105 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
106 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
107 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
108 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
109 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
111 inline GetClusterCredentialsRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
112 inline GetClusterCredentialsRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
114
116
120 inline int GetDurationSeconds() const{ return m_durationSeconds; }
121 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
122 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
123 inline GetClusterCredentialsRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
125
127
131 inline bool GetAutoCreate() const{ return m_autoCreate; }
132 inline bool AutoCreateHasBeenSet() const { return m_autoCreateHasBeenSet; }
133 inline void SetAutoCreate(bool value) { m_autoCreateHasBeenSet = true; m_autoCreate = value; }
134 inline GetClusterCredentialsRequest& WithAutoCreate(bool value) { SetAutoCreate(value); return *this;}
136
138
151 inline const Aws::Vector<Aws::String>& GetDbGroups() const{ return m_dbGroups; }
152 inline bool DbGroupsHasBeenSet() const { return m_dbGroupsHasBeenSet; }
153 inline void SetDbGroups(const Aws::Vector<Aws::String>& value) { m_dbGroupsHasBeenSet = true; m_dbGroups = value; }
154 inline void SetDbGroups(Aws::Vector<Aws::String>&& value) { m_dbGroupsHasBeenSet = true; m_dbGroups = std::move(value); }
156 inline GetClusterCredentialsRequest& WithDbGroups(Aws::Vector<Aws::String>&& value) { SetDbGroups(std::move(value)); return *this;}
157 inline GetClusterCredentialsRequest& AddDbGroups(const Aws::String& value) { m_dbGroupsHasBeenSet = true; m_dbGroups.push_back(value); return *this; }
158 inline GetClusterCredentialsRequest& AddDbGroups(Aws::String&& value) { m_dbGroupsHasBeenSet = true; m_dbGroups.push_back(std::move(value)); return *this; }
159 inline GetClusterCredentialsRequest& AddDbGroups(const char* value) { m_dbGroupsHasBeenSet = true; m_dbGroups.push_back(value); return *this; }
161
163
166 inline const Aws::String& GetCustomDomainName() const{ return m_customDomainName; }
167 inline bool CustomDomainNameHasBeenSet() const { return m_customDomainNameHasBeenSet; }
168 inline void SetCustomDomainName(const Aws::String& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = value; }
169 inline void SetCustomDomainName(Aws::String&& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = std::move(value); }
170 inline void SetCustomDomainName(const char* value) { m_customDomainNameHasBeenSet = true; m_customDomainName.assign(value); }
172 inline GetClusterCredentialsRequest& WithCustomDomainName(Aws::String&& value) { SetCustomDomainName(std::move(value)); return *this;}
173 inline GetClusterCredentialsRequest& WithCustomDomainName(const char* value) { SetCustomDomainName(value); return *this;}
175 private:
176
177 Aws::String m_dbUser;
178 bool m_dbUserHasBeenSet = false;
179
180 Aws::String m_dbName;
181 bool m_dbNameHasBeenSet = false;
182
183 Aws::String m_clusterIdentifier;
184 bool m_clusterIdentifierHasBeenSet = false;
185
186 int m_durationSeconds;
187 bool m_durationSecondsHasBeenSet = false;
188
189 bool m_autoCreate;
190 bool m_autoCreateHasBeenSet = false;
191
192 Aws::Vector<Aws::String> m_dbGroups;
193 bool m_dbGroupsHasBeenSet = false;
194
195 Aws::String m_customDomainName;
196 bool m_customDomainNameHasBeenSet = false;
197 };
198
199} // namespace Model
200} // namespace Redshift
201} // namespace Aws
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)
GetClusterCredentialsRequest & WithCustomDomainName(const char *value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
GetClusterCredentialsRequest & WithCustomDomainName(const Aws::String &value)
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)
GetClusterCredentialsRequest & WithCustomDomainName(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