AWS SDK for C++  1.9.110
AWS SDK for C++
UpdateEnvironmentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace AppConfig
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironment"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
41 
45  inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
46 
50  inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
51 
55  inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
56 
60  inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
61 
65  inline UpdateEnvironmentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
66 
70  inline UpdateEnvironmentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
71 
75  inline UpdateEnvironmentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
76 
77 
81  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
82 
86  inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
87 
91  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
92 
96  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
97 
101  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
102 
106  inline UpdateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
107 
111  inline UpdateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
112 
116  inline UpdateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
117 
118 
122  inline const Aws::String& GetName() const{ return m_name; }
123 
127  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
128 
132  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
133 
137  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
138 
142  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
143 
147  inline UpdateEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
148 
152  inline UpdateEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
153 
157  inline UpdateEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;}
158 
159 
163  inline const Aws::String& GetDescription() const{ return m_description; }
164 
168  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
169 
173  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
174 
178  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
179 
183  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
184 
188  inline UpdateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
189 
193  inline UpdateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
194 
198  inline UpdateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
199 
200 
204  inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
205 
209  inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; }
210 
214  inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitorsHasBeenSet = true; m_monitors = value; }
215 
219  inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitorsHasBeenSet = true; m_monitors = std::move(value); }
220 
224  inline UpdateEnvironmentRequest& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
225 
229  inline UpdateEnvironmentRequest& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
230 
234  inline UpdateEnvironmentRequest& AddMonitors(const Monitor& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(value); return *this; }
235 
239  inline UpdateEnvironmentRequest& AddMonitors(Monitor&& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(std::move(value)); return *this; }
240 
241  private:
242 
243  Aws::String m_applicationId;
244  bool m_applicationIdHasBeenSet;
245 
246  Aws::String m_environmentId;
247  bool m_environmentIdHasBeenSet;
248 
249  Aws::String m_name;
250  bool m_nameHasBeenSet;
251 
252  Aws::String m_description;
253  bool m_descriptionHasBeenSet;
254 
255  Aws::Vector<Monitor> m_monitors;
256  bool m_monitorsHasBeenSet;
257  };
258 
259 } // namespace Model
260 } // namespace AppConfig
261 } // namespace Aws
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetApplicationId
void SetApplicationId(const char *value)
Definition: UpdateEnvironmentRequest.h:60
Monitor.h
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateEnvironmentRequest.h:173
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithName
UpdateEnvironmentRequest & WithName(const Aws::String &value)
Definition: UpdateEnvironmentRequest.h:147
Aws::AppConfig::Model::UpdateEnvironmentRequest::GetEnvironmentId
const Aws::String & GetEnvironmentId() const
Definition: UpdateEnvironmentRequest.h:81
Aws::AppConfig::Model::UpdateEnvironmentRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateEnvironmentRequest.h:168
Aws::AppConfig::Model::UpdateEnvironmentRequest
Definition: UpdateEnvironmentRequest.h:24
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithDescription
UpdateEnvironmentRequest & WithDescription(const char *value)
Definition: UpdateEnvironmentRequest.h:198
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithApplicationId
UpdateEnvironmentRequest & WithApplicationId(const char *value)
Definition: UpdateEnvironmentRequest.h:75
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetMonitors
void SetMonitors(Aws::Vector< Monitor > &&value)
Definition: UpdateEnvironmentRequest.h:219
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateEnvironmentRequest.h:183
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetName
void SetName(const char *value)
Definition: UpdateEnvironmentRequest.h:142
Aws::AppConfig::Model::UpdateEnvironmentRequest::GetMonitors
const Aws::Vector< Monitor > & GetMonitors() const
Definition: UpdateEnvironmentRequest.h:204
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetEnvironmentId
void SetEnvironmentId(const char *value)
Definition: UpdateEnvironmentRequest.h:101
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithMonitors
UpdateEnvironmentRequest & WithMonitors(Aws::Vector< Monitor > &&value)
Definition: UpdateEnvironmentRequest.h:229
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetMonitors
void SetMonitors(const Aws::Vector< Monitor > &value)
Definition: UpdateEnvironmentRequest.h:214
Aws::AppConfig::Model::UpdateEnvironmentRequest::UpdateEnvironmentRequest
UpdateEnvironmentRequest()
Aws::AppConfig::Model::UpdateEnvironmentRequest::AddMonitors
UpdateEnvironmentRequest & AddMonitors(Monitor &&value)
Definition: UpdateEnvironmentRequest.h:239
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateEnvironmentRequest.h:132
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateEnvironmentRequest.h:137
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetApplicationId
void SetApplicationId(Aws::String &&value)
Definition: UpdateEnvironmentRequest.h:55
Aws::AppConfig::Model::UpdateEnvironmentRequest::GetName
const Aws::String & GetName() const
Definition: UpdateEnvironmentRequest.h:122
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithEnvironmentId
UpdateEnvironmentRequest & WithEnvironmentId(const char *value)
Definition: UpdateEnvironmentRequest.h:116
AWSVector.h
AppConfig_EXPORTS.h
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithApplicationId
UpdateEnvironmentRequest & WithApplicationId(Aws::String &&value)
Definition: UpdateEnvironmentRequest.h:70
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithDescription
UpdateEnvironmentRequest & WithDescription(Aws::String &&value)
Definition: UpdateEnvironmentRequest.h:193
Aws::AppConfig::Model::UpdateEnvironmentRequest::EnvironmentIdHasBeenSet
bool EnvironmentIdHasBeenSet() const
Definition: UpdateEnvironmentRequest.h:86
Aws::AppConfig::Model::UpdateEnvironmentRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateEnvironmentRequest.h:127
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithDescription
UpdateEnvironmentRequest & WithDescription(const Aws::String &value)
Definition: UpdateEnvironmentRequest.h:188
Aws::AppConfig::Model::UpdateEnvironmentRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateEnvironmentRequest.h:163
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithMonitors
UpdateEnvironmentRequest & WithMonitors(const Aws::Vector< Monitor > &value)
Definition: UpdateEnvironmentRequest.h:224
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithName
UpdateEnvironmentRequest & WithName(const char *value)
Definition: UpdateEnvironmentRequest.h:157
Aws::AppConfig::Model::UpdateEnvironmentRequest::SerializePayload
Aws::String SerializePayload() const override
AppConfigRequest.h
Aws::AppConfig::Model::UpdateEnvironmentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateEnvironmentRequest.h:32
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetEnvironmentId
void SetEnvironmentId(const Aws::String &value)
Definition: UpdateEnvironmentRequest.h:91
Aws::AppConfig::Model::UpdateEnvironmentRequest::AddMonitors
UpdateEnvironmentRequest & AddMonitors(const Monitor &value)
Definition: UpdateEnvironmentRequest.h:234
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateEnvironmentRequest.h:178
Aws::AppConfig::Model::UpdateEnvironmentRequest::MonitorsHasBeenSet
bool MonitorsHasBeenSet() const
Definition: UpdateEnvironmentRequest.h:209
Aws::AppConfig::AppConfigRequest
Definition: AppConfigRequest.h:18
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetEnvironmentId
void SetEnvironmentId(Aws::String &&value)
Definition: UpdateEnvironmentRequest.h:96
AWSString.h
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithApplicationId
UpdateEnvironmentRequest & WithApplicationId(const Aws::String &value)
Definition: UpdateEnvironmentRequest.h:65
Aws::AppConfig::Model::Monitor
Definition: Monitor.h:33
Aws::AppConfig::Model::UpdateEnvironmentRequest::SetApplicationId
void SetApplicationId(const Aws::String &value)
Definition: UpdateEnvironmentRequest.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_APPCONFIG_API
#define AWS_APPCONFIG_API
Definition: AppConfig_EXPORTS.h:28
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithEnvironmentId
UpdateEnvironmentRequest & WithEnvironmentId(const Aws::String &value)
Definition: UpdateEnvironmentRequest.h:106
Aws::AppConfig::Model::UpdateEnvironmentRequest::ApplicationIdHasBeenSet
bool ApplicationIdHasBeenSet() const
Definition: UpdateEnvironmentRequest.h:45
Aws::AppConfig::Model::UpdateEnvironmentRequest::GetApplicationId
const Aws::String & GetApplicationId() const
Definition: UpdateEnvironmentRequest.h:40
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithName
UpdateEnvironmentRequest & WithName(Aws::String &&value)
Definition: UpdateEnvironmentRequest.h:152
Aws::AppConfig::Model::UpdateEnvironmentRequest::WithEnvironmentId
UpdateEnvironmentRequest & WithEnvironmentId(Aws::String &&value)
Definition: UpdateEnvironmentRequest.h:111