AWS SDK for C++  1.9.110
AWS SDK for C++
ModifyClusterMaintenanceRequest.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 "ModifyClusterMaintenance"; }
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& GetClusterIdentifier() const{ return m_clusterIdentifier; }
44 
48  inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
49 
53  inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
54 
58  inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
59 
63  inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
64 
68  inline ModifyClusterMaintenanceRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
69 
73  inline ModifyClusterMaintenanceRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
74 
78  inline ModifyClusterMaintenanceRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
79 
80 
84  inline bool GetDeferMaintenance() const{ return m_deferMaintenance; }
85 
89  inline bool DeferMaintenanceHasBeenSet() const { return m_deferMaintenanceHasBeenSet; }
90 
94  inline void SetDeferMaintenance(bool value) { m_deferMaintenanceHasBeenSet = true; m_deferMaintenance = value; }
95 
99  inline ModifyClusterMaintenanceRequest& WithDeferMaintenance(bool value) { SetDeferMaintenance(value); return *this;}
100 
101 
105  inline const Aws::String& GetDeferMaintenanceIdentifier() const{ return m_deferMaintenanceIdentifier; }
106 
110  inline bool DeferMaintenanceIdentifierHasBeenSet() const { return m_deferMaintenanceIdentifierHasBeenSet; }
111 
115  inline void SetDeferMaintenanceIdentifier(const Aws::String& value) { m_deferMaintenanceIdentifierHasBeenSet = true; m_deferMaintenanceIdentifier = value; }
116 
120  inline void SetDeferMaintenanceIdentifier(Aws::String&& value) { m_deferMaintenanceIdentifierHasBeenSet = true; m_deferMaintenanceIdentifier = std::move(value); }
121 
125  inline void SetDeferMaintenanceIdentifier(const char* value) { m_deferMaintenanceIdentifierHasBeenSet = true; m_deferMaintenanceIdentifier.assign(value); }
126 
130  inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceIdentifier(const Aws::String& value) { SetDeferMaintenanceIdentifier(value); return *this;}
131 
135  inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceIdentifier(Aws::String&& value) { SetDeferMaintenanceIdentifier(std::move(value)); return *this;}
136 
140  inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceIdentifier(const char* value) { SetDeferMaintenanceIdentifier(value); return *this;}
141 
142 
147  inline const Aws::Utils::DateTime& GetDeferMaintenanceStartTime() const{ return m_deferMaintenanceStartTime; }
148 
153  inline bool DeferMaintenanceStartTimeHasBeenSet() const { return m_deferMaintenanceStartTimeHasBeenSet; }
154 
159  inline void SetDeferMaintenanceStartTime(const Aws::Utils::DateTime& value) { m_deferMaintenanceStartTimeHasBeenSet = true; m_deferMaintenanceStartTime = value; }
160 
165  inline void SetDeferMaintenanceStartTime(Aws::Utils::DateTime&& value) { m_deferMaintenanceStartTimeHasBeenSet = true; m_deferMaintenanceStartTime = std::move(value); }
166 
171  inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceStartTime(const Aws::Utils::DateTime& value) { SetDeferMaintenanceStartTime(value); return *this;}
172 
177  inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceStartTime(Aws::Utils::DateTime&& value) { SetDeferMaintenanceStartTime(std::move(value)); return *this;}
178 
179 
184  inline const Aws::Utils::DateTime& GetDeferMaintenanceEndTime() const{ return m_deferMaintenanceEndTime; }
185 
190  inline bool DeferMaintenanceEndTimeHasBeenSet() const { return m_deferMaintenanceEndTimeHasBeenSet; }
191 
196  inline void SetDeferMaintenanceEndTime(const Aws::Utils::DateTime& value) { m_deferMaintenanceEndTimeHasBeenSet = true; m_deferMaintenanceEndTime = value; }
197 
202  inline void SetDeferMaintenanceEndTime(Aws::Utils::DateTime&& value) { m_deferMaintenanceEndTimeHasBeenSet = true; m_deferMaintenanceEndTime = std::move(value); }
203 
208  inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceEndTime(const Aws::Utils::DateTime& value) { SetDeferMaintenanceEndTime(value); return *this;}
209 
214  inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceEndTime(Aws::Utils::DateTime&& value) { SetDeferMaintenanceEndTime(std::move(value)); return *this;}
215 
216 
222  inline int GetDeferMaintenanceDuration() const{ return m_deferMaintenanceDuration; }
223 
229  inline bool DeferMaintenanceDurationHasBeenSet() const { return m_deferMaintenanceDurationHasBeenSet; }
230 
236  inline void SetDeferMaintenanceDuration(int value) { m_deferMaintenanceDurationHasBeenSet = true; m_deferMaintenanceDuration = value; }
237 
243  inline ModifyClusterMaintenanceRequest& WithDeferMaintenanceDuration(int value) { SetDeferMaintenanceDuration(value); return *this;}
244 
245  private:
246 
247  Aws::String m_clusterIdentifier;
248  bool m_clusterIdentifierHasBeenSet;
249 
250  bool m_deferMaintenance;
251  bool m_deferMaintenanceHasBeenSet;
252 
253  Aws::String m_deferMaintenanceIdentifier;
254  bool m_deferMaintenanceIdentifierHasBeenSet;
255 
256  Aws::Utils::DateTime m_deferMaintenanceStartTime;
257  bool m_deferMaintenanceStartTimeHasBeenSet;
258 
259  Aws::Utils::DateTime m_deferMaintenanceEndTime;
260  bool m_deferMaintenanceEndTimeHasBeenSet;
261 
262  int m_deferMaintenanceDuration;
263  bool m_deferMaintenanceDurationHasBeenSet;
264  };
265 
266 } // namespace Model
267 } // namespace Redshift
268 } // namespace Aws
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetDeferMaintenanceIdentifier
void SetDeferMaintenanceIdentifier(Aws::String &&value)
Definition: ModifyClusterMaintenanceRequest.h:120
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithClusterIdentifier
ModifyClusterMaintenanceRequest & WithClusterIdentifier(Aws::String &&value)
Definition: ModifyClusterMaintenanceRequest.h:73
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetDeferMaintenanceStartTime
void SetDeferMaintenanceStartTime(const Aws::Utils::DateTime &value)
Definition: ModifyClusterMaintenanceRequest.h:159
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetDeferMaintenanceIdentifier
void SetDeferMaintenanceIdentifier(const Aws::String &value)
Definition: ModifyClusterMaintenanceRequest.h:115
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::GetDeferMaintenanceStartTime
const Aws::Utils::DateTime & GetDeferMaintenanceStartTime() const
Definition: ModifyClusterMaintenanceRequest.h:147
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithClusterIdentifier
ModifyClusterMaintenanceRequest & WithClusterIdentifier(const char *value)
Definition: ModifyClusterMaintenanceRequest.h:78
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
DateTime.h
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::ClusterIdentifierHasBeenSet
bool ClusterIdentifierHasBeenSet() const
Definition: ModifyClusterMaintenanceRequest.h:48
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::GetDeferMaintenanceEndTime
const Aws::Utils::DateTime & GetDeferMaintenanceEndTime() const
Definition: ModifyClusterMaintenanceRequest.h:184
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithDeferMaintenanceEndTime
ModifyClusterMaintenanceRequest & WithDeferMaintenanceEndTime(const Aws::Utils::DateTime &value)
Definition: ModifyClusterMaintenanceRequest.h:208
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithDeferMaintenanceIdentifier
ModifyClusterMaintenanceRequest & WithDeferMaintenanceIdentifier(Aws::String &&value)
Definition: ModifyClusterMaintenanceRequest.h:135
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetClusterIdentifier
void SetClusterIdentifier(const Aws::String &value)
Definition: ModifyClusterMaintenanceRequest.h:53
RedshiftRequest.h
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::GetClusterIdentifier
const Aws::String & GetClusterIdentifier() const
Definition: ModifyClusterMaintenanceRequest.h:43
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::DeferMaintenanceStartTimeHasBeenSet
bool DeferMaintenanceStartTimeHasBeenSet() const
Definition: ModifyClusterMaintenanceRequest.h:153
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetDeferMaintenanceEndTime
void SetDeferMaintenanceEndTime(Aws::Utils::DateTime &&value)
Definition: ModifyClusterMaintenanceRequest.h:202
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetClusterIdentifier
void SetClusterIdentifier(Aws::String &&value)
Definition: ModifyClusterMaintenanceRequest.h:58
Aws::Redshift::Model::ModifyClusterMaintenanceRequest
Definition: ModifyClusterMaintenanceRequest.h:23
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithClusterIdentifier
ModifyClusterMaintenanceRequest & WithClusterIdentifier(const Aws::String &value)
Definition: ModifyClusterMaintenanceRequest.h:68
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetDeferMaintenanceIdentifier
void SetDeferMaintenanceIdentifier(const char *value)
Definition: ModifyClusterMaintenanceRequest.h:125
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::GetDeferMaintenance
bool GetDeferMaintenance() const
Definition: ModifyClusterMaintenanceRequest.h:84
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyClusterMaintenanceRequest.h:31
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetDeferMaintenanceStartTime
void SetDeferMaintenanceStartTime(Aws::Utils::DateTime &&value)
Definition: ModifyClusterMaintenanceRequest.h:165
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetDeferMaintenanceDuration
void SetDeferMaintenanceDuration(int value)
Definition: ModifyClusterMaintenanceRequest.h:236
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::DeferMaintenanceIdentifierHasBeenSet
bool DeferMaintenanceIdentifierHasBeenSet() const
Definition: ModifyClusterMaintenanceRequest.h:110
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetDeferMaintenance
void SetDeferMaintenance(bool value)
Definition: ModifyClusterMaintenanceRequest.h:94
AWSString.h
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetDeferMaintenanceEndTime
void SetDeferMaintenanceEndTime(const Aws::Utils::DateTime &value)
Definition: ModifyClusterMaintenanceRequest.h:196
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithDeferMaintenanceIdentifier
ModifyClusterMaintenanceRequest & WithDeferMaintenanceIdentifier(const char *value)
Definition: ModifyClusterMaintenanceRequest.h:140
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::ModifyClusterMaintenanceRequest
ModifyClusterMaintenanceRequest()
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithDeferMaintenanceStartTime
ModifyClusterMaintenanceRequest & WithDeferMaintenanceStartTime(const Aws::Utils::DateTime &value)
Definition: ModifyClusterMaintenanceRequest.h:171
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithDeferMaintenanceEndTime
ModifyClusterMaintenanceRequest & WithDeferMaintenanceEndTime(Aws::Utils::DateTime &&value)
Definition: ModifyClusterMaintenanceRequest.h:214
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithDeferMaintenanceDuration
ModifyClusterMaintenanceRequest & WithDeferMaintenanceDuration(int value)
Definition: ModifyClusterMaintenanceRequest.h:243
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithDeferMaintenanceStartTime
ModifyClusterMaintenanceRequest & WithDeferMaintenanceStartTime(Aws::Utils::DateTime &&value)
Definition: ModifyClusterMaintenanceRequest.h:177
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::SetClusterIdentifier
void SetClusterIdentifier(const char *value)
Definition: ModifyClusterMaintenanceRequest.h:63
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithDeferMaintenanceIdentifier
ModifyClusterMaintenanceRequest & WithDeferMaintenanceIdentifier(const Aws::String &value)
Definition: ModifyClusterMaintenanceRequest.h:130
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::GetDeferMaintenanceIdentifier
const Aws::String & GetDeferMaintenanceIdentifier() const
Definition: ModifyClusterMaintenanceRequest.h:105
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::DeferMaintenanceHasBeenSet
bool DeferMaintenanceHasBeenSet() const
Definition: ModifyClusterMaintenanceRequest.h:89
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::DeferMaintenanceDurationHasBeenSet
bool DeferMaintenanceDurationHasBeenSet() const
Definition: ModifyClusterMaintenanceRequest.h:229
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::WithDeferMaintenance
ModifyClusterMaintenanceRequest & WithDeferMaintenance(bool value)
Definition: ModifyClusterMaintenanceRequest.h:99
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::DeferMaintenanceEndTimeHasBeenSet
bool DeferMaintenanceEndTimeHasBeenSet() const
Definition: ModifyClusterMaintenanceRequest.h:190
Aws::Redshift::Model::ModifyClusterMaintenanceRequest::GetDeferMaintenanceDuration
int GetDeferMaintenanceDuration() const
Definition: ModifyClusterMaintenanceRequest.h:222