AWS SDK for C++

AWS SDK for C++ Version 1.11.778

Loading...
Searching...
No Matches
CreateEnvironmentResult.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/appconfig/model/EnvironmentState.h>
9#include <aws/appconfig/model/Monitor.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace AppConfig {
26namespace Model {
28 public:
29 AWS_APPCONFIG_API CreateEnvironmentResult() = default;
32
34
37 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
38 template <typename ApplicationIdT = Aws::String>
39 void SetApplicationId(ApplicationIdT&& value) {
40 m_applicationIdHasBeenSet = true;
41 m_applicationId = std::forward<ApplicationIdT>(value);
42 }
43 template <typename ApplicationIdT = Aws::String>
44 CreateEnvironmentResult& WithApplicationId(ApplicationIdT&& value) {
45 SetApplicationId(std::forward<ApplicationIdT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetId() const { return m_id; }
55 template <typename IdT = Aws::String>
56 void SetId(IdT&& value) {
57 m_idHasBeenSet = true;
58 m_id = std::forward<IdT>(value);
59 }
60 template <typename IdT = Aws::String>
62 SetId(std::forward<IdT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 template <typename NameT = Aws::String>
73 void SetName(NameT&& value) {
74 m_nameHasBeenSet = true;
75 m_name = std::forward<NameT>(value);
76 }
77 template <typename NameT = Aws::String>
79 SetName(std::forward<NameT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
107 inline EnvironmentState GetState() const { return m_state; }
108 inline void SetState(EnvironmentState value) {
109 m_stateHasBeenSet = true;
110 m_state = value;
111 }
113 SetState(value);
114 return *this;
115 }
117
119
122 inline const Aws::Vector<Monitor>& GetMonitors() const { return m_monitors; }
123 template <typename MonitorsT = Aws::Vector<Monitor>>
124 void SetMonitors(MonitorsT&& value) {
125 m_monitorsHasBeenSet = true;
126 m_monitors = std::forward<MonitorsT>(value);
127 }
128 template <typename MonitorsT = Aws::Vector<Monitor>>
130 SetMonitors(std::forward<MonitorsT>(value));
131 return *this;
132 }
133 template <typename MonitorsT = Monitor>
135 m_monitorsHasBeenSet = true;
136 m_monitors.emplace_back(std::forward<MonitorsT>(value));
137 return *this;
138 }
140
142
143 inline const Aws::String& GetRequestId() const { return m_requestId; }
144 template <typename RequestIdT = Aws::String>
145 void SetRequestId(RequestIdT&& value) {
146 m_requestIdHasBeenSet = true;
147 m_requestId = std::forward<RequestIdT>(value);
148 }
149 template <typename RequestIdT = Aws::String>
151 SetRequestId(std::forward<RequestIdT>(value));
152 return *this;
153 }
155 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
156
157 private:
158 Aws::String m_applicationId;
159
160 Aws::String m_id;
161
162 Aws::String m_name;
163
164 Aws::String m_description;
165
167
168 Aws::Vector<Monitor> m_monitors;
169
170 Aws::String m_requestId;
171 Aws::Http::HttpResponseCode m_HttpResponseCode;
172 bool m_applicationIdHasBeenSet = false;
173 bool m_idHasBeenSet = false;
174 bool m_nameHasBeenSet = false;
175 bool m_descriptionHasBeenSet = false;
176 bool m_stateHasBeenSet = false;
177 bool m_monitorsHasBeenSet = false;
178 bool m_requestIdHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace AppConfig
183} // namespace Aws
AWS_APPCONFIG_API CreateEnvironmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEnvironmentResult & WithId(IdT &&value)
CreateEnvironmentResult & WithDescription(DescriptionT &&value)
AWS_APPCONFIG_API CreateEnvironmentResult()=default
CreateEnvironmentResult & WithState(EnvironmentState value)
CreateEnvironmentResult & AddMonitors(MonitorsT &&value)
const Aws::Vector< Monitor > & GetMonitors() const
AWS_APPCONFIG_API CreateEnvironmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEnvironmentResult & WithName(NameT &&value)
CreateEnvironmentResult & WithMonitors(MonitorsT &&value)
CreateEnvironmentResult & WithApplicationId(ApplicationIdT &&value)
CreateEnvironmentResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue