AWS SDK for C++  1.9.103
AWS SDK for C++
UpdatePartnerStatusRequest.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 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdatePartnerStatus"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetAccountId() const{ return m_accountId; }
44 
48  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 
53  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
54 
58  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
59 
63  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
64 
68  inline UpdatePartnerStatusRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
69 
73  inline UpdatePartnerStatusRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
74 
78  inline UpdatePartnerStatusRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
79 
80 
85  inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
86 
91  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
92 
97  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
98 
103  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
104 
109  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
110 
115  inline UpdatePartnerStatusRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
116 
121  inline UpdatePartnerStatusRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
122 
127  inline UpdatePartnerStatusRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
128 
129 
134  inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
135 
140  inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
141 
146  inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
147 
152  inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
153 
158  inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
159 
164  inline UpdatePartnerStatusRequest& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
165 
170  inline UpdatePartnerStatusRequest& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
171 
176  inline UpdatePartnerStatusRequest& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
177 
178 
182  inline const Aws::String& GetPartnerName() const{ return m_partnerName; }
183 
187  inline bool PartnerNameHasBeenSet() const { return m_partnerNameHasBeenSet; }
188 
192  inline void SetPartnerName(const Aws::String& value) { m_partnerNameHasBeenSet = true; m_partnerName = value; }
193 
197  inline void SetPartnerName(Aws::String&& value) { m_partnerNameHasBeenSet = true; m_partnerName = std::move(value); }
198 
202  inline void SetPartnerName(const char* value) { m_partnerNameHasBeenSet = true; m_partnerName.assign(value); }
203 
207  inline UpdatePartnerStatusRequest& WithPartnerName(const Aws::String& value) { SetPartnerName(value); return *this;}
208 
212  inline UpdatePartnerStatusRequest& WithPartnerName(Aws::String&& value) { SetPartnerName(std::move(value)); return *this;}
213 
217  inline UpdatePartnerStatusRequest& WithPartnerName(const char* value) { SetPartnerName(value); return *this;}
218 
219 
223  inline const PartnerIntegrationStatus& GetStatus() const{ return m_status; }
224 
228  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
229 
233  inline void SetStatus(const PartnerIntegrationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
234 
238  inline void SetStatus(PartnerIntegrationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
239 
243  inline UpdatePartnerStatusRequest& WithStatus(const PartnerIntegrationStatus& value) { SetStatus(value); return *this;}
244 
248  inline UpdatePartnerStatusRequest& WithStatus(PartnerIntegrationStatus&& value) { SetStatus(std::move(value)); return *this;}
249 
250 
254  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
255 
259  inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
260 
264  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
265 
269  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
270 
274  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
275 
279  inline UpdatePartnerStatusRequest& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
280 
284  inline UpdatePartnerStatusRequest& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
285 
289  inline UpdatePartnerStatusRequest& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
290 
291  private:
292 
293  Aws::String m_accountId;
294  bool m_accountIdHasBeenSet;
295 
296  Aws::String m_clusterIdentifier;
297  bool m_clusterIdentifierHasBeenSet;
298 
299  Aws::String m_databaseName;
300  bool m_databaseNameHasBeenSet;
301 
302  Aws::String m_partnerName;
303  bool m_partnerNameHasBeenSet;
304 
305  PartnerIntegrationStatus m_status;
306  bool m_statusHasBeenSet;
307 
308  Aws::String m_statusMessage;
309  bool m_statusMessageHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace Redshift
314 } // namespace Aws
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetPartnerName
void SetPartnerName(const Aws::String &value)
Definition: UpdatePartnerStatusRequest.h:192
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithAccountId
UpdatePartnerStatusRequest & WithAccountId(const char *value)
Definition: UpdatePartnerStatusRequest.h:78
Aws::Redshift::Model::UpdatePartnerStatusRequest::GetStatusMessage
const Aws::String & GetStatusMessage() const
Definition: UpdatePartnerStatusRequest.h:254
Aws::Redshift::Model::UpdatePartnerStatusRequest::GetDatabaseName
const Aws::String & GetDatabaseName() const
Definition: UpdatePartnerStatusRequest.h:134
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithAccountId
UpdatePartnerStatusRequest & WithAccountId(const Aws::String &value)
Definition: UpdatePartnerStatusRequest.h:68
Aws::Redshift::Model::UpdatePartnerStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::UpdatePartnerStatusRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithStatusMessage
UpdatePartnerStatusRequest & WithStatusMessage(const Aws::String &value)
Definition: UpdatePartnerStatusRequest.h:279
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithStatusMessage
UpdatePartnerStatusRequest & WithStatusMessage(Aws::String &&value)
Definition: UpdatePartnerStatusRequest.h:284
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetStatus
void SetStatus(const PartnerIntegrationStatus &value)
Definition: UpdatePartnerStatusRequest.h:233
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetDatabaseName
void SetDatabaseName(const char *value)
Definition: UpdatePartnerStatusRequest.h:158
Aws::Redshift::Model::UpdatePartnerStatusRequest
Definition: UpdatePartnerStatusRequest.h:23
Aws::Redshift::Model::UpdatePartnerStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdatePartnerStatusRequest.h:31
Aws::Redshift::Model::UpdatePartnerStatusRequest::UpdatePartnerStatusRequest
UpdatePartnerStatusRequest()
Aws::Redshift::Model::UpdatePartnerStatusRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: UpdatePartnerStatusRequest.h:48
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithPartnerName
UpdatePartnerStatusRequest & WithPartnerName(Aws::String &&value)
Definition: UpdatePartnerStatusRequest.h:212
Aws::Redshift::Model::UpdatePartnerStatusRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: UpdatePartnerStatusRequest.h:91
RedshiftRequest.h
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetPartnerName
void SetPartnerName(Aws::String &&value)
Definition: UpdatePartnerStatusRequest.h:197
Aws::Redshift::Model::UpdatePartnerStatusRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: UpdatePartnerStatusRequest.h:43
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithStatusMessage
UpdatePartnerStatusRequest & WithStatusMessage(const char *value)
Definition: UpdatePartnerStatusRequest.h:289
Aws::Redshift::Model::UpdatePartnerStatusRequest::GetPartnerName
const Aws::String & GetPartnerName() const
Definition: UpdatePartnerStatusRequest.h:182
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithStatus
UpdatePartnerStatusRequest & WithStatus(const PartnerIntegrationStatus &value)
Definition: UpdatePartnerStatusRequest.h:243
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithClusterIdentifier
UpdatePartnerStatusRequest & WithClusterIdentifier(Aws::String &&value)
Definition: UpdatePartnerStatusRequest.h:121
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: UpdatePartnerStatusRequest.h:109
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetAccountId
void SetAccountId(const char *value)
Definition: UpdatePartnerStatusRequest.h:63
PartnerIntegrationStatus.h
Aws::Redshift::Model::UpdatePartnerStatusRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: UpdatePartnerStatusRequest.h:228
Aws::Redshift::Model::PartnerIntegrationStatus
PartnerIntegrationStatus
Definition: PartnerIntegrationStatus.h:17
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetPartnerName
void SetPartnerName(const char *value)
Definition: UpdatePartnerStatusRequest.h:202
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: UpdatePartnerStatusRequest.h:53
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetStatusMessage
void SetStatusMessage(Aws::String &&value)
Definition: UpdatePartnerStatusRequest.h:269
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithClusterIdentifier
UpdatePartnerStatusRequest & WithClusterIdentifier(const char *value)
Definition: UpdatePartnerStatusRequest.h:127
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: UpdatePartnerStatusRequest.h:58
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
AWSString.h
Aws::Redshift::Model::UpdatePartnerStatusRequest::StatusMessageHasBeenSet
bool StatusMessageHasBeenSet() const
Definition: UpdatePartnerStatusRequest.h:259
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithStatus
UpdatePartnerStatusRequest & WithStatus(PartnerIntegrationStatus &&value)
Definition: UpdatePartnerStatusRequest.h:248
Aws::Redshift::Model::UpdatePartnerStatusRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: UpdatePartnerStatusRequest.h:85
Aws::Redshift::Model::UpdatePartnerStatusRequest::GetStatus
const PartnerIntegrationStatus & GetStatus() const
Definition: UpdatePartnerStatusRequest.h:223
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: UpdatePartnerStatusRequest.h:103
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithDatabaseName
UpdatePartnerStatusRequest & WithDatabaseName(Aws::String &&value)
Definition: UpdatePartnerStatusRequest.h:170
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithDatabaseName
UpdatePartnerStatusRequest & WithDatabaseName(const Aws::String &value)
Definition: UpdatePartnerStatusRequest.h:164
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithClusterIdentifier
UpdatePartnerStatusRequest & WithClusterIdentifier(const Aws::String &value)
Definition: UpdatePartnerStatusRequest.h:115
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetDatabaseName
void SetDatabaseName(const Aws::String &value)
Definition: UpdatePartnerStatusRequest.h:146
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithAccountId
UpdatePartnerStatusRequest & WithAccountId(Aws::String &&value)
Definition: UpdatePartnerStatusRequest.h:73
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithDatabaseName
UpdatePartnerStatusRequest & WithDatabaseName(const char *value)
Definition: UpdatePartnerStatusRequest.h:176
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithPartnerName
UpdatePartnerStatusRequest & WithPartnerName(const char *value)
Definition: UpdatePartnerStatusRequest.h:217
Aws::Redshift::Model::UpdatePartnerStatusRequest::DatabaseNameHasBeenSet
bool DatabaseNameHasBeenSet() const
Definition: UpdatePartnerStatusRequest.h:140
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetStatusMessage
void SetStatusMessage(const Aws::String &value)
Definition: UpdatePartnerStatusRequest.h:264
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetDatabaseName
void SetDatabaseName(Aws::String &&value)
Definition: UpdatePartnerStatusRequest.h:152
Aws::Redshift::Model::UpdatePartnerStatusRequest::PartnerNameHasBeenSet
bool PartnerNameHasBeenSet() const
Definition: UpdatePartnerStatusRequest.h:187
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetStatus
void SetStatus(PartnerIntegrationStatus &&value)
Definition: UpdatePartnerStatusRequest.h:238
Aws::Redshift::Model::UpdatePartnerStatusRequest::WithPartnerName
UpdatePartnerStatusRequest & WithPartnerName(const Aws::String &value)
Definition: UpdatePartnerStatusRequest.h:207
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetStatusMessage
void SetStatusMessage(const char *value)
Definition: UpdatePartnerStatusRequest.h:274
Aws::Redshift::Model::UpdatePartnerStatusRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: UpdatePartnerStatusRequest.h:97