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/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/AppConfigRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/appconfig/model/Monitor.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AppConfig
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_APPCONFIG_API UpdateEnvironmentRequest();
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_APPCONFIG_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
44 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
45 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
46 inline UpdateEnvironmentRequest& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
47 inline UpdateEnvironmentRequest& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
48 inline UpdateEnvironmentRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
50
52
55 inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
56 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
57 inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
58 inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
59 inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
60 inline UpdateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
61 inline UpdateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
62 inline UpdateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline UpdateEnvironmentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline UpdateEnvironmentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline UpdateEnvironmentRequest& WithName(const char* value) { SetName(value); return *this;}
78
80
83 inline const Aws::String& GetDescription() const{ return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
86 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
87 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
88 inline UpdateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
89 inline UpdateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
90 inline UpdateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
92
94
97 inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
98 inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; }
99 inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitorsHasBeenSet = true; m_monitors = value; }
100 inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitorsHasBeenSet = true; m_monitors = std::move(value); }
101 inline UpdateEnvironmentRequest& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
102 inline UpdateEnvironmentRequest& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
103 inline UpdateEnvironmentRequest& AddMonitors(const Monitor& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(value); return *this; }
104 inline UpdateEnvironmentRequest& AddMonitors(Monitor&& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(std::move(value)); return *this; }
106 private:
107
108 Aws::String m_applicationId;
109 bool m_applicationIdHasBeenSet = false;
110
111 Aws::String m_environmentId;
112 bool m_environmentIdHasBeenSet = false;
113
114 Aws::String m_name;
115 bool m_nameHasBeenSet = false;
116
117 Aws::String m_description;
118 bool m_descriptionHasBeenSet = false;
119
120 Aws::Vector<Monitor> m_monitors;
121 bool m_monitorsHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace AppConfig
126} // namespace Aws
UpdateEnvironmentRequest & WithDescription(const char *value)
UpdateEnvironmentRequest & WithEnvironmentId(Aws::String &&value)
UpdateEnvironmentRequest & WithDescription(Aws::String &&value)
UpdateEnvironmentRequest & WithApplicationId(const Aws::String &value)
UpdateEnvironmentRequest & WithName(const Aws::String &value)
UpdateEnvironmentRequest & WithApplicationId(const char *value)
UpdateEnvironmentRequest & WithEnvironmentId(const Aws::String &value)
UpdateEnvironmentRequest & WithMonitors(Aws::Vector< Monitor > &&value)
UpdateEnvironmentRequest & WithName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateEnvironmentRequest & WithName(const char *value)
UpdateEnvironmentRequest & AddMonitors(const Monitor &value)
void SetMonitors(const Aws::Vector< Monitor > &value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
UpdateEnvironmentRequest & WithEnvironmentId(const char *value)
UpdateEnvironmentRequest & AddMonitors(Monitor &&value)
UpdateEnvironmentRequest & WithDescription(const Aws::String &value)
UpdateEnvironmentRequest & WithMonitors(const Aws::Vector< Monitor > &value)
const Aws::Vector< Monitor > & GetMonitors() const
UpdateEnvironmentRequest & WithApplicationId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector