AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Environment.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 {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppConfig {
23namespace Model {
24
26 public:
27 AWS_APPCONFIG_API Environment() = default;
28 AWS_APPCONFIG_API Environment(Aws::Utils::Json::JsonView jsonValue);
29 AWS_APPCONFIG_API Environment& operator=(Aws::Utils::Json::JsonView jsonValue);
30 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
31
33
36 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
37 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
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 Environment& 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 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 template <typename IdT = Aws::String>
57 void SetId(IdT&& value) {
58 m_idHasBeenSet = true;
59 m_id = std::forward<IdT>(value);
60 }
61 template <typename IdT = Aws::String>
62 Environment& WithId(IdT&& value) {
63 SetId(std::forward<IdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
74 template <typename NameT = Aws::String>
75 void SetName(NameT&& value) {
76 m_nameHasBeenSet = true;
77 m_name = std::forward<NameT>(value);
78 }
79 template <typename NameT = Aws::String>
80 Environment& WithName(NameT&& value) {
81 SetName(std::forward<NameT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetDescription() const { return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 template <typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) {
94 m_descriptionHasBeenSet = true;
95 m_description = std::forward<DescriptionT>(value);
96 }
97 template <typename DescriptionT = Aws::String>
98 Environment& WithDescription(DescriptionT&& value) {
99 SetDescription(std::forward<DescriptionT>(value));
100 return *this;
101 }
103
105
110 inline EnvironmentState GetState() const { return m_state; }
111 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
112 inline void SetState(EnvironmentState value) {
113 m_stateHasBeenSet = true;
114 m_state = value;
115 }
117 SetState(value);
118 return *this;
119 }
121
123
126 inline const Aws::Vector<Monitor>& GetMonitors() const { return m_monitors; }
127 inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; }
128 template <typename MonitorsT = Aws::Vector<Monitor>>
129 void SetMonitors(MonitorsT&& value) {
130 m_monitorsHasBeenSet = true;
131 m_monitors = std::forward<MonitorsT>(value);
132 }
133 template <typename MonitorsT = Aws::Vector<Monitor>>
134 Environment& WithMonitors(MonitorsT&& value) {
135 SetMonitors(std::forward<MonitorsT>(value));
136 return *this;
137 }
138 template <typename MonitorsT = Monitor>
139 Environment& AddMonitors(MonitorsT&& value) {
140 m_monitorsHasBeenSet = true;
141 m_monitors.emplace_back(std::forward<MonitorsT>(value));
142 return *this;
143 }
145
147
148 inline const Aws::String& GetRequestId() const { return m_requestId; }
149 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
150 template <typename RequestIdT = Aws::String>
151 void SetRequestId(RequestIdT&& value) {
152 m_requestIdHasBeenSet = true;
153 m_requestId = std::forward<RequestIdT>(value);
154 }
155 template <typename RequestIdT = Aws::String>
156 Environment& WithRequestId(RequestIdT&& value) {
157 SetRequestId(std::forward<RequestIdT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_applicationId;
163
164 Aws::String m_id;
165
166 Aws::String m_name;
167
168 Aws::String m_description;
169
171
172 Aws::Vector<Monitor> m_monitors;
173
174 Aws::String m_requestId;
175 bool m_applicationIdHasBeenSet = false;
176 bool m_idHasBeenSet = false;
177 bool m_nameHasBeenSet = false;
178 bool m_descriptionHasBeenSet = false;
179 bool m_stateHasBeenSet = false;
180 bool m_monitorsHasBeenSet = false;
181 bool m_requestIdHasBeenSet = false;
182};
183
184} // namespace Model
185} // namespace AppConfig
186} // namespace Aws
Environment & WithName(NameT &&value)
Definition Environment.h:80
void SetMonitors(MonitorsT &&value)
const Aws::String & GetRequestId() const
AWS_APPCONFIG_API Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Definition Environment.h:93
Environment & WithRequestId(RequestIdT &&value)
void SetApplicationId(ApplicationIdT &&value)
Definition Environment.h:39
const Aws::String & GetDescription() const
Definition Environment.h:90
Environment & WithId(IdT &&value)
Definition Environment.h:62
AWS_APPCONFIG_API Environment()=default
Environment & WithMonitors(MonitorsT &&value)
const Aws::String & GetName() const
Definition Environment.h:72
const Aws::Vector< Monitor > & GetMonitors() const
Environment & WithApplicationId(ApplicationIdT &&value)
Definition Environment.h:44
Environment & WithDescription(DescriptionT &&value)
Definition Environment.h:98
const Aws::String & GetApplicationId() const
Definition Environment.h:36
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPCONFIG_API Environment(Aws::Utils::Json::JsonView jsonValue)
void SetState(EnvironmentState value)
const Aws::String & GetId() const
Definition Environment.h:54
void SetRequestId(RequestIdT &&value)
Environment & WithState(EnvironmentState value)
Environment & AddMonitors(MonitorsT &&value)
EnvironmentState GetState() 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