AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
AddPartnerRequest.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Redshift
15{
16namespace Model
17{
18
22 {
23 public:
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "AddPartner"; }
31
33
34 protected:
35 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36
37 public:
38
42 inline const Aws::String& GetAccountId() const{ return m_accountId; }
43
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48
52 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
53
57 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
58
62 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
63
67 inline AddPartnerRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
68
72 inline AddPartnerRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
73
77 inline AddPartnerRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
78
79
84 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
85
90 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
91
96 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
97
102 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
103
108 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
109
114 inline AddPartnerRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
115
120 inline AddPartnerRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
121
126 inline AddPartnerRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
127
128
132 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
133
137 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
138
142 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
143
147 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
148
152 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
153
157 inline AddPartnerRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
158
162 inline AddPartnerRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
163
167 inline AddPartnerRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
168
169
173 inline const Aws::String& GetPartnerName() const{ return m_partnerName; }
174
178 inline bool PartnerNameHasBeenSet() const { return m_partnerNameHasBeenSet; }
179
183 inline void SetPartnerName(const Aws::String& value) { m_partnerNameHasBeenSet = true; m_partnerName = value; }
184
188 inline void SetPartnerName(Aws::String&& value) { m_partnerNameHasBeenSet = true; m_partnerName = std::move(value); }
189
193 inline void SetPartnerName(const char* value) { m_partnerNameHasBeenSet = true; m_partnerName.assign(value); }
194
198 inline AddPartnerRequest& WithPartnerName(const Aws::String& value) { SetPartnerName(value); return *this;}
199
203 inline AddPartnerRequest& WithPartnerName(Aws::String&& value) { SetPartnerName(std::move(value)); return *this;}
204
208 inline AddPartnerRequest& WithPartnerName(const char* value) { SetPartnerName(value); return *this;}
209
210 private:
211
212 Aws::String m_accountId;
213 bool m_accountIdHasBeenSet = false;
214
215 Aws::String m_clusterIdentifier;
216 bool m_clusterIdentifierHasBeenSet = false;
217
218 Aws::String m_databaseName;
219 bool m_databaseNameHasBeenSet = false;
220
221 Aws::String m_partnerName;
222 bool m_partnerNameHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace Redshift
227} // namespace Aws
#define AWS_REDSHIFT_API
void SetPartnerName(Aws::String &&value)
AddPartnerRequest & WithAccountId(const char *value)
AddPartnerRequest & WithDatabaseName(Aws::String &&value)
AddPartnerRequest & WithDatabaseName(const char *value)
void SetDatabaseName(Aws::String &&value)
AddPartnerRequest & WithPartnerName(Aws::String &&value)
const Aws::String & GetPartnerName() const
AddPartnerRequest & WithDatabaseName(const Aws::String &value)
const Aws::String & GetAccountId() const
void SetAccountId(const Aws::String &value)
AddPartnerRequest & WithClusterIdentifier(const Aws::String &value)
const Aws::String & GetClusterIdentifier() const
void SetClusterIdentifier(const char *value)
const Aws::String & GetDatabaseName() const
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
AddPartnerRequest & WithClusterIdentifier(const char *value)
void SetPartnerName(const Aws::String &value)
AddPartnerRequest & WithPartnerName(const Aws::String &value)
void SetAccountId(Aws::String &&value)
AddPartnerRequest & WithClusterIdentifier(Aws::String &&value)
void SetClusterIdentifier(Aws::String &&value)
AddPartnerRequest & WithPartnerName(const char *value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
void SetDatabaseName(const Aws::String &value)
AddPartnerRequest & WithAccountId(Aws::String &&value)
AddPartnerRequest & WithAccountId(const Aws::String &value)
void SetClusterIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String