AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyClusterMaintenanceRequest.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/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Redshift
16{
17namespace 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_REDSHIFT_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; }
45 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
46 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
47 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
48 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
51 inline ModifyClusterMaintenanceRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
53
55
58 inline bool GetDeferMaintenance() const{ return m_deferMaintenance; }
59 inline bool DeferMaintenanceHasBeenSet() const { return m_deferMaintenanceHasBeenSet; }
60 inline void SetDeferMaintenance(bool value) { m_deferMaintenanceHasBeenSet = true; m_deferMaintenance = value; }
63
65
68 inline const Aws::String& GetDeferMaintenanceIdentifier() const{ return m_deferMaintenanceIdentifier; }
69 inline bool DeferMaintenanceIdentifierHasBeenSet() const { return m_deferMaintenanceIdentifierHasBeenSet; }
70 inline void SetDeferMaintenanceIdentifier(const Aws::String& value) { m_deferMaintenanceIdentifierHasBeenSet = true; m_deferMaintenanceIdentifier = value; }
71 inline void SetDeferMaintenanceIdentifier(Aws::String&& value) { m_deferMaintenanceIdentifierHasBeenSet = true; m_deferMaintenanceIdentifier = std::move(value); }
72 inline void SetDeferMaintenanceIdentifier(const char* value) { m_deferMaintenanceIdentifierHasBeenSet = true; m_deferMaintenanceIdentifier.assign(value); }
77
79
83 inline const Aws::Utils::DateTime& GetDeferMaintenanceStartTime() const{ return m_deferMaintenanceStartTime; }
84 inline bool DeferMaintenanceStartTimeHasBeenSet() const { return m_deferMaintenanceStartTimeHasBeenSet; }
85 inline void SetDeferMaintenanceStartTime(const Aws::Utils::DateTime& value) { m_deferMaintenanceStartTimeHasBeenSet = true; m_deferMaintenanceStartTime = value; }
86 inline void SetDeferMaintenanceStartTime(Aws::Utils::DateTime&& value) { m_deferMaintenanceStartTimeHasBeenSet = true; m_deferMaintenanceStartTime = std::move(value); }
90
92
96 inline const Aws::Utils::DateTime& GetDeferMaintenanceEndTime() const{ return m_deferMaintenanceEndTime; }
97 inline bool DeferMaintenanceEndTimeHasBeenSet() const { return m_deferMaintenanceEndTimeHasBeenSet; }
98 inline void SetDeferMaintenanceEndTime(const Aws::Utils::DateTime& value) { m_deferMaintenanceEndTimeHasBeenSet = true; m_deferMaintenanceEndTime = value; }
99 inline void SetDeferMaintenanceEndTime(Aws::Utils::DateTime&& value) { m_deferMaintenanceEndTimeHasBeenSet = true; m_deferMaintenanceEndTime = std::move(value); }
103
105
110 inline int GetDeferMaintenanceDuration() const{ return m_deferMaintenanceDuration; }
111 inline bool DeferMaintenanceDurationHasBeenSet() const { return m_deferMaintenanceDurationHasBeenSet; }
112 inline void SetDeferMaintenanceDuration(int value) { m_deferMaintenanceDurationHasBeenSet = true; m_deferMaintenanceDuration = value; }
115 private:
116
117 Aws::String m_clusterIdentifier;
118 bool m_clusterIdentifierHasBeenSet = false;
119
120 bool m_deferMaintenance;
121 bool m_deferMaintenanceHasBeenSet = false;
122
123 Aws::String m_deferMaintenanceIdentifier;
124 bool m_deferMaintenanceIdentifierHasBeenSet = false;
125
126 Aws::Utils::DateTime m_deferMaintenanceStartTime;
127 bool m_deferMaintenanceStartTimeHasBeenSet = false;
128
129 Aws::Utils::DateTime m_deferMaintenanceEndTime;
130 bool m_deferMaintenanceEndTimeHasBeenSet = false;
131
132 int m_deferMaintenanceDuration;
133 bool m_deferMaintenanceDurationHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace Redshift
138} // namespace Aws
ModifyClusterMaintenanceRequest & WithDeferMaintenanceStartTime(const Aws::Utils::DateTime &value)
ModifyClusterMaintenanceRequest & WithDeferMaintenanceIdentifier(Aws::String &&value)
ModifyClusterMaintenanceRequest & WithClusterIdentifier(Aws::String &&value)
ModifyClusterMaintenanceRequest & WithDeferMaintenanceIdentifier(const char *value)
ModifyClusterMaintenanceRequest & WithDeferMaintenanceDuration(int value)
ModifyClusterMaintenanceRequest & WithDeferMaintenanceEndTime(Aws::Utils::DateTime &&value)
ModifyClusterMaintenanceRequest & WithClusterIdentifier(const char *value)
ModifyClusterMaintenanceRequest & WithDeferMaintenanceStartTime(Aws::Utils::DateTime &&value)
ModifyClusterMaintenanceRequest & WithDeferMaintenance(bool value)
AWS_REDSHIFT_API Aws::String SerializePayload() const override
AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyClusterMaintenanceRequest & WithDeferMaintenanceEndTime(const Aws::Utils::DateTime &value)
ModifyClusterMaintenanceRequest & WithClusterIdentifier(const Aws::String &value)
ModifyClusterMaintenanceRequest & WithDeferMaintenanceIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String