AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace AppConfig {
25namespace Model {
27 public:
28 AWS_APPCONFIG_API CreateEnvironmentResult() = default;
31
33
36 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
37 template <typename ApplicationIdT = Aws::String>
38 void SetApplicationId(ApplicationIdT&& value) {
39 m_applicationIdHasBeenSet = true;
40 m_applicationId = std::forward<ApplicationIdT>(value);
41 }
42 template <typename ApplicationIdT = Aws::String>
43 CreateEnvironmentResult& WithApplicationId(ApplicationIdT&& value) {
44 SetApplicationId(std::forward<ApplicationIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 template <typename IdT = Aws::String>
55 void SetId(IdT&& value) {
56 m_idHasBeenSet = true;
57 m_id = std::forward<IdT>(value);
58 }
59 template <typename IdT = Aws::String>
61 SetId(std::forward<IdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetName() const { return m_name; }
71 template <typename NameT = Aws::String>
72 void SetName(NameT&& value) {
73 m_nameHasBeenSet = true;
74 m_name = std::forward<NameT>(value);
75 }
76 template <typename NameT = Aws::String>
78 SetName(std::forward<NameT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 template <typename DescriptionT = Aws::String>
89 void SetDescription(DescriptionT&& value) {
90 m_descriptionHasBeenSet = true;
91 m_description = std::forward<DescriptionT>(value);
92 }
93 template <typename DescriptionT = Aws::String>
95 SetDescription(std::forward<DescriptionT>(value));
96 return *this;
97 }
99
101
106 inline EnvironmentState GetState() const { return m_state; }
107 inline void SetState(EnvironmentState value) {
108 m_stateHasBeenSet = true;
109 m_state = value;
110 }
112 SetState(value);
113 return *this;
114 }
116
118
121 inline const Aws::Vector<Monitor>& GetMonitors() const { return m_monitors; }
122 template <typename MonitorsT = Aws::Vector<Monitor>>
123 void SetMonitors(MonitorsT&& value) {
124 m_monitorsHasBeenSet = true;
125 m_monitors = std::forward<MonitorsT>(value);
126 }
127 template <typename MonitorsT = Aws::Vector<Monitor>>
129 SetMonitors(std::forward<MonitorsT>(value));
130 return *this;
131 }
132 template <typename MonitorsT = Monitor>
134 m_monitorsHasBeenSet = true;
135 m_monitors.emplace_back(std::forward<MonitorsT>(value));
136 return *this;
137 }
139
141
142 inline const Aws::String& GetRequestId() const { return m_requestId; }
143 template <typename RequestIdT = Aws::String>
144 void SetRequestId(RequestIdT&& value) {
145 m_requestIdHasBeenSet = true;
146 m_requestId = std::forward<RequestIdT>(value);
147 }
148 template <typename RequestIdT = Aws::String>
150 SetRequestId(std::forward<RequestIdT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_applicationId;
156
157 Aws::String m_id;
158
159 Aws::String m_name;
160
161 Aws::String m_description;
162
164
165 Aws::Vector<Monitor> m_monitors;
166
167 Aws::String m_requestId;
168 bool m_applicationIdHasBeenSet = false;
169 bool m_idHasBeenSet = false;
170 bool m_nameHasBeenSet = false;
171 bool m_descriptionHasBeenSet = false;
172 bool m_stateHasBeenSet = false;
173 bool m_monitorsHasBeenSet = false;
174 bool m_requestIdHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace AppConfig
179} // 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue