AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateEnvironmentRequest.h
1
6#pragma once
7#include <aws/appconfig/AppConfigRequest.h>
8#include <aws/appconfig/AppConfig_EXPORTS.h>
9#include <aws/appconfig/model/Monitor.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace AppConfig {
17namespace Model {
18
22 public:
23 AWS_APPCONFIG_API UpdateEnvironmentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironment"; }
30
31 AWS_APPCONFIG_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
38 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
39 template <typename ApplicationIdT = Aws::String>
40 void SetApplicationId(ApplicationIdT&& value) {
41 m_applicationIdHasBeenSet = true;
42 m_applicationId = std::forward<ApplicationIdT>(value);
43 }
44 template <typename ApplicationIdT = Aws::String>
46 SetApplicationId(std::forward<ApplicationIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
56 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
57 template <typename EnvironmentIdT = Aws::String>
58 void SetEnvironmentId(EnvironmentIdT&& value) {
59 m_environmentIdHasBeenSet = true;
60 m_environmentId = std::forward<EnvironmentIdT>(value);
61 }
62 template <typename EnvironmentIdT = Aws::String>
64 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::Vector<Monitor>& GetMonitors() const { return m_monitors; }
110 inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; }
111 template <typename MonitorsT = Aws::Vector<Monitor>>
112 void SetMonitors(MonitorsT&& value) {
113 m_monitorsHasBeenSet = true;
114 m_monitors = std::forward<MonitorsT>(value);
115 }
116 template <typename MonitorsT = Aws::Vector<Monitor>>
118 SetMonitors(std::forward<MonitorsT>(value));
119 return *this;
120 }
121 template <typename MonitorsT = Monitor>
123 m_monitorsHasBeenSet = true;
124 m_monitors.emplace_back(std::forward<MonitorsT>(value));
125 return *this;
126 }
128 private:
129 Aws::String m_applicationId;
130
131 Aws::String m_environmentId;
132
133 Aws::String m_name;
134
135 Aws::String m_description;
136
137 Aws::Vector<Monitor> m_monitors;
138 bool m_applicationIdHasBeenSet = false;
139 bool m_environmentIdHasBeenSet = false;
140 bool m_nameHasBeenSet = false;
141 bool m_descriptionHasBeenSet = false;
142 bool m_monitorsHasBeenSet = false;
143};
144
145} // namespace Model
146} // namespace AppConfig
147} // namespace Aws
UpdateEnvironmentRequest & WithEnvironmentId(EnvironmentIdT &&value)
UpdateEnvironmentRequest & WithMonitors(MonitorsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateEnvironmentRequest & WithName(NameT &&value)
UpdateEnvironmentRequest & WithApplicationId(ApplicationIdT &&value)
AWS_APPCONFIG_API Aws::String SerializePayload() const override
UpdateEnvironmentRequest & AddMonitors(MonitorsT &&value)
UpdateEnvironmentRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< Monitor > & GetMonitors() const
AWS_APPCONFIG_API UpdateEnvironmentRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector