AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEnvironmentResult.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{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace AppConfig
27{
28namespace Model
29{
31 {
32 public:
33 AWS_APPCONFIG_API CreateEnvironmentResult();
36
37
39
42 inline const Aws::String& GetApplicationId() const{ return m_applicationId; }
43 inline void SetApplicationId(const Aws::String& value) { m_applicationId = value; }
44 inline void SetApplicationId(Aws::String&& value) { m_applicationId = std::move(value); }
45 inline void SetApplicationId(const char* value) { m_applicationId.assign(value); }
46 inline CreateEnvironmentResult& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;}
47 inline CreateEnvironmentResult& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;}
48 inline CreateEnvironmentResult& WithApplicationId(const char* value) { SetApplicationId(value); return *this;}
50
52
55 inline const Aws::String& GetId() const{ return m_id; }
56 inline void SetId(const Aws::String& value) { m_id = value; }
57 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
58 inline void SetId(const char* value) { m_id.assign(value); }
59 inline CreateEnvironmentResult& WithId(const Aws::String& value) { SetId(value); return *this;}
60 inline CreateEnvironmentResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
61 inline CreateEnvironmentResult& WithId(const char* value) { SetId(value); return *this;}
63
65
68 inline const Aws::String& GetName() const{ return m_name; }
69 inline void SetName(const Aws::String& value) { m_name = value; }
70 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
71 inline void SetName(const char* value) { m_name.assign(value); }
72 inline CreateEnvironmentResult& WithName(const Aws::String& value) { SetName(value); return *this;}
73 inline CreateEnvironmentResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74 inline CreateEnvironmentResult& WithName(const char* value) { SetName(value); return *this;}
76
78
81 inline const Aws::String& GetDescription() const{ return m_description; }
82 inline void SetDescription(const Aws::String& value) { m_description = value; }
83 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
84 inline void SetDescription(const char* value) { m_description.assign(value); }
85 inline CreateEnvironmentResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
86 inline CreateEnvironmentResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
87 inline CreateEnvironmentResult& WithDescription(const char* value) { SetDescription(value); return *this;}
89
91
96 inline const EnvironmentState& GetState() const{ return m_state; }
97 inline void SetState(const EnvironmentState& value) { m_state = value; }
98 inline void SetState(EnvironmentState&& value) { m_state = std::move(value); }
99 inline CreateEnvironmentResult& WithState(const EnvironmentState& value) { SetState(value); return *this;}
100 inline CreateEnvironmentResult& WithState(EnvironmentState&& value) { SetState(std::move(value)); return *this;}
102
104
107 inline const Aws::Vector<Monitor>& GetMonitors() const{ return m_monitors; }
108 inline void SetMonitors(const Aws::Vector<Monitor>& value) { m_monitors = value; }
109 inline void SetMonitors(Aws::Vector<Monitor>&& value) { m_monitors = std::move(value); }
110 inline CreateEnvironmentResult& WithMonitors(const Aws::Vector<Monitor>& value) { SetMonitors(value); return *this;}
111 inline CreateEnvironmentResult& WithMonitors(Aws::Vector<Monitor>&& value) { SetMonitors(std::move(value)); return *this;}
112 inline CreateEnvironmentResult& AddMonitors(const Monitor& value) { m_monitors.push_back(value); return *this; }
113 inline CreateEnvironmentResult& AddMonitors(Monitor&& value) { m_monitors.push_back(std::move(value)); return *this; }
115
117
118 inline const Aws::String& GetRequestId() const{ return m_requestId; }
119 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
120 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
121 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
122 inline CreateEnvironmentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
123 inline CreateEnvironmentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
124 inline CreateEnvironmentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
126 private:
127
128 Aws::String m_applicationId;
129
130 Aws::String m_id;
131
132 Aws::String m_name;
133
134 Aws::String m_description;
135
136 EnvironmentState m_state;
137
138 Aws::Vector<Monitor> m_monitors;
139
140 Aws::String m_requestId;
141 };
142
143} // namespace Model
144} // namespace AppConfig
145} // namespace Aws
CreateEnvironmentResult & WithId(const char *value)
CreateEnvironmentResult & WithApplicationId(const Aws::String &value)
CreateEnvironmentResult & WithDescription(const char *value)
CreateEnvironmentResult & WithName(const Aws::String &value)
CreateEnvironmentResult & WithRequestId(const Aws::String &value)
CreateEnvironmentResult & WithId(const Aws::String &value)
CreateEnvironmentResult & WithApplicationId(const char *value)
CreateEnvironmentResult & WithName(const char *value)
AWS_APPCONFIG_API CreateEnvironmentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateEnvironmentResult & WithMonitors(Aws::Vector< Monitor > &&value)
CreateEnvironmentResult & WithDescription(Aws::String &&value)
const Aws::Vector< Monitor > & GetMonitors() const
AWS_APPCONFIG_API CreateEnvironmentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetMonitors(Aws::Vector< Monitor > &&value)
CreateEnvironmentResult & WithRequestId(Aws::String &&value)
CreateEnvironmentResult & WithDescription(const Aws::String &value)
CreateEnvironmentResult & WithRequestId(const char *value)
void SetMonitors(const Aws::Vector< Monitor > &value)
CreateEnvironmentResult & WithMonitors(const Aws::Vector< Monitor > &value)
CreateEnvironmentResult & WithState(const EnvironmentState &value)
CreateEnvironmentResult & AddMonitors(Monitor &&value)
CreateEnvironmentResult & AddMonitors(const Monitor &value)
CreateEnvironmentResult & WithId(Aws::String &&value)
CreateEnvironmentResult & WithApplicationId(Aws::String &&value)
CreateEnvironmentResult & WithName(Aws::String &&value)
CreateEnvironmentResult & WithState(EnvironmentState &&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