AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateEnvironmentRequest.h
1
6#pragma once
7#include <aws/m2/MainframeModernization_EXPORTS.h>
8#include <aws/m2/MainframeModernizationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace MainframeModernization
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_MAINFRAMEMODERNIZATION_API UpdateEnvironmentRequest();
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 "UpdateEnvironment"; }
31
32 AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override;
33
34
36
44 inline bool GetApplyDuringMaintenanceWindow() const{ return m_applyDuringMaintenanceWindow; }
45 inline bool ApplyDuringMaintenanceWindowHasBeenSet() const { return m_applyDuringMaintenanceWindowHasBeenSet; }
46 inline void SetApplyDuringMaintenanceWindow(bool value) { m_applyDuringMaintenanceWindowHasBeenSet = true; m_applyDuringMaintenanceWindow = value; }
49
51
55 inline int GetDesiredCapacity() const{ return m_desiredCapacity; }
56 inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
57 inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
58 inline UpdateEnvironmentRequest& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;}
60
62
65 inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; }
66 inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; }
67 inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; }
68 inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); }
69 inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); }
70 inline UpdateEnvironmentRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;}
71 inline UpdateEnvironmentRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;}
72 inline UpdateEnvironmentRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;}
74
76
79 inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
80 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
81 inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
82 inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
83 inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
84 inline UpdateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
85 inline UpdateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
86 inline UpdateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
88
90
99 inline bool GetForceUpdate() const{ return m_forceUpdate; }
100 inline bool ForceUpdateHasBeenSet() const { return m_forceUpdateHasBeenSet; }
101 inline void SetForceUpdate(bool value) { m_forceUpdateHasBeenSet = true; m_forceUpdate = value; }
102 inline UpdateEnvironmentRequest& WithForceUpdate(bool value) { SetForceUpdate(value); return *this;}
104
106
109 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
110 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
111 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
112 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
113 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
114 inline UpdateEnvironmentRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
115 inline UpdateEnvironmentRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
116 inline UpdateEnvironmentRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
118
120
128 inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; }
129 inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; }
130 inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; }
131 inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); }
132 inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); }
137 private:
138
139 bool m_applyDuringMaintenanceWindow;
140 bool m_applyDuringMaintenanceWindowHasBeenSet = false;
141
142 int m_desiredCapacity;
143 bool m_desiredCapacityHasBeenSet = false;
144
145 Aws::String m_engineVersion;
146 bool m_engineVersionHasBeenSet = false;
147
148 Aws::String m_environmentId;
149 bool m_environmentIdHasBeenSet = false;
150
151 bool m_forceUpdate;
152 bool m_forceUpdateHasBeenSet = false;
153
154 Aws::String m_instanceType;
155 bool m_instanceTypeHasBeenSet = false;
156
157 Aws::String m_preferredMaintenanceWindow;
158 bool m_preferredMaintenanceWindowHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace MainframeModernization
163} // namespace Aws
UpdateEnvironmentRequest & WithPreferredMaintenanceWindow(const Aws::String &value)
UpdateEnvironmentRequest & WithEngineVersion(const char *value)
UpdateEnvironmentRequest & WithPreferredMaintenanceWindow(const char *value)
UpdateEnvironmentRequest & WithInstanceType(const char *value)
AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override
UpdateEnvironmentRequest & WithPreferredMaintenanceWindow(Aws::String &&value)
UpdateEnvironmentRequest & WithInstanceType(const Aws::String &value)
UpdateEnvironmentRequest & WithEngineVersion(Aws::String &&value)
UpdateEnvironmentRequest & WithInstanceType(Aws::String &&value)
UpdateEnvironmentRequest & WithEnvironmentId(const Aws::String &value)
UpdateEnvironmentRequest & WithEnvironmentId(const char *value)
UpdateEnvironmentRequest & WithApplyDuringMaintenanceWindow(bool value)
UpdateEnvironmentRequest & WithEngineVersion(const Aws::String &value)
UpdateEnvironmentRequest & WithEnvironmentId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String