AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Environment.h
1
6#pragma once
7#include <aws/appconfig/AppConfig_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appconfig/model/EnvironmentState.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/appconfig/model/Monitor.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppConfig
25{
26namespace Model
27{
28
30 {
31 public:
32 AWS_APPCONFIG_API Environment();
33 AWS_APPCONFIG_API Environment(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPCONFIG_API Environment& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const;
36
37
39
42 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
43 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
44 inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; }
45 inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); }
46 inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); }
47 inline Environment& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
48 inline Environment& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
49 inline Environment& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
51
53
56 inline const Aws::String& GetId() const{ return m_id; }
57 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
58 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
59 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
60 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
61 inline Environment& WithId(const Aws::String& value) { SetId(value); return *this;}
62 inline Environment& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
63 inline Environment& WithId(const char* value) { SetId(value); return *this;}
65
67
70 inline const Aws::String& GetName() const{ return m_name; }
71 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
72 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
73 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
74 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 inline Environment& WithName(const Aws::String& value) { SetName(value); return *this;}
76 inline Environment& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
77 inline Environment& WithName(const char* value) { SetName(value); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline Environment& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline Environment& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline Environment& WithDescription(const char* value) { SetDescription(value); return *this;}
93
95
100 inline const EnvironmentState& GetState() const{ return m_state; }
101 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
102 inline void SetState(const EnvironmentState& value) { m_stateHasBeenSet = true; m_state = value; }
103 inline void SetState(EnvironmentState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
104 inline Environment& WithState(const EnvironmentState& value) { SetState(value); return *this;}
105 inline Environment& WithState(EnvironmentState&& value) { SetState(std::move(value)); return *this;}
107
109
112 inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
113 inline bool MonitorsHasBeenSet() const { return m_monitorsHasBeenSet; }
114 inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitorsHasBeenSet = true; m_monitors = value; }
115 inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitorsHasBeenSet = true; m_monitors = std::move(value); }
116 inline Environment& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
117 inline Environment& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
118 inline Environment& AddMonitors(const Monitor& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(value); return *this; }
119 inline Environment& AddMonitors(Monitor&& value) { m_monitorsHasBeenSet = true; m_monitors.push_back(std::move(value)); return *this; }
121
123
124 inline const Aws::String& GetRequestId() const{ return m_requestId; }
125 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
126 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
127 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
128 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
129 inline Environment& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
130 inline Environment& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
131 inline Environment& WithRequestId(const char* value) { SetRequestId(value); return *this;}
133 private:
134
135 Aws::String m_applicationId;
136 bool m_applicationIdHasBeenSet = false;
137
138 Aws::String m_id;
139 bool m_idHasBeenSet = false;
140
141 Aws::String m_name;
142 bool m_nameHasBeenSet = false;
143
144 Aws::String m_description;
145 bool m_descriptionHasBeenSet = false;
146
147 EnvironmentState m_state;
148 bool m_stateHasBeenSet = false;
149
150 Aws::Vector<Monitor> m_monitors;
151 bool m_monitorsHasBeenSet = false;
152
153 Aws::String m_requestId;
154 bool m_requestIdHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace AppConfig
159} // namespace Aws
void SetMonitors(Aws::Vector< Monitor > &&value)
Environment & WithState(EnvironmentState &&value)
Environment & WithName(const char *value)
Definition Environment.h:77
void SetName(Aws::String &&value)
Definition Environment.h:73
Environment & WithId(const Aws::String &value)
Definition Environment.h:61
void SetState(EnvironmentState &&value)
void SetApplicationId(Aws::String &&value)
Definition Environment.h:45
const Aws::String & GetRequestId() const
AWS_APPCONFIG_API Environment & operator=(Aws::Utils::Json::JsonView jsonValue)
Environment & WithMonitors(const Aws::Vector< Monitor > &value)
Environment & WithRequestId(const Aws::String &value)
void SetRequestId(const Aws::String &value)
Environment & WithRequestId(const char *value)
void SetName(const char *value)
Definition Environment.h:74
void SetId(Aws::String &&value)
Definition Environment.h:59
Environment & WithDescription(const char *value)
Definition Environment.h:91
const Aws::String & GetDescription() const
Definition Environment.h:84
void SetDescription(const Aws::String &value)
Definition Environment.h:86
void SetDescription(const char *value)
Definition Environment.h:88
const Aws::String & GetName() const
Definition Environment.h:70
Environment & WithApplicationId(const char *value)
Definition Environment.h:49
void SetName(const Aws::String &value)
Definition Environment.h:72
void SetId(const Aws::String &value)
Definition Environment.h:58
Environment & WithDescription(const Aws::String &value)
Definition Environment.h:89
void SetMonitors(const Aws::Vector< Monitor > &value)
const Aws::Vector< Monitor > & GetMonitors() const
void SetState(const EnvironmentState &value)
Environment & AddMonitors(const Monitor &value)
Environment & WithState(const EnvironmentState &value)
void SetApplicationId(const char *value)
Definition Environment.h:46
const Aws::String & GetApplicationId() const
Definition Environment.h:42
AWS_APPCONFIG_API Aws::Utils::Json::JsonValue Jsonize() const
Environment & AddMonitors(Monitor &&value)
AWS_APPCONFIG_API Environment(Aws::Utils::Json::JsonView jsonValue)
Environment & WithName(Aws::String &&value)
Definition Environment.h:76
void SetApplicationId(const Aws::String &value)
Definition Environment.h:44
void SetDescription(Aws::String &&value)
Definition Environment.h:87
Environment & WithDescription(Aws::String &&value)
Definition Environment.h:90
const Aws::String & GetId() const
Definition Environment.h:56
void SetRequestId(const char *value)
void SetId(const char *value)
Definition Environment.h:60
void SetRequestId(Aws::String &&value)
Environment & WithRequestId(Aws::String &&value)
Environment & WithId(const char *value)
Definition Environment.h:63
Environment & WithName(const Aws::String &value)
Definition Environment.h:75
Environment & WithId(Aws::String &&value)
Definition Environment.h:62
const EnvironmentState & GetState() const
Environment & WithApplicationId(Aws::String &&value)
Definition Environment.h:48
Environment & WithApplicationId(const Aws::String &value)
Definition Environment.h:47
Environment & WithMonitors(Aws::Vector< Monitor > &&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