AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdatePartnerStatusRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/redshift/RedshiftRequest.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10#include <aws/redshift/model/PartnerIntegrationStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Redshift {
16namespace Model {
17
21 public:
22 AWS_REDSHIFT_API UpdatePartnerStatusRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdatePartnerStatus"; }
29
30 AWS_REDSHIFT_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template <typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) {
44 m_accountIdHasBeenSet = true;
45 m_accountId = std::forward<AccountIdT>(value);
46 }
47 template <typename AccountIdT = Aws::String>
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
60 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
61 template <typename ClusterIdentifierT = Aws::String>
62 void SetClusterIdentifier(ClusterIdentifierT&& value) {
63 m_clusterIdentifierHasBeenSet = true;
64 m_clusterIdentifier = std::forward<ClusterIdentifierT>(value);
65 }
66 template <typename ClusterIdentifierT = Aws::String>
68 SetClusterIdentifier(std::forward<ClusterIdentifierT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
79 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
80 template <typename DatabaseNameT = Aws::String>
81 void SetDatabaseName(DatabaseNameT&& value) {
82 m_databaseNameHasBeenSet = true;
83 m_databaseName = std::forward<DatabaseNameT>(value);
84 }
85 template <typename DatabaseNameT = Aws::String>
87 SetDatabaseName(std::forward<DatabaseNameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetPartnerName() const { return m_partnerName; }
97 inline bool PartnerNameHasBeenSet() const { return m_partnerNameHasBeenSet; }
98 template <typename PartnerNameT = Aws::String>
99 void SetPartnerName(PartnerNameT&& value) {
100 m_partnerNameHasBeenSet = true;
101 m_partnerName = std::forward<PartnerNameT>(value);
102 }
103 template <typename PartnerNameT = Aws::String>
105 SetPartnerName(std::forward<PartnerNameT>(value));
106 return *this;
107 }
109
111
114 inline PartnerIntegrationStatus GetStatus() const { return m_status; }
115 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
117 m_statusHasBeenSet = true;
118 m_status = value;
119 }
121 SetStatus(value);
122 return *this;
123 }
125
127
130 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
131 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
132 template <typename StatusMessageT = Aws::String>
133 void SetStatusMessage(StatusMessageT&& value) {
134 m_statusMessageHasBeenSet = true;
135 m_statusMessage = std::forward<StatusMessageT>(value);
136 }
137 template <typename StatusMessageT = Aws::String>
139 SetStatusMessage(std::forward<StatusMessageT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_accountId;
145
146 Aws::String m_clusterIdentifier;
147
148 Aws::String m_databaseName;
149
150 Aws::String m_partnerName;
151
153
154 Aws::String m_statusMessage;
155 bool m_accountIdHasBeenSet = false;
156 bool m_clusterIdentifierHasBeenSet = false;
157 bool m_databaseNameHasBeenSet = false;
158 bool m_partnerNameHasBeenSet = false;
159 bool m_statusHasBeenSet = false;
160 bool m_statusMessageHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace Redshift
165} // namespace Aws
virtual const char * GetServiceRequestName() const override
UpdatePartnerStatusRequest & WithDatabaseName(DatabaseNameT &&value)
UpdatePartnerStatusRequest & WithStatus(PartnerIntegrationStatus value)
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UpdatePartnerStatusRequest & WithAccountId(AccountIdT &&value)
AWS_REDSHIFT_API UpdatePartnerStatusRequest()=default
UpdatePartnerStatusRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
UpdatePartnerStatusRequest & WithPartnerName(PartnerNameT &&value)
UpdatePartnerStatusRequest & WithStatusMessage(StatusMessageT &&value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String