AWS SDK for C++  1.9.110
AWS SDK for C++
Environment.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace AppConfig
25 {
26 namespace Model
27 {
28 
30  {
31  public:
36 
37 
41  inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
42 
46  inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
47 
51  inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
52 
56  inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
57 
61  inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
62 
66  inline Environment& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
67 
71  inline Environment& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
72 
76  inline Environment& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
77 
78 
82  inline const Aws::String& GetId() const{ return m_id; }
83 
87  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
88 
92  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
93 
97  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
98 
102  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
103 
107  inline Environment& WithId(const Aws::String& value) { SetId(value); return *this;}
108 
112  inline Environment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
113 
117  inline Environment& WithId(const char* value) { SetId(value); return *this;}
118 
119 
123  inline const Aws::String& GetName() const{ return m_name; }
124 
128  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
129 
133  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
134 
138  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
139 
143  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
144 
148  inline Environment& WithName(const Aws::String& value) { SetName(value); return *this;}
149 
153  inline Environment& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
154 
158  inline Environment& WithName(const char* value) { SetName(value); return *this;}
159 
160 
164  inline const Aws::String& GetDescription() const{ return m_description; }
165 
169  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
170 
174  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
175 
179  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
180 
184  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
185 
189  inline Environment& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
190 
194  inline Environment& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
195 
199  inline Environment& WithDescription(const char* value) { SetDescription(value); return *this;}
200 
201 
207  inline const EnvironmentState& GetState() const{ return m_state; }
208 
214  inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
215 
221  inline void SetState(const EnvironmentState& value) { m_stateHasBeenSet = true; m_state = value; }
222 
228  inline void SetState(EnvironmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
229 
235  inline Environment& WithState(const EnvironmentState& value) { SetState(value); return *this;}
236 
242  inline Environment& WithState(EnvironmentState&& value) { SetState(std::move(value)); return *this;}
243 
244 
248  inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
249 
253  inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; }
254 
258  inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitorsHasBeenSet = true; m_monitors = value; }
259 
263  inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitorsHasBeenSet = true; m_monitors = std::move(value); }
264 
268  inline Environment& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
269 
273  inline Environment& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
274 
278  inline Environment& AddMonitors(const Monitor& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(value); return *this; }
279 
283  inline Environment& AddMonitors(Monitor&& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(std::move(value)); return *this; }
284 
285  private:
286 
287  Aws::String m_applicationId;
288  bool m_applicationIdHasBeenSet;
289 
290  Aws::String m_id;
291  bool m_idHasBeenSet;
292 
293  Aws::String m_name;
294  bool m_nameHasBeenSet;
295 
296  Aws::String m_description;
297  bool m_descriptionHasBeenSet;
298 
299  EnvironmentState m_state;
300  bool m_stateHasBeenSet;
301 
302  Aws::Vector<Monitor> m_monitors;
303  bool m_monitorsHasBeenSet;
304  };
305 
306 } // namespace Model
307 } // namespace AppConfig
308 } // namespace Aws
Monitor.h
Aws::AppConfig::Model::Environment::Environment
Environment()
Aws::AppConfig::Model::Environment::SetState
void SetState(EnvironmentState &&value)
Definition: Environment.h:228
Aws::AppConfig::Model::Environment::SetId
void SetId(const char *value)
Definition: Environment.h:102
Aws::AppConfig::Model::Environment::StateHasBeenSet
bool StateHasBeenSet() const
Definition: Environment.h:214
Aws::AppConfig::Model::Environment::WithId
Environment & WithId(const Aws::String &value)
Definition: Environment.h:107
Aws::AppConfig::Model::Environment::WithDescription
Environment & WithDescription(const Aws::String &value)
Definition: Environment.h:189
Aws::AppConfig::Model::Environment::WithDescription
Environment & WithDescription(const char *value)
Definition: Environment.h:199
Aws::AppConfig::Model::Environment::Environment
Environment(Aws::Utils::Json::JsonView jsonValue)
Aws::AppConfig::Model::Environment::SetDescription
void SetDescription(Aws::String &&value)
Definition: Environment.h:179
Aws::AppConfig::Model::Environment::SetState
void SetState(const EnvironmentState &value)
Definition: Environment.h:221
Aws::AppConfig::Model::Environment::SetId
void SetId(Aws::String &&value)
Definition: Environment.h:97
Aws::AppConfig::Model::Environment::SetName
void SetName(Aws::String &&value)
Definition: Environment.h:138
Aws::AppConfig::Model::EnvironmentState
EnvironmentState
Definition: EnvironmentState.h:17
Aws::AppConfig::Model::Environment::WithName
Environment & WithName(const char *value)
Definition: Environment.h:158
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppConfig::Model::Environment::WithApplicationId
Environment & WithApplicationId(const Aws::String &value)
Definition: Environment.h:66
Aws::AppConfig::Model::Environment::SetName
void SetName(const Aws::String &value)
Definition: Environment.h:133
Aws::AppConfig::Model::Environment::WithName
Environment & WithName(Aws::String &&value)
Definition: Environment.h:153
AWSVector.h
AppConfig_EXPORTS.h
EnvironmentState.h
Aws::AppConfig::Model::Environment::WithName
Environment & WithName(const Aws::String &value)
Definition: Environment.h:148
Aws::AppConfig::Model::Environment::ApplicationIdHasBeenSet
bool ApplicationIdHasBeenSet() const
Definition: Environment.h:46
Aws::AppConfig::Model::Environment::GetState
const EnvironmentState & GetState() const
Definition: Environment.h:207
Aws::AppConfig::Model::Environment::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppConfig::Model::Environment::SetApplicationId
void SetApplicationId(const Aws::String &value)
Definition: Environment.h:51
Aws::AppConfig::Model::Environment::operator=
Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppConfig::Model::Environment::SetMonitors
void SetMonitors(const Aws::Vector< Monitor > &value)
Definition: Environment.h:258
Aws::AppConfig::Model::Environment::SetApplicationId
void SetApplicationId(Aws::String &&value)
Definition: Environment.h:56
Aws::AppConfig::Model::Environment::AddMonitors
Environment & AddMonitors(const Monitor &value)
Definition: Environment.h:278
Aws::AppConfig::Model::Environment::WithState
Environment & WithState(const EnvironmentState &value)
Definition: Environment.h:235
Aws::AppConfig::Model::Environment::NameHasBeenSet
bool NameHasBeenSet() const
Definition: Environment.h:128
Aws::AppConfig::Model::Environment::GetName
const Aws::String & GetName() const
Definition: Environment.h:123
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AppConfig::Model::Environment::SetId
void SetId(const Aws::String &value)
Definition: Environment.h:92
Aws::AppConfig::Model::Environment::WithId
Environment & WithId(const char *value)
Definition: Environment.h:117
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppConfig::Model::Environment::SetName
void SetName(const char *value)
Definition: Environment.h:143
Aws::AppConfig::Model::Environment::GetApplicationId
const Aws::String & GetApplicationId() const
Definition: Environment.h:41
Aws::AppConfig::Model::Environment::IdHasBeenSet
bool IdHasBeenSet() const
Definition: Environment.h:87
Aws::AppConfig::Model::Environment::MonitorsHasBeenSet
bool MonitorsHasBeenSet() const
Definition: Environment.h:253
Aws::AppConfig::Model::Environment::WithMonitors
Environment & WithMonitors(const Aws::Vector< Monitor > &value)
Definition: Environment.h:268
Aws::AppConfig::Model::Monitor
Definition: Monitor.h:33
Aws::AppConfig::Model::Environment
Definition: Environment.h:30
Aws::AppConfig::Model::Environment::SetDescription
void SetDescription(const Aws::String &value)
Definition: Environment.h:174
Aws::AppConfig::Model::Environment::GetId
const Aws::String & GetId() const
Definition: Environment.h:82
Aws::AppConfig::Model::Environment::SetApplicationId
void SetApplicationId(const char *value)
Definition: Environment.h:61
Aws::AppConfig::Model::Environment::WithState
Environment & WithState(EnvironmentState &&value)
Definition: Environment.h:242
Aws::AppConfig::Model::Environment::GetDescription
const Aws::String & GetDescription() const
Definition: Environment.h:164
Aws
Definition: AccessManagementClient.h:15
Aws::AppConfig::Model::Environment::WithApplicationId
Environment & WithApplicationId(Aws::String &&value)
Definition: Environment.h:71
Aws::AppConfig::Model::Environment::WithDescription
Environment & WithDescription(Aws::String &&value)
Definition: Environment.h:194
Aws::AppConfig::Model::Environment::SetMonitors
void SetMonitors(Aws::Vector< Monitor > &&value)
Definition: Environment.h:263
Aws::AppConfig::Model::Environment::WithApplicationId
Environment & WithApplicationId(const char *value)
Definition: Environment.h:76
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_APPCONFIG_API
#define AWS_APPCONFIG_API
Definition: AppConfig_EXPORTS.h:28
Aws::AppConfig::Model::Environment::WithMonitors
Environment & WithMonitors(Aws::Vector< Monitor > &&value)
Definition: Environment.h:273
Aws::AppConfig::Model::Environment::AddMonitors
Environment & AddMonitors(Monitor &&value)
Definition: Environment.h:283
Aws::AppConfig::Model::Environment::WithId
Environment & WithId(Aws::String &&value)
Definition: Environment.h:112
Aws::AppConfig::Model::Environment::SetDescription
void SetDescription(const char *value)
Definition: Environment.h:184
Aws::AppConfig::Model::Environment::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: Environment.h:169
Aws::AppConfig::Model::Environment::GetMonitors
const Aws::Vector< Monitor > & GetMonitors() const
Definition: Environment.h:248