AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DbUserT = Aws::String>
70 void SetDbUser(DbUserT&& value) { m_dbUserHasBeenSet = true; m_dbUser = std::forward<DbUserT>(value); }
71 template<typename DbUserT = Aws::String>
72 GetClusterCredentialsRequest& WithDbUser(DbUserT&& value) { SetDbUser(std::forward<DbUserT>(value)); return *this;}
74
76
88 inline const Aws::String& GetDbName() const { return m_dbName; }
89 inline bool DbNameHasBeenSet() const { return m_dbNameHasBeenSet; }
90 template<typename DbNameT = Aws::String>
91 void SetDbName(DbNameT&& value) { m_dbNameHasBeenSet = true; m_dbName = std::forward<DbNameT>(value); }
92 template<typename DbNameT = Aws::String>
93 GetClusterCredentialsRequest& WithDbName(DbNameT&& value) { SetDbName(std::forward<DbNameT>(value)); return *this;}
95
97
101 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
102 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
103 template<typename ClusterIdentifierT = Aws::String>
104 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
105 template<typename ClusterIdentifierT = Aws::String>
106 GetClusterCredentialsRequest& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
108
110
114 inline int GetDurationSeconds() const { return m_durationSeconds; }
115 inline bool DurationSecondsHasBeenSet() const { return m_durationSecondsHasBeenSet; }
116 inline void SetDurationSeconds(int value) { m_durationSecondsHasBeenSet = true; m_durationSeconds = value; }
117 inline GetClusterCredentialsRequest& WithDurationSeconds(int value) { SetDurationSeconds(value); return *this;}
119
121
125 inline bool GetAutoCreate() const { return m_autoCreate; }
126 inline bool AutoCreateHasBeenSet() const { return m_autoCreateHasBeenSet; }
127 inline void SetAutoCreate(bool value) { m_autoCreateHasBeenSet = true; m_autoCreate = value; }
128 inline GetClusterCredentialsRequest& WithAutoCreate(bool value) { SetAutoCreate(value); return *this;}
130
132
145 inline const Aws::Vector<Aws::String>& GetDbGroups() const { return m_dbGroups; }
146 inline bool DbGroupsHasBeenSet() const { return m_dbGroupsHasBeenSet; }
147 template<typename DbGroupsT = Aws::Vector<Aws::String>>
148 void SetDbGroups(DbGroupsT&& value) { m_dbGroupsHasBeenSet = true; m_dbGroups = std::forward<DbGroupsT>(value); }
149 template<typename DbGroupsT = Aws::Vector<Aws::String>>
150 GetClusterCredentialsRequest& WithDbGroups(DbGroupsT&& value) { SetDbGroups(std::forward<DbGroupsT>(value)); return *this;}
151 template<typename DbGroupsT = Aws::String>
152 GetClusterCredentialsRequest& AddDbGroups(DbGroupsT&& value) { m_dbGroupsHasBeenSet = true; m_dbGroups.emplace_back(std::forward<DbGroupsT>(value)); return *this; }
154
156
159 inline const Aws::String& GetCustomDomainName() const { return m_customDomainName; }
160 inline bool CustomDomainNameHasBeenSet() const { return m_customDomainNameHasBeenSet; }
161 template<typename CustomDomainNameT = Aws::String>
162 void SetCustomDomainName(CustomDomainNameT&& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = std::forward<CustomDomainNameT>(value); }
163 template<typename CustomDomainNameT = Aws::String>
164 GetClusterCredentialsRequest& WithCustomDomainName(CustomDomainNameT&& value) { SetCustomDomainName(std::forward<CustomDomainNameT>(value)); return *this;}
166 private:
167
168 Aws::String m_dbUser;
169 bool m_dbUserHasBeenSet = false;
170
171 Aws::String m_dbName;
172 bool m_dbNameHasBeenSet = false;
173
174 Aws::String m_clusterIdentifier;
175 bool m_clusterIdentifierHasBeenSet = false;
176
177 int m_durationSeconds{0};
178 bool m_durationSecondsHasBeenSet = false;
179
180 bool m_autoCreate{false};
181 bool m_autoCreateHasBeenSet = false;
182
183 Aws::Vector<Aws::String> m_dbGroups;
184 bool m_dbGroupsHasBeenSet = false;
185
186 Aws::String m_customDomainName;
187 bool m_customDomainNameHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace Redshift
192} // namespace Aws
GetClusterCredentialsRequest & AddDbGroups(DbGroupsT &&value)
GetClusterCredentialsRequest & WithCustomDomainName(CustomDomainNameT &&value)
GetClusterCredentialsRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
GetClusterCredentialsRequest & WithDbName(DbNameT &&value)
AWS_REDSHIFT_API GetClusterCredentialsRequest()=default
GetClusterCredentialsRequest & WithDurationSeconds(int value)
GetClusterCredentialsRequest & WithDbUser(DbUserT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
GetClusterCredentialsRequest & WithDbGroups(DbGroupsT &&value)
const Aws::Vector< Aws::String > & GetDbGroups() const
GetClusterCredentialsRequest & WithAutoCreate(bool value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector